/todo_list

Django todo list project

Primary LanguagePython

This project is a todo list

The work to be done in this project will be indicated

Install:

pip install django

TODO LIST

Property:

  • 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

Methods:

  • add
  • update
  • update_status
  • get_all
  • remove

=======

API:


Add method


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" }
  • Error Response:\

    • Code: 404 NOT FOUND
      Content:
      { error : "eror description" }

Get all method


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" } . . .]
  • Error Response:\

    • Code: 404 NOT FOUND
      Content:
      { error : "eror description" }

Remove method


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" }
  • Error Response:\

    • Code: 404 NOT FOUND
      Content:
      { error : "eror description" }

Update method


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" }
  • Error Response:\

    • Code: 404 NOT FOUND
      Content:
      { error : "eror description" }

Update status method


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" }
  • Error Response:\

    • Code: 404 NOT FOUND
      Content:
      { error : "eror description" }