cyface / django-rest-framework-examples

Django REST Framework Examples, focusing on using class-based configurations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django REST Framework Examples

Python Tests

This project is examples of using Django REST Framework using as much of the automatic configuration and generic views as possible.

This project includes a few apps implemented in different ways:

  • Games is a simple bare-bones app that demonstrates the minimal DRF implmentation.
  • Podcasts is a more full featured app with throttling, relations, and custom methods.

How to get this running

  • pip install -r requirements.txt
  • python manage.py migrate
  • python manage.py loaddata games/fixtures/initial_data.json
  • python manage.py loaddata podcasts/fixtures/initial_data.json
  • python manage.py runserver

Browse to : http://localhost:8000/podcasts/api/ or http://localhost:8000/games/api/

About

Django REST Framework Examples, focusing on using class-based configurations.

License:MIT License


Languages

Language:Python 90.2%Language:HTML 9.8%