with maven
mvn spring-boot:run
init data in src
> resources
> schema.sql
if you want fix the data modify the schema.sql
file
GET /api/todos
get all todos
GET /api/todos/{id}
get todo by id
POST /api/todos
save the todo
with json body { "content" : "your todo" }
PUT /api/todos/{id}/done
done todo
PUT /api/todos/{id}/content
update todo
with json body { "content" : "update todo" }
DELETE /api/todos/{id}
delete todo