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 is part of the Swagger project.

It adds form to your APIs by making them look good and presentable so that client code can be written easily, at the same time it also makes documentation easier by integrating it with code.

It originated out of the Open API Specification. The source can be found here.

A sample Swagger UI can be found at the Pet Store.

4353 questions
2
votes
1 answer

Swagger-UI Customization in Swagger-Tools

I want to be able to modify swagger-ui and it is currently beng served through the instance in swagger tools, which is the current dist folder of swagger-ui. I would like to modify the templates and more through main/templates which swagger tools…
user3221287
  • 337
  • 3
  • 12
2
votes
2 answers

How to send the Default value through body in Swagger 2.0

Hi i am trying to send the Default values through body parameters but its Not taking while Submitting. can anybody please help me on this issue. Here is my code and i am trying to send the default name parameter through body swagger: '2.0' info: …
Jeevan
  • 756
  • 13
  • 39
2
votes
1 answer

API endpoint not showing in swagger ui but is reachable

I have a grape swagger ui running in a docker compose project. the app builds and is browseable. the problem I have is I create a new API with the Napa generator (people in this case) and it does not show up in the swagger ui. I can log into the…
Nungster
  • 726
  • 8
  • 28
2
votes
1 answer

Swagger Sails JS in production

I want to only have swagger in development environment but I want to disable this link or disable swagger when deploy on production. How can I do it?
haidn
  • 29
  • 5
2
votes
0 answers

Swagger ui sends POSTs with query parameters instead of body

I have a controller method: [HttpPost] public HttpResponseMessage SetKitten([FromBody] string kittenName) { return Request.CreateResponse(HttpStatusCode.OK); } In Swagger it appears as a POST but when I try it, swagger sends the request using…
NibblyPig
  • 51,118
  • 72
  • 200
  • 356
2
votes
3 answers

Swagger UI displaying the asp.net webapi parameter name with dot notation

I have configured Swagger for my asp.net webapi which is similar to one shown below [HttpGet] [Route("search")] public async Task Get([FromUri]SearchCriteria searchCriteria) When i see the swagger documentation for the webapi ,…
Mukil Deepthi
  • 6,072
  • 13
  • 71
  • 156
2
votes
0 answers

Swagger java custom css

Currently implementing swagger into a java based project. Swagger is added to the project during the build phase and packaged from maven. I would like to add some custom style to swagger. I see that there is some method CustomAsset, which allows you…
user2524908
  • 861
  • 4
  • 18
  • 46
2
votes
1 answer

How to load a file hosted in a private GitHub repository on Swagger-UI

I want to host on a private website the documentation of my swagger API using swagger-ui. The YAML file is hosted on a private GitHub repository. According the this gist, I successfully retrieved the desired file with the curl command line but I'm…
Jean Lebrument
  • 5,079
  • 8
  • 33
  • 67
2
votes
1 answer

Cannot call the API using Swagger-UI's jar file

I generated my classes using http://swagger.io/ and I got zip files which contains classes and models. When I compile a jar file and then add it to my project as a jar lib it gives me this error: 05-09 17:22:37.894 4589-4589/? E/ReportHandler: FATAL…
2
votes
0 answers

Error in annoting camel swagger Rest Service

I have created a rest Service using Apache Camel Swagger component. The rest service works fine but the request and response schema is not what i intended of. The schema that i am trying to create is : { "GetStudentData": [ { …
Roy
  • 1,231
  • 1
  • 24
  • 61
2
votes
1 answer

spring mvc swaggger ui getting xml response but the swagger ui requires json format

Day before yesterday I came to know about swagger.Its fantastic.But may be because of my lack of knowledge there is something I am unable to do. I tried hard to solve it and finally I putting it as a question here. my pom.xml
Mithun Debnath
  • 588
  • 1
  • 8
  • 23
2
votes
2 answers

Change basePath for swagger-ui

I used swagger project create to stand up an API for a node service. I followed these instructions. I'm also using swagger-tools to serve the swagger-ui. I'd like to dynamically change the basePath of the API and its documentation from '/' and…
Ranj
  • 523
  • 3
  • 6
  • 17
2
votes
0 answers

400 Bad Request in Spring Boot Swagger UI for POST

I've created a Spring Boot application with RestController. I enabled Swagger UI and it works fine as I can login to the UI and execute any GET methods. But for POST methods accepting objects in the body, when I fire off the request using Swagger…
enfany
  • 875
  • 2
  • 15
  • 33
2
votes
0 answers

Swagger UI and accept header for localhost

I'm attempting to add swagger as part of a locally developed project, but I'm finding that when I use the petstore example, requests incorrectly sends 'Accept: text/html' instead of the expected 'Accept: application/json', as specified in the…
agoldencom
  • 1,196
  • 1
  • 8
  • 13
2
votes
1 answer

Edit the swagger.json before loading in the UI

Is there a way to edit the swagger.json before loading it in the ui. My requirement is to manipulate the swagger.json before loading it in the UI, are there any hooks provided by swagger team to accomplish this
Charity
  • 213
  • 1
  • 5
  • 23
1 2 3
99
100