drf-yasg
drf-nested-routers
Our great sponsors
drf-yasg | drf-nested-routers | |
---|---|---|
8 | 8 | |
3,322 | 1,604 | |
- | - | |
1.5 | 4.5 | |
about 1 month ago | 6 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
drf-yasg
-
Swagger for Django api
I believe drf-yasg what you need. You can create a schema manually and define request and response types for your small API.
-
How can one enable the html for apis that are not apiviewsets using django rest framework?
Check this out: https://drf-yasg.readthedocs.io/en/stable/
-
Separate project vs multiple apps on a single project
There's also the caveat of having different API documentation for both the frontend solution and the API-only solution, since I don't want to expose the frontend-specific endpoints to the API-only endpoints, but I think that might just take some time playing around with swagger: https://drf-yasg.readthedocs.io/en/stable/
-
Deploying Django Rest Framework with Postgres on fly.io
Swagger and OpenAPI capabilities using drf-yasg, where you can only see endpoints and Swagger docs if you have a valid Token
- does anyone find a way to use swagger ui
-
Beautiful Hackernews UI: Working with Hackernews API in Python (Django)
The major apps are news and accounts. While the former handles almost all the physical functionalities of the system, the latter only does user stuff. The api app exposes the data for consumption. It is documented using drf-yasg, a Swagger generation tool implemented without using the schema generation provided by Django Rest Framework. The api has a token-based authentication which requires that all POST requests must provide a token to be accepted, otherwise a not too interesting response:
-
Keeping Documentation Debt At Bay & Clients Happy
Our RESTful API was actually the easiest to document, because we were able to rely on third-party libraries from the start. It was a Python Django and Django REST Framework project that leveraged the drf-yasg OpenAPI generator library to create OpenAPI and Swagger compatible documentation.
-
Documenting Django Rest Framework API
This post will go through how to document your DRF APIs using https://github.com/axnsan12/drf-yasg/ package.
drf-nested-routers
-
Django Rest Framework Nested Routing
I suggest that you use the drf nested routes package.
-
API Design need help
This worked for me https://github.com/alanjds/drf-nested-routers
-
DRF Nested Routers - status and reliability
What is the status and reliability of https://github.com/alanjds/drf-nested-routers? Is is stable enough for production and to commit effort into using it?
-
When is it appropriate to use DRF viewsets.Viewset?
ViewSets don't rule out nested data but it does take more work. I use https://github.com/alanjds/drf-nested-routers in places where I need nested viewsets.
-
Help needed with designing the API
If you're using Django Rest Framework, you may also want to look into drf-nested-routers. This is a package that makes routes like /parent/:parent_id/child/ easier to do.
-
Running into Issues with Nested Routes using drf-nested-routers
According to the docs, the drf-nested-routers package is the way to handle this. The docs also made it look extremely simple to use, but I must be missing something, as I get a "Page Not Found" error.
-
Using DRF ModelViewSet for a task manager with attachments - any feedback?
I looked at a couple DRF nested resource libraries (drf-extensions and drf-nested-routers) but found them to be overkill.
What are some alternatives?
drf-spectacular - Sane and flexible OpenAPI 3 schema generation for Django REST framework.
django-restql - Turn your API made with Django REST Framework(DRF) into a GraphQL like API.
Django REST Swagger - Swagger Documentation Generator for Django REST Framework: deprecated
drf-flex-fields - Dynamically set fields and expand nested resources in Django REST Framework serializers.
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
dr_scaffold - scaffold django rest apis like a champion 🚀
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation
django-rest-witchcraft - Django REST Framework integration with SQLAlchemy
dj-rest-auth - Authentication for Django Rest Framework
django-rest-framework-gis - Geographic add-ons for Django REST Framework. Maintained by the OpenWISP Project.
django-rest-framework - Web APIs for Django. 🎸
Sentry - Developer-first error tracking and performance monitoring