Questions tagged [swagger-ui-express]

7 questions
1
vote
0 answers

Swagger Documentation not showing when deploying api rest that uses swagger-ui-express into a aws lambda with api gateway

I'm creating an API rest using express, and for the documentation I'm using swagger-ui-express, when deploying my code to the aws lambda every endpoint is accesible from the API gateway, except the endpoint where the documentation is returned. I'm…
1
vote
1 answer

How to use custom CSS file with swagger-ui-express in Node JS

In our index.js file: const swaggerUi = require('swagger-ui-express'); ... router.use('/api-docs', swaggerUi.serve); router.get('/api-docs', swaggerUi.setup(swaggerDocument, { customCssUrl: '/docs.css' })); In the same top-level directory as our…
Canovice
  • 9,012
  • 22
  • 93
  • 211
0
votes
0 answers

Nestjs with Swagger ( Open API ) on Dummy/Mock data

I am working with nestjs and using its swagger implementation. I want my documentation to work on mock data. I am using @nestjs/swagger and swagger-ui-express libraries. Currently it is working on my database. I want it to work on mock data.
0
votes
0 answers

How to add Reusable Headers for swagger documentation using swaggerjsdoc and swaggeruiexpress

Reusable Headers for swagger documentation using swaggerjsdoc. Hi, I need to document my apis written in node js and I am using swaggerjsdoc and swagger express ui. I have about 11 different headers like deviceID, location etc and they will be used…
0
votes
0 answers

Loading OpenAPI YAML file in Swagger UI

The Developer portal for Google cloud is getting depreciated and I am looking for an option to display my docs. Each of my services has the openAPI.yaml file. I would like have a page of links for the services and on click open the respective YAML…
user2570135
  • 2,669
  • 6
  • 50
  • 80
0
votes
2 answers

Swagger-ui-express is not rendering the content of API documentation

I'm using Swagger-ui-express (without JSDOC) in my Express.js app to write documentation for my API. Here's the routing and middleware code (I use swagger.josn file instead of writing comments): const swaggerUI = require('swagger-ui-express'); const…
MaHdi
  • 53
  • 6
0
votes
0 answers

Create Swagger Document from a Schema - using swagger-ui-express

I'm using joi-to-swagger and swagger-ui-express and I'm really struggling to find out how to get this schema to show up correctly. It's getting ignored in all scenarios and I can't find the documentation I need to correctly use the schema. My…
Kevin Danikowski
  • 4,620
  • 6
  • 41
  • 75