-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cache /api/schema/ endpoint #15894
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Comments
mulmat
added
status: needs triage
This issue is awaiting triage by a maintainer
type: feature
Introduction of new functionality to the application
labels
Apr 30, 2024
I can own this if accepted |
We actually used to cache the schema definition back in ~v2.11 (see #6423 and 257c0af), before we switched from drf-yasg to spectacular. Unfortunately I don't think spectacular offers caching support natively, so we'd have to implement it ourselves. @mulmat happy to assign this to you to explore options. Let us know what you find! |
jeremystretch
added
status: accepted
This issue has been accepted for implementation
and removed
status: needs triage
This issue is awaiting triage by a maintainer
labels
Apr 30, 2024
mulmat
added a commit
to mulmat/netbox
that referenced
this issue
Apr 30, 2024
jeremystretch
pushed a commit
that referenced
this issue
May 1, 2024
jeremystretch
added a commit
that referenced
this issue
May 1, 2024
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.7.6
Feature type
Change to existing functionality
Proposed functionality
Add caching on the
/api/schema/
endpoint with a sane default (maybe 300 seconds?) and with the possibility to configure it in configuration.pyUse case
Generating openapi schema takes some time, caching it would:
/api/schema/
Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: