Complete the code to import the Swagger UI middleware.
const swaggerUi = require('[1]');
The correct package to integrate Swagger UI with Express is swagger-ui-express.
Complete the code to serve Swagger UI at the '/api-docs' route.
app.use('/api-docs', swaggerUi.[1](swaggerDocument));
The method to set up Swagger UI middleware is setup.
Fix the error in the Swagger document import statement.
const swaggerDocument = require('./[1].json');
The Swagger JSON file is commonly named swagger.json.
Fill both blanks to correctly import Express and create an app instance.
const [1] = require('express'); const app = [2]();
You import Express as express and call it as a function to create the app instance.
Fill all three blanks to correctly set up Swagger UI middleware with options.
app.use('/api-docs', swaggerUi.[1](swaggerDocument, [2])); const options = [3];
The setup method is used with the Swagger document and options object. The options object can include settings like persistAuthorization.
