You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable API-versioning and allow for both v3 and v4 versions.
This is a tech-preview PR, and will only "turn on" if the
ENABLE_V4_API is set to True in settings.
It will allow urls for /v3/ and /v4/, and reject other versions.
For urlpatterns registered with a `/<str:version>/` slug, views
will be called with a `version=` kwarg.
NOTE: To play this game, plugins will need to insure that all
views accept `**kwargs` first, and then update the patterns in their
`urls.py` to include the version-slug.
See the `/status/` view and serializer(s) for an example of
how to respond based on the incoming request.
NOTE to implementers: **existing tests must pass without changes**
whether the ENABLE flag is True or False. If that isn't the case -
you're doing something wrong.
closes#6462
0 commit comments