Public
Documentation Settings

PickitupV2

Auth

POSTregister-rider

localhost:2330/api/v2/register/rider
Bodyraw (json)
json
{
        "email": "ayobamidele006+7@gmail.com",
		"password": "278r2333333",
        "username": "Ayobami7716",
        "phone_number": "081715096183",
		"first_name": "Ayo",
		"last_name": "Dele",
		"next_of_kin_address": "some",
		"next_of_kin_name": "some",
		"next_of_kin_phone": "081122333323",
		"bike_number": "55gsts565523",
		"address": "spme",
        "driver_license_number": "wkkwowow"

}
Example Request
curl
curl --location 'localhost:2330/api/v2/register/rider' \
--data-raw '{
        "email": "ayobamidele006+7@gmail.com",
		"password": "278r2333333",
        "username": "Ayobami7716",
        "phone_number": "081715096183",
		"first_name": "Ayo",
		"last_name": "Dele",
		"next_of_kin_address": "some",
		"next_of_kin_name": "some",
		"next_of_kin_phone": "081122333323",
		"bike_number": "55gsts565523",
		"address": "spme",
        "driver_license_number": "wkkwowow"

}'
201 Created
Example Response
JSON
{
  "data": null,
  "message": "Rider Successfully Created!",
  "status": "success"
}
Content-Type

application/json

Date

Fri, 09 Aug 2024 15:23:55 GMT

Content-Length

73

POSTlogin

localhost:2330/api/v2/login
Bodyraw (json)
json
{
    "email": "ayobamidele006+39@gmail.com",
    "password": "2782333333"
}
Example Request
curl
curl --location 'localhost:2330/api/v2/login' \
--data-raw '{
    "email": "ayobamidele006+49@gmail.com",
	"password": "278r2333333"
}'
200 OK
Example Response
JSON
{
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI0IiwiZXhwaXJlZEF0IjoxNzIxNzI4NTY4fQ._5datWelGFVmpBbbZm4sds5nD5ktPP2rOMHRaMvqypM"
  },
  "message": "Login Successful",
  "status": "success"
}
Content-Type

application/json

Date

Sat, 20 Jul 2024 09:59:28 GMT

Content-Length

208

POSTregister-user

localhost:2330/api/v2/register
Bodyraw (json)
json
{
    "email": "ayobamidele006+39@gmail.com",
    "password": "2782333333",
    "username": "Ayobami809",
    "phone_number": "08047890183"
}
Example Request
curl
curl --location 'localhost:2330/api/v2/register' \
--data-raw '{
    "email": "ayobamidele006+19@gmail.com",
    "password": "2782333333",
    "username": "Ayobami509",
    "phone_number": "08027790183"
}'
201 Created
Example Response
JSON
{
  "data": null,
  "message": "User successfully created!",
  "status": "success"
}
Content-Type

application/json

Date

Wed, 24 Jul 2024 11:29:32 GMT

Content-Length

72

POSTverify-otp

localhost:2330/api/v2/users/otp/verify
Bodyraw (json)
json
{
    "email": "ayobamidele006+39@gmail.com",
    "otp": "5613"
}
Example Request
curl
curl --location 'localhost:2330/api/v2/users/otp/verify' \
--data-raw '{
    "email": "ayobamidele006+39@gmail.com",
    "otp": "5613"
}'
200 OK
Example Response
JSON
{
  "data": {
    "message": "User verified successfully!"
  },
  "message": "OTP verified successfully",
  "status": "success"
}
Content-Type

application/json

Date

Mon, 12 Aug 2024 20:40:42 GMT

Content-Length

108