Skip to content
I_AM_TINE edited this page Oct 9, 2022 · 4 revisions

Using for User's Module.

this path goes under /user/***

getUser

Retrieve the user's data using the user's id.

URL

GET /

request body

REQUEST BODY

Parameter Type Description
id string user's id that you want to search

EXAMPLE

{ id: "4573782c-4e40-43c2-92b4-93d53adf8cb2"}

success

RESPONSE

Parameter Type Description
id string userId
username string the username of user
email string email

EXAMPLE

{ id: "4573782c-4e40-43c2-92b4-93d53adf8cb2" ,
username : "SITTICHOK OUAMSIRI", 
email: "tine@thistine.com"}

fail

400 user not found ( cannot find user )


Register user

URL

POST /register

request body

REQUEST BODY

Parameter Type Description
username string the username of user
password string user's password
email string the email of user

EXAMPLE

{ username : "Thistine",
 password : "12345",
 email : "tine@thistine.com"
 }

success

RESPONSE

Parameter Type Description
id string userId
username string the username of user
email string email

EXAMPLE

{ id: "4573782c-4e40-43c2-92b4-93d53adf8cb2" ,
username : "SITTICHOK OUAMSIRI", 
email: "tine@thistine.com"}

fail

400 user not found ( cannot find user )


Clone this wiki locally