Skip to content

Cache /api/schema/ endpoint #15894

@mulmat

Description

@mulmat

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.py

Use case

Generating openapi schema takes some time, caching it would:

  • Decrease response time when doing multiple calls to /api/schema/
  • Lower the resources needed from application server (since less openapi schemas will be generated)

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions