rijalsandeshraj / polls_api

This is a polls API project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Polls API project. There is a 'views.py' file in the application directory which shows the process of creating an API using pure Django. This project is focused on creating a REST API using Django REST Framework because it has a lot of advantages.

Note: 'api_views.py' is the main VIEW module of this project. And, URLs are routed to this module.

Main advantages of Django REST framework:

  1. Simplicity, flexibility, quality, and test coverage of source code.
  2. Powerful serialization engine compatible with both ORM and non-ORM data sources.
  3. Pluggable and easy to customise emitters, parsers, validators and authenticators.
  4. Generic classes for CRUD operations.
  5. Clean, simple, views for Resources, using Django's new class based views.
  6. Support for ModelResources with out-of-the-box default implementations and input validation (optional support for forms as input validation).
  7. HTTP response handling, content type negotiation using HTTP Accept headers.
  8. Pagination simplifies the process of returning paginated data in a way that can then be rendered to arbitrary media types.
  9. Publishing of metadata along with querysets.
  10. Permission classes and throttling management (API may feature a RESTrictive throttle for unauthenticated requests, a less RESTrictive throttle for authenticated requests, etc.).

DRF allows the flexibility to extend and customize the framework’s tools according to programmer’s demands that greatly reduces development time. The Django REST framework is used by such giants as Mozilla and Eventbrite. To get more information visit https://www.django-rest-framework.org/.

About

This is a polls API project.


Languages

Language:Python 100.0%