Skip to content

Latest commit

 

History

History
124 lines (90 loc) · 1.41 KB

README.md

File metadata and controls

124 lines (90 loc) · 1.41 KB

gerenciadortarefas

gerenciadortarefas is an API built with TDD for study purposes.

A simple task manager.

You can try the API in console (https://still-plains-31476.herokuapp.com/)


Endpoints

Todo Resources

GET /todo/

Responses

[
    {
        "title" : string,
        "description" : string,
        "state" : bool
    }
]
Status Code Description
200 OK

GET /todo/<id_task>/

Responses

{
    "title" : string,
    "description" : string,
    "state" : bool
}
Status Code Description
200 OK

POST /todo/

Data

{
    "title" : string,
    "description" : string
}
Status Code Description
201 CREATED

PUT /todo/<id_task>/

Data

{
    "title" : string,
    "description" : string,
    "state" : bool
}

Responses

{
    "title" : string,
    "description" : string,
    "state" : bool
}
Status Code Description
200 OK

DELETE /todo/<id_task>/
Status Code Description
204 NO CONTENT

PUT /todo/<id_task>/done/
Status Code Description
200 OK