ExpressJS Swagger UI Display Request Duration

Viewed 36
1 Answers

This answer is only for the use of swagger-jsdoc and swagger-ui-express packages.

The displayRequestDuration can be defined in the swaggerUI.setup() function. For example

app.use("/swagger", swaggerUI.serve, swaggerUI.setup(swaggerDocs, { swaggerOptions:{ displayRequestDuration: true } }));

Related