mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -06:00
Improve swagger-ui initial render time
This sets the `defaultModelsExpandDepth` setting to 0, improving the initial render time by greatly reducing the number of elements to be drawn on screen. ref https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md#display
This commit is contained in:
parent
e7c84cb32b
commit
b93a0cc722
@ -329,6 +329,7 @@ SWAGGER_SETTINGS = {
|
||||
},
|
||||
'VALIDATOR_URL': None,
|
||||
'DEFAULT_INFO': 'netbox.urls.swagger_info',
|
||||
'DEFAULT_MODEL_DEPTH': 0,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user