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:
Cristi Vîjdea 2019-03-04 03:28:32 +02:00
parent e7c84cb32b
commit b93a0cc722

View File

@ -329,6 +329,7 @@ SWAGGER_SETTINGS = {
},
'VALIDATOR_URL': None,
'DEFAULT_INFO': 'netbox.urls.swagger_info',
'DEFAULT_MODEL_DEPTH': 0,
}