Skip to content

piruo7/TodoAppAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 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"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages