This TODO App is used as an app sample in learning kubernetes techs.
It supports the following API.
GET /todos
: Lists all todosPOST /todos
: Creates a new todoPUT /todos/:id
: Updates the description of a todoDELETE /todos/:id
: Deletes a todo
When calling POST
or PUT
methods, the request body should look like this:
{
"todo": {
"description": "(todo description)"
}
}
For IDs, it uses "UUIDs" (Universally Unique IDs). They can be generated using the uuid
package, and are guaranteed never to be the same.