Reputation: 50203
I know there are different ways to enable the HTTP request duration in Swagger UI 3.x:
Swagger UI accepts configuration parameters in four locations.
From lowest to highest precedence:
- The
swagger-config.yaml
in the project root directory, if it exists, is baked into the application- configuration object passed as an argument to Swagger UI (
SwaggerUI({ ... })
)- configuration document fetched from a specified
configUrl
- configuration items passed as key/value pairs in the URL query string
For example with a Docker variable:
DISPLAY_REQUEST_DURATION="true"
I've some API stuck with the older Swagger UI 2.x, though.
In 2.x, is it possible to enable the duration through the Docker variable?
If not, what choices do I have to do it through configuration (not through software)?
Upvotes: 1
Views: 665
Reputation: 97697
Request duration is only available in Swagger UI 3.0.18+, it's not available in v. 2.x
Upvotes: 2