Webservice API Specification Doc Template
Webservice API Specification Doc Template
(Restaurant Service)
Conventions
Status Codes
Methods
1. Login
Authenticate the user with the system and obtain the auth_token
Request
Method URL
POST api/auth/login
Response
Status Response
200 {
"id": 0,
"email": "string",
"displayName": "string",
"firstName": "string",
"lastName": "string",
"fullName": "string",
"accountStatus": 0,
"dayOfBirth": "2023-10-15T07:11:59.843Z",
"gender": 0,
"phoneNumber": "string",
"address": "string",
"token": "string"
}
2. Register Account
Request
Method URL
POST api/users/create-account
Response
Status Response
200 Success
Request
Method URL
POST api/auth/send-mail-to-verify-account
Type Params Values
Response
Status Response
200 success
4. Verify Account
Request
Method URL
POST api/auth/verify-account
Response
Status Response
200 Success
Status Codes
All status codes are standard HTTP status codes. The below ones are used in this API.
200 OK
201 Created
403 Forbidden
409 Conflict
412 Precondition Failed