Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------
- POST http://{BASE_URL}/api/login
- ------------------------------------
- Request:
- {
- "user_name":(USER_NAME),
- "password":(PASSWORD)
- }
- Response:
- {
- "code":(CODE),
- "description::(IF NOT SUCCESS),
- "token":(TOKEN, IF SUCCESS)
- }
- ------------------------------------
- GET http://{BASE_URL}/api/task
- ------------------------------------
- Request:
- {
- "token":(TOKEN)
- }
- Response:
- {
- "code":(CODE)
- "description::(IF NOT SUCCESS)
- "list":
- {
- "id":(ID),
- "name":(NAME),
- "priority":(HIGH|LOW|NORMAL),
- "description":(DESCRIPTION),
- "status":(TO_DO|IN_PROGRESS|COMPLETED)
- }
- }
- ------------------------------------
- POST http://{BASE_URL}/api/task
- ------------------------------------
- Request:
- {
- "token":(TOKEN),
- "name":(NAME),
- "priority":(HIGH|LOW|NORMAL),
- "description":(DESCRIPTION)
- }
- Response:
- {
- "code":(CODE),
- "description::(IF NOT SUCCESS),
- "id":(ID, IF SUCCESS)
- }
- ------------------------------------
- PUT http://{BASE_URL}/api/task
- ------------------------------------
- Request:
- {
- "token":(TOKEN),
- "id":(ID),
- "name":(NAME), //OPTIONAL
- "priority":(HIGH|LOW|NORMAL), //OPTIONAL
- "description":(DESCRIPTION), //OPTIONAL
- "status":(TO_DO|IN_PROGRESS|COMPLETED) //OPTIONAL
- }
- Response:
- {
- "code":(CODE),
- "description::(IF NOT SUCCESS)
- }
- ------------------------------------
- DELETE http://{BASE_URL}/api/task
- ------------------------------------
- Request:
- {
- "token":(TOKEN),
- "id":(ID)
- }
- Response:
- {
- "code":(CODE),
- "description::(IF NOT SUCCESS)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement