Jason Zhu 6e2ddad059 | ||
---|---|---|
src | ||
.gitignore | ||
README.md | ||
requirements.txt |
README.md
README
This is a practice repository following Test Driven Development of a Django RESTful API
RESTful Structure
In a RESTful API, endpoints (URLs) define the structure of the API and how end users access data from our application using the HTTP methods - GET, POST, PUT, DELETE. Endpoints should be logically organized around collections and elements, both of which are resources.
In our case, we have one single resource, puppies, so we will use the following URLS - /puppies/ and /puppies/ for collections and elements, respectively
Routes and TDD
Process for development:
- Create skeleton code that doomed to fail
- Add a unit test for failure
- Update the code to make it pass the test.