-
Notifications
You must be signed in to change notification settings - Fork 1
RESTful Services Documentation
vy-khahuynh edited this page Feb 20, 2022
·
19 revisions
| Request Type | Method Description | Endpoints | Inputs | Outputs |
|---|---|---|---|---|
POST |
'createDrink' | /drinks/add |
name:Stringtag:Stringpublic_status:Booleanauthor:Stringrating:Numberrecipe:recipeSchema
|
Creates a drink of type Drink. |
GET |
'viewDrinks' | /drinks |
Returns a list of drinks of type Drink depending on provided input and filter applied |
| Request Type | Method Description | Endpoints | Inputs | Outputs |
|---|---|---|---|---|
| 'POST' | 'createNewUser' | 'username:String' 'password:String' |
||
| 'loginUser' | ||||
| 'logoutUser' | ||||
PUT |
'changeUserPassword' | /user/update |
username:Stringpassword:Stringid:Int |
Updates the user's password of type String
|
| Request Type | Method Description | Endpoints | Inputs | Outputs |
|---|---|---|---|---|
| 'createAdmin' | ||||
| 'loginAdmin' | ||||
| 'logoutAdmin' | ||||
PUT |
'changeAdminPassword' | /user/update |
username:Stringpassword:Stringid:Int |
Updates the admin's password of type String
|