Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [swagger-ui]

Swagger UI is a collection of HTML, CSS and JavaScript objects that dynamically generate documentation from a Swagger-compliant API

0 votes
2 answers
40 views

Swagger UI and OpenAPI 3 - Switch request body examples by example $ref

I have 2 schemas with an example. I want to change the request body with the dropdown. Actually everything is working. I have the list with examples displayed and the values in RequestBody change only ...
JDev's user avatar
  • 2,411
-1 votes
0 answers
21 views

Uncaught SyntaxError: Unexpected token '<' - swagger

I have included swagger in express and deployed on vercel. Swagger is working fine locaally but giving Uncaught SyntaxError: Unexpected token '<' in browser console when i deploy app to vercel. ...
Aqeel Nasrullah's user avatar
-1 votes
0 answers
9 views

Can we assign the ssm param values to allowable values in Swagger

In my Swagger, I need to give the allowable values attribute a value that is actually present in SSM. The problem is that I have to update the value in code everytime I update it in SSM. Its really ...
Sow Mya's user avatar
0 votes
1 answer
30 views

Swagger UI doos not show Authenticate button in Spring Boot

I am using Swagger UI to test APIs for Spring Boot on Mac. However, the authenticate button does not show up so that I can put a JWT token for authentication. How can I solve this issue? I searched ...
Murad Aghamirzayev's user avatar
0 votes
0 answers
21 views

swagger-ui-express unnecessary parameter showing

I am using swagger-ui-express with swagger-autogen with the below configurations, but the req.headers.Authorization is showing as a parameter on the routes that has verifyJWT middleware and as my ...
ayex's user avatar
  • 312
1 vote
1 answer
33 views

Springdoc OpenAPI add Classpath Yaml

I have an OpenAPI description defined in its own library. This library is used as a gradle dependency in my project. I am using Springdoc v.2.5.0. My project is a Spring Cloud Gateway. Currently, I am ...
dasganni's user avatar
  • 153
0 votes
0 answers
11 views

Flask swagger is not loading - flasgger

I have used flasgger to create Swagger UI for my flask application. On local it is working fine & swagger is loading properly but when I am running it on the server I am getting below error: **...
Ashrita Gupta's user avatar
0 votes
0 answers
48 views

Springfox - Swagger UI - "Unable to infer base url...or when the API is behind an API Gateway" - error with ipv6 host, for ipv4 swaggerui works fine

When I try to access https://my-ipv4-adress/api/swagger-ui/index.html , it works perfectly fine for me. However, when I try to access https://my-ipv6-address/api/swagger-ui/index.html , I get a popup ...
Sash_KP's user avatar
  • 5,581
0 votes
1 answer
44 views

OpenAPI - Could not resolve reference: Failed to fetch - from json

Swagger Editor throws an error, after searching similar issues, read documentation, googling... i cant get correct result, can you help me please? Thanks Resolver error at paths./create.post....
Peter's user avatar
  • 31
0 votes
0 answers
19 views

filter swagger documentation according to controller

I want to filter the swagger documentation according to controller name.Is there any swagger endpoint i can access where i can provide the controller name and it will filter the documentation to only ...
Sk2002's user avatar
  • 1
0 votes
1 answer
56 views

How to configure Newtonsoft JSON.NET serializer settings for Swagger example classes?

I am using Newtonsoft JSON.NET for object serialization in an ASP.NET Core (.NET 8) project implementing REST APIs and I need to change serialization settings used for Swagger examples from ...
Alek Davis's user avatar
  • 10.7k
1 vote
1 answer
43 views

Swagger API : should not accept Null

I have added the following to the swagger definition for the api. value : BooleanEnum = Query ( False, alias="value") class BooleanEnum(str, Enum): true = "true" false = &...
Tanu's user avatar
  • 1,472
0 votes
0 answers
25 views

Unable to set Global Header in Swagger-UI Spring-Boot

I am configuring Swagger UI for my spring boot application and the swagger is up and running fine. Now I need to setup a global header in swagger for all the APIs, made all the changes as given below ...
Deepu's user avatar
  • 29
0 votes
1 answer
36 views

How to get a token from ASP.NET core client

ASP.NET CORE Client-Side Best Practice to pass to Generate the Token. The API has been configured with a JWT to secure few actions (e.g. PUT). I have enabled the Edit link (in the index.cshtml) that ...
user2835586's user avatar
0 votes
1 answer
40 views

Auth ErrorTypeError: Failed to fetch. Swagger with OAuth2 Security Scheme, Spring Boot App

I have a Rest API made with Spring Boot and is secured by an external service Authorization Server using OAUTH2 and I'm creating the Docs with springdoc-openapi. The issue is that when sending the ...
Durian Sosa's user avatar

15 30 50 per page
1
2 3 4 5
304