β Fullstack with Vue.jsQuestion 40 of 62
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
- How can you restrict which queryset a DRF view uses?
- Where do the values in request.data come from in Django REST Framework?
- In DRF, how does field-level vs object-level validation work in serializers?
- 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 ...):
β PreviousNo login needed