-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get versioned schema ui #71
Comments
that is i think the only thing that the tests do not explicitly cover. congratulations on finding the hole 😄 it should be possible though. the
otherwise you could always do it explicitly with
i believe the first one works. the second definitely works. |
correction. the first one cannot work. its needs to be explicit as in the second example i'm afraid. at least currently. |
Yes. You right |
What if we move reverse of URL for scheme to view from template? It will allow you to add version to args of reverse easily via subclassing. Template will be the same for versioned and unversioned UIs. Another approach is to make scheme URL relative to UI URL. But it will require to change current template too. |
i think its a reasonable addition to make that work. the idea for implementation does go in the right direction. on first glace i saw that the |
that should do it. was easier than expected. could have been even easier without that DRF "bug". I discovered that DRF has its own that should fix this for all supported versioning types. close the issue if it works as expected. |
@MissiaL could you check if that works for you? |
Yes. I will check |
It works! Thanks! |
I have several versioned schemas. How can I get schema-ui views for each version?
The text was updated successfully, but these errors were encountered: