-
Notifications
You must be signed in to change notification settings - Fork 0
User
I_AM_TINE edited this page Oct 9, 2022
·
4 revisions
this path goes under /user/***
Retrieve the user's data using the user's id.
GET /
REQUEST BODY
| Parameter | Type | Description |
|---|---|---|
| id | string | user's id that you want to search |
EXAMPLE
{ id: "4573782c-4e40-43c2-92b4-93d53adf8cb2"}
RESPONSE
| Parameter | Type | Description |
|---|---|---|
| id | string | userId |
| username | string | the username of user |
| string |
EXAMPLE
{ id: "4573782c-4e40-43c2-92b4-93d53adf8cb2" ,
username : "SITTICHOK OUAMSIRI",
email: "tine@thistine.com"}
400 user not found ( cannot find user )
POST /register
REQUEST BODY
| Parameter | Type | Description |
|---|---|---|
| username | string | the username of user |
| password | string | user's password |
| string | the email of user |
EXAMPLE
{ username : "Thistine",
password : "12345",
email : "tine@thistine.com"
}
RESPONSE
| Parameter | Type | Description |
|---|---|---|
| id | string | userId |
| username | string | the username of user |
| string |
EXAMPLE
{ id: "4573782c-4e40-43c2-92b4-93d53adf8cb2" ,
username : "SITTICHOK OUAMSIRI",
email: "tine@thistine.com"}
400 user not found ( cannot find user )