Auth Endpoint

{info} Mengolah data pengguna dari mulai mendaftar sampai masuk.


Base URL

https://public-api.delcom.org/api/v1

Register

  • URL
    • /auth/register
  • Method
    • POST
  • Request Body
    • name as string
    • email as string, must be unique
    • password as string
  • Response
    {
        "success": true,
        "message": "Berhasil melakukan pendaftaran"
    }

Login

  • URL
    • /auth/login
  • Method
    • POST
  • Request Body
    • email as string
    • password as string
  • Response
    {
        "success": true,
        "message": "Berhasil login",
        "data": {
            "user": {
                "id": 1,
                "name": "Delcom Testing",
                "email": "testing@delcom.org",
                "email_verified_at": null,
                "created_at": "2024-02-26T02:15:53.000000Z",
                "updated_at": "2024-02-26T02:15:53.000000Z"
            },
            "token": "1|FIp8NZYW7er2i8X3nUsqfE6S8y4WZejZjtCVZgoD9c1ef654"
        }
    }