Designing REST APIs
We are going to design the REST API for our ImageGallery application. We developed this application with Django's admin interface. Now we will extend the existing implementation of the ImageGallery application with a RESTful API interface. Before implementing the solution, let's have a look at a brief introduction to the Django REST Framework.
What is the Django Rest Framework?
Django Rest Framework is an open source library that is designed to implement the REST API in an optimistic way. It follows the Django design pattern with different terminologies. You can find the QuickStart tutorials at its documentation site (http://www.django-rest-framework.org/#quickstart).
Django Rest Frameworks is powerful and supports ORM and non-ORM data sources. It has built-in support for the Browsable API client (https://restframework.herokuapp.com/) and many other features as well.
Note
It is recommended to not use the Web Browsable API interface in the production environment. You can...