-
Notifications
You must be signed in to change notification settings - Fork 270
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
I have installed drf-spectacular, and it's working great. The problem I've got is that it's a big app, and has a huge amount of endpoints and for each endpoint it repeats the /api/v1/ e.g /api/v1/jobs/. So I thought it would be a good idea to separate the pattern out i.e just /jobs #336
Comments
please describe the problem in more detail. "separating patterns" is could mean several things. |
Thanks for reaching out. I have attached screenshot for reference. I would like to not include api/v1/ when showing endpoints. For example first endpoint under jobs should be displayed /jobs/ . |
try to add with this setting, all endpoints prefixed with SPECTACULAR_SETTINGS = {
# other settings
"SCHEMA_PATH_PREFIX": r"/api/v[1-9][0-9]*"
} |
that is partially correct. |
@mohannad-musleh Thanks for the reply. I am already using it and as @tfranzel said it works for separating endpoints by tags as you can see in the screenshot attached above the endpoints are under jobs. |
@Fyp89 |
Just downloaded the code and checked, works like a charm. Thank you so much for this enhancement @tfranzel . How soon can this change be released ? |
this will be a y-stream release because i had to break an internal interface that some people may use. i have 2-3 more things that would need a y-stream release, which i want bundle together. likely next week. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
It would be most helpful to provide a small snippet to see how the bug was provoked.
Expected behavior
A clear and concise description of what you expected to happen.
The text was updated successfully, but these errors were encountered: