Skip to content

bekkblando/todomvc-django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learned how to create API Endpoints

TodoMVC - Backbone.js + Django

Description

Create a REST API for use with the Backbone.js TodoMVC app.

Objectives

After completing this assignment, you should be able to:

  • Summarize the REST architecture.
  • Design a simple REST API.

Deliverables

  • A Git repo called todomvc-django containing at least:
    • README.md file explaining how to run your project
    • a requirements.txt file
    • a Django project

Requirements

  • No PEP8 or Pyflakes warnings or errors

Normal Mode

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

Hard Mode

For hard mode, do everything shown above, plus add functional tests for your API.

About

W8D2 Homework (group)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.9%
  • Python 34.6%
  • HTML 12.5%