-
-
Notifications
You must be signed in to change notification settings - Fork 544
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
TLDR: this is the duplicate of the issue #361, but:
- the solution there (start the app differently from IntelliJ) did not solve my issue
- I was able to create an MCVE
Describe the bug
I do run spring-boot
2.2.2-RELEASE
with springdoc-openapi-webflux-ui
1.2.29
.
The following requests give me the following statuses:
[vilmosnagy@vnagy-dell hkir-trip-planner]$ curl -sD - http://localhost:8080/v3/api-docs/swagger-config && echo
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 119
{"configUrl":"/v3/api-docs/swagger-config","oauth2RedirectUrl":"/swagger-ui/oauth2-redirect.html","url":"/v3/api-docs"}
[vilmosnagy@vnagy-dell hkir-trip-planner]$ curl -sD - http://localhost:8080/v3/api-docs && echo
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 719
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/v1/test":{"post":{"tags":["example-controller"],"operationId":"getPlanForParameter","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleRequest"}}}},"responses":{"200":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleResponse"}}}}}}}},"components":{"schemas":{"ExampleRequest":{"type":"object","properties":{"id":{"type":"string"}}},"ExampleResponse":{"type":"object","properties":{"id":{"type":"string"},"count":{"type":"integer","format":"int32"}}}}}}
[vilmosnagy@vnagy-dell hkir-trip-planner]$ curl -sD - http://localhost:8080/swagger-ui.html && echo
HTTP/1.1 307 Temporary Redirect
Location: /webjars/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config
content-length: 0
[vilmosnagy@vnagy-dell hkir-trip-planner]$ curl -sD - http://localhost:8080/webjars/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config && echo
HTTP/1.1 404 Not Found
Content-Type: application/json
Content-Length: 155
{"timestamp":1580836491212,"path":"/webjars/swagger-ui/index.html","status":404,"error":"Not Found","message":"No matching handler","requestId":"ed2cc66d"}
[vilmosnagy@vnagy-dell hkir-trip-planner]$
(TLDR: it's the same as in the mentioned issue, the swagger-ui.html
redirects me somewhere, and that page does not load)
To Reproduce
Steps to reproduce the behavior:
- Clone this repository: https://github.com/vilmosnagy/springdoc-webflux-404
- Start the app with
mvn spring-boot:run
in the command line - try to load the Swagger-UI at http://localhost:8080/swagger-ui.html
Expected behavior
- I shall see the swagger IO at that location
Screenshots
Nothing extraordinary, the standard Spirng-Boot error page.
Additional context
My problem is the same as in #361, but I was able to create an MVCE.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested