|
|
The API uses some concepts that are really different from the web interface because the context is not the same at all. This page will give you some clues about those differences and how to use them to develop the API (add a URL, modify a behavior, ...).
|
|
|
|
|
|
Of course, the best would still be to go trough [DRF's tutorial and the API reference](http://www.django-rest-framework.org/) but the learning curve is quite steep, so for simple actions on the API, this page might be enough.
|
|
|
|
|
|
|
|
|
# The ACL "can_view_api"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The URLs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The class-based views and viewsets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The authentication classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The permission classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The serializers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The settings file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# The tests
|
|
|
|