The work to be done in this project will be indicated
pip install django
- id(int): New task ID
- status(bool): True if done, otherwise False
- taskname(str): The name of the task
- description(str): The description of the task
- add
- update
- update_status
- get_all
- remove
=======
Return json data about added task.
-
URL
/add
-
Method:
GET
-
URL Params
Required:
id(int)
status(bool)
taskname(str)
description(str)
-
Success Response:
- Code: 200
Content:
{ status : False, taskname : "taskname", description : "description" }
- Code: 200
-
Error Response:\
- Code: 404 NOT FOUND
Content:
{ error : "eror description" }
- Code: 404 NOT FOUND
Return json data all task.
-
URL
/get_all
-
Method:
GET
-
URL Params
Required:
None
-
Success Response:
- Code: 200
Content:
[{ id:id, status : False, taskname : "taskname", description : "description" } . . .]
- Code: 200
-
Error Response:\
- Code: 404 NOT FOUND
Content:
{ error : "eror description" }
- Code: 404 NOT FOUND
Return json data remove task.
-
URL
/remove
-
Method:
GET
-
URL Params
Required:
id (int)
-
Success Response:
- Code: 200
Content:
{ id:remove task id, status : False, taskname : "taskname", description : "description" }
- Code: 200
-
Error Response:\
- Code: 404 NOT FOUND
Content:
{ error : "eror description" }
- Code: 404 NOT FOUND
Return json data update task.
-
URL
/update
-
Method:
GET
-
URL Params
Required:
id (int)
status(bool)
taskname(str)
-
Success Response:
- Code: 200
Content:
{ id:update task id, status : False, taskname : "update taskname", description : "update description" }
- Code: 200
-
Error Response:\
- Code: 404 NOT FOUND
Content:
{ error : "eror description" }
- Code: 404 NOT FOUND
Return json data update status task.
-
URL
/update_status
-
Method:
GET
-
URL Params
Required:
id (int)
status(bool)
-
Success Response:
- Code: 200
Content:
{ id:update task id, status : update status, taskname : "taskname", description : "description" }
- Code: 200
-
Error Response:\
- Code: 404 NOT FOUND
Content:
{ error : "eror description" }
- Code: 404 NOT FOUND