Skip to content

Latest commit

 

History

History
105 lines (99 loc) · 1.35 KB

File metadata and controls

105 lines (99 loc) · 1.35 KB

# TODO APP API

python manage.py migrate

python manage.py createsuperuser

python manage.py runserver

LOGIN / REGISTER

REQUEST
{
    "username": "username",
    "password": "password"
}

RESPONSE
{
    "id": <int>,
    "username": "username",
    "token": "TOKEN"
}

TAREAS

REQUEST
Authorization Token TOKEN

RESPONSE
[
    {
        "id": <int>,
        "tarea": "TAREA",
        "created": "2020-07-18T02:49:15.556889Z"
    }
]
REQUEST
Authorization Token TOKEN

{
    "tarea": "Mi nueva tarea"
}

RESPONSE
{
    "exito": "Tarea registrada con exito"
}

{
    "error": "Datos invalidos"
}
REQUEST
Authorization Token TOKEN

{
    "tarea": "Mi nueva tarea"
}

RESPONSE
{
    "exito": "Tarea actualizada con exito"
}

{
    "error": "Error al intentar actualizar tarea"
}
REQUEST
Authorization Token TOKEN

RESPONSE
{
    "exito": "Tarea eliminada con exito"
}

{
    "error": "Error al intentar eliminar tarea"
}