Clone the repository
git clone https://github.com/Stovenn/gotodo.git
Build binary (only unix system for the moment)
make build
Launch server
make run
The server listens on port 8080 of host machine (can be configured in .env file)
POST http://localhost:8080/api/todos/
{
"title": "new todo"
}
GET http://localhost:8080/api/todos/
GET http://localhost:8080/api/todos/{id}
PUT http://localhost:8080/api/todos/{id}
{
"title": "updated todo",
"completed": true,
"order": 2,
}
PATCH http://localhost:8080/api/todos/{id}
{
"title":"partially updated todo",
"order": 2,
}
DELETE http://localhost:8080/api/todos/{id}
make test