β Backend PythonQuestion 46 of 49
What types of API versioning does Django REST Framework support?
π Explanation
DRF actually provides URLPathVersioning, HostNameVersioning, AcceptHeaderVersioning, QueryParameterVersioning, and NamespaceVersioning as built-in versioning schemes. The other options include made-up names like MediaTypeVersioning, QueryStringVersioning, ModuleVersioning, RouteVersioning, BlueprintVersioning, HeaderVersioning, and BodyParameterVersioning, which don't exist in DRF.
Related questions
- What are the standard methods in a Django REST Framework ViewSet and their corresponding HTTP methods?
- Examples of Python stdlib modules runnable as scripts (python -m ...):
- What Django ORM feature lets you get "top N per group" (e.g. most expensive product per category) while handling tiesβ¦
- When is annotate() guaranteed to generate a GROUP BY in Django ORM?
- How can you prevent race conditions in a Django application?
β PreviousNo login needed