Create a REST API for use with the Backbone.js TodoMVC app.
Using the Django REST Framework, build an API with one resource: todos.
Your URLs should be nested under /api/, and will look like:
- GET
/api/todos/ - POST
/api/todos/ - PUT
/api/todos/{id} - DELETE
/api/todos/{id}
The todo resource should have the following fields:
- id
- title - string, required
- completed - boolean, default false
- order - integer, not required, can be null
For hard mode, do everything shown above, plus add functional tests for your API.