Skip to content
Branch: master
Find file History
Latest commit 4f90a1e Jan 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information. fix(examples): unit tests Aug 17, 2018

TODO API Example

This example uses DI, Components and middleware to build a simple TODO management API.


Install molten with pip install -e '.[dev]' then run the app with gunicorn app:app.

Example requests

$ curl -H'authorization: secret' -d 'description=buy milk' http://127.1:8000/v1/todos/
$ curl -H'authorization: secret' http://127.1:8000/v1/todos/
$ curl -H'authorization: secret' http://127.1:8000/v1/todos/1
$ curl -H'authorization: secret' -XDELETE http://127.1:8000/v1/todos/1
You can’t perform that action at this time.