Public
Documentation Settings

Mobile_App

API for a web app for selling mobile phone.

Auth

You can sign up new user, log in by current account, forgot, update and reset password.

POSTSign up

https://yolo-shop.fly.dev/api/v1/auth/signup

Sign up new user.

Bodyraw (json)
json
{
  "name": "Le Xich Top",
  "email": "xichtop999@gmail.com",
  "password": "xichtop999",
  "role": "admin"
}
Example Request
curl
curl --location 'https://yolo-shop.fly.dev/api/v1/auth/signup' \
--data-raw '{
  "name": "Le Xich Top",
  "email": "xichtop999@gmail.com",
  "password": "xichtop999",
  "role": "admin"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTLog In

https://yolo-shop.fly.dev/api/v1/auth/login

Log in current user.

Bodyraw (json)
json
{
    "email": "xichtop99@gmail.com",
    "password": "xichtop99"
}
Example Request
curl
curl --location 'https://yolo-shop.fly.dev/api/v1/auth/login' \
--data-raw '{
    "email": "xichtop99@gmail.com",
    "password": "xichtop99"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTForgot Password

https://yolo-shop.fly.dev/api/v1/auth/forgot-password

Using this when you forgot your password.

Bodyraw (json)
json
{
    "email": "xichtop123@gmail.com"
}
Example Request
curl
curl --location 'https://yolo-shop.fly.dev/api/v1/auth/forgot-password' \
--data-raw '{
    "email": "xichtop123@gmail.com"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers