Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 842 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 842 Bytes

Todos API

Endpoints

  • Get a list of todos [GET]

    https://tst-todosapi.herokuapp.com/api/todos

  • Get a todo by id [GET]

    https://tst-todosapi.herokuapp.com/api/todos/{todo_id}

  • Create a new todo [POST]

    https://tst-todosapi.herokuapp.com/api/todos

    Body:

    {
       "description": "todo description"
    }
    
  • Update a todo [PUT]

    https://tst-todosapi.herokuapp.com/api/todos/{todo_id}

    Body:

    {
        "description": "todo new description",
        "done": true // bool
    }
    
  • Delete a todo by id [DELETE]

    https://tst-todosapi.herokuapp.com/api/todos/{todo_id}

  • Delete all done todos [DELETE]

    https://tst-todosapi.herokuapp.com/api/todos