Django REST Swagger
drf-flex-fields
Our great sponsors
Django REST Swagger | drf-flex-fields | |
---|---|---|
4 | 3 | |
2,528 | 711 | |
- | - | |
0.0 | 4.0 | |
over 3 years ago | 6 months ago | |
Python | Python | |
BSD 2-clause FreeBSD License | MIT License |
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.
Django REST Swagger
-
OAS is the most crtitical tool for API Developers
Common frameworks for building APIs in Python are the Django Rest Framework and Flask-RESTPLUS. Django developers can add the django-rest-swagger module via pip, whereas Flask-RESTPLUS has Swagger support built in. Both are very powerful in terms of automation, so they do not require a lot of configuration.
-
Auto OpenAPI Generation — The Network Doesn’t Lie!
Examples include Swagger-Core, SpringFox, NSwag / Swashbuckle, Swagger-express / HAPI-Swagger, Django-REST-Swagger / Flask-RESTplus, etc.
-
Does django-rest-swagger not work well with modelserializers?
I've been going off of the documentation on the django-rest-swagger github page, more specifically the part called "How it works". It shows that you can define your own parameters for your rest api, and have those parameters show up in your swagger doc page.
-
Exclude URLs from Django REST Swagger
I have a few URLs that I want to exclude from my REST API documentation. I'm using Django REST Swagger and the only documentation I can find (https://github.com/marcgibbons/django-rest-swagger) doesn't really tell me much. There is the "exclude_namespaces" part of SWAGGER_SETTINGS in settings.py, but there is no real explanation or example of how to use this.
drf-flex-fields
-
Ideal way to implement listing of products with tags
You could use a HyperLinked model serializer (also check this) and add expandable fields so with one call you can choose if you want the tags field to be detailed (expanded) or not. E.g. /product//?expand=tags
-
problem with dynamic filtering serializer
You can use drf-flex-fields or copy its implementation. It has exactly what you need, ctrl + f "?fields=".
-
is it a bad practice to have a lot of slightly different serializers?
This library helps me reuse serializers a lot more https://github.com/rsinger86/drf-flex-fields
What are some alternatives?
drf-yasg - Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
django-rest-framework - Web APIs for Django. 🎸
ara - ARA Records Ansible and makes it easier to understand and troubleshoot.
doccano - Open source annotation tool for machine learning practitioners.
best-of-web-python - 🏆 A ranked list of awesome python libraries for web development. Updated weekly.
django-tastypie - Creating delicious APIs for Django apps since 2010.
drf-nested-routers - Nested Routers for Django Rest Framework
django-modern-rpc - Simple XML-RPC and JSON-RPC server for modern Django
django-rest-auth - This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
django-admin-interface - :superhero: :zap: django's default admin interface with superpowers - customizable themes, popup windows replaced by modals and many other features.
django-template - A battle-tested Django 2.1 project template with configurations for AWS, Heroku, App Engine, and Docker.