Django REST Framework API and a Graphene GraphQL interface built with REST API serializers
Simple library backend using Django REST Framework and Graphene to create a REST API and a GraphQL interface. The stack is Python/Django/SQLite/GraphQL/Graphene/Heroku/Django REST Framework. You can see working example here:
REST API:
- pagination example
GraphQL:
Book:
- Add Book
- Update Book
- Delete Book
- View Book Details
Author:
- Add Author
- Update Author
- Delete Author
- View Author Details
Install Dependencies (in same folder as Pipfile):
pipenv install
DB Settings:
- Add your DB details to settings.py
DB Migrations:
python manage.py migrate
Start server:
python manage.py runserver
- unit tests
- integration tests