swagger-2.0 Questions

3

I am using Springfox Swagger2 with Spring boot 1.5.9. I can access swagger UI on this link. http://localhost:8090/swagger-ui.html How can I change it to be available on following URL? http://lo...
Fencesitter asked 6/6, 2018 at 4:58

5

I am trying to configure Swagger UI with my Spring boot application. Although the v2/api-docs seems to be loading properly, the http://localhost:8080/swagger-ui.html does not load my annotated REST...
Tenter asked 26/4, 2017 at 18:42

3

Solved

I have a POST request that uses the following JSON request body. How can I describe this request body using OpenAPI (Swagger)? { "testapi":{ "testapiContext":{ "messageI...
Evaporate asked 13/7, 2015 at 18:30

5

Solved

I'm using Swashbuckle with ASP.net core. It is producing a nice website with a list of models at the bottom. How can I add a model to this list that isn't already appearing? I return an abstrac...
Osmund asked 27/2, 2018 at 10:9

7

Solved

I am trying to convey that the authentication/security scheme requires setting a header as follows: Authorization: Bearer <token> This is what I have based on the swagger documentation: secu...
Gurley asked 2/10, 2015 at 14:57

2

Solved

Is it possible to group multiple parameters to reference them in multiple routes? For example I have a combination of parameters which I need in every route. They are defined as global parameters. ...
Congregationalist asked 19/8, 2015 at 9:21

4

Solved

I'm using spring boot and I've added swagger to my dependencies: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <versi...
Baum asked 1/2, 2018 at 16:52

3

Solved

Designing an API using editor.swagger.io I find myself unable to add a requestBody attribute, getting an error I cannot address: Schema error at paths['/projects/{projectId}/user'].post should NO...
Accrescent asked 4/12, 2017 at 11:25

5

pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> &...

3

Solved

I want to send a list of objects in the response of an API using Swagger. @ApiResponse(code = 200, message = ApiResponseMessages.ITEM_FETCHED, response = "") I have a class - class Item{ int...
Lyndell asked 21/2, 2019 at 10:44

2

Could not resolve reference because of: Could not resolve pointer: /definitions/Error does not exist in document I followed this link http://www.baeldung.com/swagger-2-documentation-for-spring-res...
Fullerton asked 31/3, 2018 at 13:2

4

I am using the Springfox jars for implementation of swagger in my spring boot project the gradle dependencies look like: dependencies { compile group: 'org.springframework.boot', name: 'spring-boo...
Jamison asked 11/5, 2019 at 16:5

16

I moved my project from spring-boot 2.1.9 to 2.2.0. While starting the project, I am facing the below error messages. Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: N...
Spooky asked 17/10, 2019 at 11:45

1

I have a spring-boot application with swagger2. I want to be able to map a list of parent objects to my request model in swagger. I am using annotations atm but using a yaml file is also possible. ...
Haddad asked 12/4, 2017 at 9:4

3

I use Swagger 2 with non-spring-boot and I also can deploy my app on Tomcat and run it successfully. But the controller does not appear in swagger-ui.html, just the empty page with the green swagge...
Hyperextension asked 21/9, 2016 at 3:28

3

I am using swaggo (https://github.com/swaggo/swag) to auto-create a working swagger specification for my API. The swagger spec allows me to run all of my API endpoints and receive responses. I t...
Recrystallize asked 16/5, 2019 at 21:27

2

I'm developing spring-boot app with swagger-ui and lombok. Currently I'm trying to hide nested object from request body, but it still shows in example json on swagger-ui page. I have my class with ...
Calley asked 24/11, 2018 at 1:13

4

Solved

I have a ASP.NET Web Api 2 application. I added Swashbuckle to it (Swagger for .NET). It displays my endpoints no problem, but in order to send a request I need to attach an Authorization header to...
Crummy asked 20/5, 2015 at 13:9

2

I migrated to latest springfox-swagger2 version 2.10.0 but looks like @EnableSwagger2 is deprecated. What annotation should I use in order to enable Swagger into Spring Boot project? @EnableSwagger...
Deli asked 23/6, 2020 at 16:51

1

Solved

I started programming using FastAPI framework and it comes with a builtin Swagger interface to handle requests and responses. I have completed nearly 20 APIs and its hard to manage and recogn...
Divalent asked 6/9, 2020 at 8:56

1

I have to upload multiple file of type MultipartFile from swagger to test my api. Postman does allow to upload, however, same thing is not working in swagger. Code for list of multipart file: @Ap...
Redroot asked 7/2, 2019 at 20:17

2

We are implemented spring fox swagger 2 of version 2.6.1, i wanted to display a specific property of a resource for HTTP GET METHOD and not for POST METHOD, i haven't find any approach using swagge...
Esther asked 21/2, 2017 at 5:12

4

I am using Springfox Swagger2 version 2.4.0, Springfox Swagger UI version 2.4.0 and Swagger Annotations version 1.5.0 in my Spring Boot application. The problem is, I am able to generate swagger UI...
Noel asked 20/2, 2017 at 15:39

2

I'm currently using the Swagger Editor locally in my network. Is there any possibility that the editor can import a file directly from a git server? I'm defining an API and I would like to have th...
Presently asked 16/12, 2015 at 20:36

5

I'm using the same Object both for my Request and Response on a REST endpoint. Is it possible to annotate a property with ApiModelProperty(access = "response") and then annotate the rest endpoint m...
Publishing asked 9/9, 2015 at 16:39

© 2022 - 2024 — McMap. All rights reserved.