๐Ÿ’ฟAPI Collection

PostMan collection for generated API

Auth API

here is a full API for not auth users we are here to use users as ex.

Register API

POST {BASE}/api/auth/users/register

Request Body

Name
Type
Description

name*

Fady Mondy

password*

3x1@2022

password_confirmation*

3x1@2022

{
    "status": "success",
    "message": "User registered successfully",
    "data": {
        "name": "Fady Mondy",
        "email": "[email protected]",
        "updated_at": "2022-11-17T13:26:15.000000Z",
        "created_at": "2022-11-17T13:26:15.000000Z",
        "id": 5,
        "token": "3|F5wrK8yVUQcLhSWRWNpFqL6tii9lwZOZn56TgZX4",
        "profile_photo_url": "https://ui-avatars.com/api/?name=F+M&color=7F9CF5&background=EBF4FF"
    }
}

Login API

POST {BASE}/api/auth/users/login

Request Body

Name
Type
Description

password*

3x1@2022

Active OTP

POST {BASE}/api/auth/users/otp

Request Body

Name
Type
Description

otp_code*

138750

Resend OTP

POST {BASE}/api/auth/users/resend

Request Body

Name
Type
Description

Forget Password

POST {BASE}/api/auth/users/reset

Request Body

Name
Type
Description

password*

3x1@2022

password_confirmation*

3x1@2022

Profile API

when you use Bearer token on the request you can get this method

Get Profile

GET {BASE}/api/auth/users/profile

Headers

Name
Type
Description

Authorization*

Bearer 2|yCxPfI6KWO5COyj5DKhEnhyBfnPSTHIdPLYctMTy

Update Profile

POST {BASE}/api/auth/users/update

Headers

Name
Type
Description

Authorization*

Bearer 2|yCxPfI6KWO5COyj5DKhEnhyBfnPSTHIdPLYctMTy

Request Body

Name
Type
Description

Update Profile Password

POST {BASE}/api/auth/users/password

Headers

Name
Type
Description

Authorization

Bearer 2|yCxPfI6KWO5COyj5DKhEnhyBfnPSTHIdPLYctMTy

Request Body

Name
Type
Description

password*

3x1@2021

password_confirmation*

3x1@2021

Delete My User

DELETE {BASE}/api/auth/users/destroy

Headers

Name
Type
Description

Authorization*

Bearer 2|yCxPfI6KWO5COyj5DKhEnhyBfnPSTHIdPLYctMTy

Logout User

POST {BASE}/api/auth/users/logout

Request Body

Name
Type
Description

Authorization*

Bearer 2|yCxPfI6KWO5COyj5DKhEnhyBfnPSTHIdPLYctMTy

Download PostMan Collection JSON

you can download the collection from here

Last updated

Was this helpful?