swagger-ui

Is it any ability to upload MultipartFile with Model in Swagger? (In comment 415 Unsupported Media Type Resolved)

不想你离开。 提交于 2021-01-16 03:58:29
问题 I'm using the last (and only) <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> with spring boot <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.1</version> <relativePath/> <!-- lookup parent from repository --> </parent> I would like to have ability to upload file and model in one controller, so I created one: in this case on swagger-ui I see

Is it any ability to upload MultipartFile with Model in Swagger? (In comment 415 Unsupported Media Type Resolved)

百般思念 提交于 2021-01-16 03:54:53
问题 I'm using the last (and only) <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> with spring boot <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.1</version> <relativePath/> <!-- lookup parent from repository --> </parent> I would like to have ability to upload file and model in one controller, so I created one: in this case on swagger-ui I see

Is it any ability to upload MultipartFile with Model in Swagger? (In comment 415 Unsupported Media Type Resolved)

人盡茶涼 提交于 2021-01-16 03:52:42
问题 I'm using the last (and only) <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> with spring boot <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.1</version> <relativePath/> <!-- lookup parent from repository --> </parent> I would like to have ability to upload file and model in one controller, so I created one: in this case on swagger-ui I see

Quarkus: how to test secured API endpoints with swagger-ui

霸气de小男生 提交于 2021-01-03 07:08:02
问题 We have a Quarkus application with some secured endpoints. For development and easy testing without much effort, we would like to use Swagger UI as described at https://quarkus.io/guides/openapi-swaggerui. But this seems to only work for unprotected endpoints. Is there a way to also make request to protected endpoints in Swagger UI? 回答1: You need to add a security scheme to your specification: One way to do it is by using annotations: @OpenAPIDefinition(info = @Info(title = "My API", version

Quarkus: how to test secured API endpoints with swagger-ui

拜拜、爱过 提交于 2021-01-03 07:06:31
问题 We have a Quarkus application with some secured endpoints. For development and easy testing without much effort, we would like to use Swagger UI as described at https://quarkus.io/guides/openapi-swaggerui. But this seems to only work for unprotected endpoints. Is there a way to also make request to protected endpoints in Swagger UI? 回答1: You need to add a security scheme to your specification: One way to do it is by using annotations: @OpenAPIDefinition(info = @Info(title = "My API", version

Quarkus: how to test secured API endpoints with swagger-ui

老子叫甜甜 提交于 2021-01-03 07:05:51
问题 We have a Quarkus application with some secured endpoints. For development and easy testing without much effort, we would like to use Swagger UI as described at https://quarkus.io/guides/openapi-swaggerui. But this seems to only work for unprotected endpoints. Is there a way to also make request to protected endpoints in Swagger UI? 回答1: You need to add a security scheme to your specification: One way to do it is by using annotations: @OpenAPIDefinition(info = @Info(title = "My API", version

Quarkus: how to test secured API endpoints with swagger-ui

百般思念 提交于 2021-01-03 07:04:13
问题 We have a Quarkus application with some secured endpoints. For development and easy testing without much effort, we would like to use Swagger UI as described at https://quarkus.io/guides/openapi-swaggerui. But this seems to only work for unprotected endpoints. Is there a way to also make request to protected endpoints in Swagger UI? 回答1: You need to add a security scheme to your specification: One way to do it is by using annotations: @OpenAPIDefinition(info = @Info(title = "My API", version

Springfox Swagger UI behind reverse proxy

﹥>﹥吖頭↗ 提交于 2021-01-03 06:12:59
问题 I have configured a Spring Boot application with Swagger API documentation and configured Swagger UI. I also run my backend application behind a reverse proxy that maps all requests from host:port/api to backend_host:port/ , when running locally on localhost I map localhost:8082/api . In production a similar mapping is applied. When I open the Swagger UI from localhost:8082/api/swagger-ui.html it shows the following lines below the title: [ Base URL: localhost:8080 ] http://localhost:8082/api

Swagger enum values not getting displayed in drop down?

三世轮回 提交于 2021-01-01 08:14:17
问题 This is my controller method where the enum is accepted @GetMapping("/{sortBy}/{page}/{size}") public ResponseDto<ReviewsResponseDto, Void> searchAllReviews( @PathVariable(value = "sortBy") ReviewsSortBy sortBy, @PathVariable Integer page, @PathVariable Integer size) This is my enum ReviewsSortBy @Getter @ToString public enum ReviewsSortBy { DEFAULT, FEATURED, RECENT; } Now the problem is that swagger doesnt display the possible values of enum in dropdown, instead it just displays

Swagger enum values not getting displayed in drop down?

↘锁芯ラ 提交于 2021-01-01 08:13:38
问题 This is my controller method where the enum is accepted @GetMapping("/{sortBy}/{page}/{size}") public ResponseDto<ReviewsResponseDto, Void> searchAllReviews( @PathVariable(value = "sortBy") ReviewsSortBy sortBy, @PathVariable Integer page, @PathVariable Integer size) This is my enum ReviewsSortBy @Getter @ToString public enum ReviewsSortBy { DEFAULT, FEATURED, RECENT; } Now the problem is that swagger doesnt display the possible values of enum in dropdown, instead it just displays