Questions tagged [swagger-ui]
Swagger UI is a collection of HTML, CSS and JavaScript objects that dynamically generate documentation from a Swagger-compliant API
swagger-ui
4,556
questions
0
votes
0
answers
8
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:
**...
0
votes
0
answers
37
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 ...
0
votes
1
answer
32
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....
0
votes
0
answers
18
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 ...
0
votes
1
answer
52
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 ...
1
vote
1
answer
41
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 = &...
0
votes
0
answers
23
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 ...
0
votes
1
answer
32
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 ...
0
votes
1
answer
34
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 ...
1
vote
1
answer
33
views
Why XML File turn into purple code in Swagger? What's Wrong in my code
I'm trying to get an xml request body to display in Swagger UI. However, this is what I get:
This is the documentation I want:
<doc><members> ..... !--5. UpdCom1 -->
<br>
...
1
vote
0
answers
21
views
Is there a way to document multipart form data with id ‘com.epages.restdocs-api-spec’ version “0.18.2” library?
I’m currently working on a Spring Boot project and I’m using the com.epages.restdocs-api-spec library version “0.18.2” to generate API documentation. However, I am having trouble documenting endpoints ...
0
votes
1
answer
76
views
Why is Swagger UI not showing my endpoint with a specific name?
I have a mysterious behaviour in Swagger UI
When I name an endpoint "IDCard" it is not showing up in Swagger UI (the endpoint IS callable through Postman though!):
However, if I name it &...
0
votes
0
answers
34
views
Swagger UI not working in prod mode when quarkus.vertx.classpath-resolving is disabled in Quarkus 3.12.0
In prod mode swagger-ui works when classpath resolving is enabled but not when it is disabled.
Specifically, this property value stops swagger-ui from working:
quarkus.vertx.classpath-resolving=false
...
0
votes
1
answer
15
views
Springdoc works with war but cannot start when embedded within an ear (Wildfly31 + JDK17)
I was using spring-core 6.1.5, springdoc-openapi-starter-webmvc-ui 2.5.0. When i packaged my application as war and deploy to Wildfly31 running on JDK17, it was working fine and I am able to access ...
0
votes
0
answers
19
views
Display query parameter example in Swagger UI
Here is a simple API spec:
https://app.swaggerhub.com/apis/HITESHWALIA_1/simple-api/1.0.0
In Swagger UI, is there any way to display query parameter example? That is, to display GET /hello?name=John