Public
Documentation Settings

RestaurantGo

Auth

POSTregister

localhost:8000/api/v1/register
Bodyraw (json)
json
{
    "email": "truebone005+10@gmail.com",
    "username": "ayobamidelele0011",
    "password1": "Truebone005@",
    "password2": "Truebone005@"
}
Example Request
curl
curl --location 'localhost:8000/api/v1/register' \
--data-raw '{
    "email": "truebone005@gmail.com",
    "username": "ayobami",
    "password1": "Truebone005@",
    "password2": "Truebone005@"
}'
400 Bad Request
Example Response
json
{
  "status": "error",
  "message": {
    "error": [
      "The email address is already in use"
    ]
  },
  "data": {}
}
Date

Fri, 24 May 2024 08:11:24 GMT

Server

WSGIServer/0.2 CPython/3.11.7

Content-Type

application/json

Vary

Accept, origin, Cookie

Allow

POST, OPTIONS

X-Frame-Options

DENY

Content-Length

88

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Cross-Origin-Opener-Policy

same-origin

POSTverify-otp

localhost:8000/api/v1/otp/verify
Bodyformdata
otp

708191

email

alareefadegbite@gmail.com

Example Request
curl
curl --location 'localhost:8000/api/v1/otp/verify' \
--data-raw '{
    "email": "truebone005+2@gmail.com",
		"otp": "329425"
}'
200 OK
Example Response
json
{
  "status": "success",
  "message": "OTP verified",
  "data": {}
}
Date

Fri, 24 May 2024 08:57:03 GMT

Server

WSGIServer/0.2 CPython/3.11.7

Content-Type

application/json

Vary

Accept, origin, Cookie

Allow

POST, OPTIONS

X-Frame-Options

DENY

Content-Length

55

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Cross-Origin-Opener-Policy

same-origin

POSTresend-otp

localhost:8000/api/v1/otp/resend
Bodyraw (json)
json
{
    "email": "jojothomas1515@gmail.com"
}
Example Request
curl
curl --location 'localhost:8000/api/v1/otp/resend' \
--data-raw '{
    "email": "truebone005+5@gmail.com"
}'
200 OK
Example Response
json
{
  "status": "success",
  "message": "An OTP has been sent to your email truebone005+5@gmail.com",
  "data": {}
}
Date

Fri, 24 May 2024 10:57:11 GMT

Server

WSGIServer/0.2 CPython/3.11.7

Content-Type

application/json

Vary

Accept, origin, Cookie

Allow

POST, OPTIONS

X-Frame-Options

DENY

Content-Length

101

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Cross-Origin-Opener-Policy

same-origin

POSTlogin

https://restaurantgo.pythonanywhere.com/api/v1/login
Bodyraw (json)
json
{
    "username": "ayo",
    "password": "haywon"
}
Example Request
curl
curl --location -g '{{base_url}}/api/v1/login' \
--data-raw '{
    "email": "truebone005+5@gmail.com",
    // "username": "ayobamidele01",
    "password": "Truebone005@"
}'
200 OK
Example Response
json
{
  "status": "success",
  "message": "Login Successful",
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzE2NTUyOTY5LCJpYXQiOjE3MTY1NDkzNjksImp0aSI6IjVhODkxY2Q2ZmFjZjRkMTNiNmE1ZjEwNGZlYTIyOTE4IiwidXNlcl9pZCI6NX0.Jq7KZSDPhT5DsA95ArTJevKvmCx2yX8rO91_pALsE_w",
    "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcxNjgwODU2OSwiaWF0IjoxNzE2NTQ5MzY5LCJqdGkiOiI1NGY3ZDY0YjljZWY0YzUyOGFiNWE3MjAwZjhmMjdlOCIsInVzZXJfaWQiOjV9.P04QFkWhAM_7mioYh1uj1u1I5KhW0aW-OZK1QqEvy3E",
    "expires_in": 3600
  }
}
Date

Fri, 24 May 2024 11:16:09 GMT

Server

WSGIServer/0.2 CPython/3.11.7

Content-Type

application/json

Vary

Accept, origin, Cookie

Allow

POST, OPTIONS

X-Frame-Options

DENY

Content-Length

572

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Cross-Origin-Opener-Policy

same-origin