-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger UI - management API - GET requests with body #12412
Comments
thanks for reporting this @ndywicki |
This issue is stale because it has been open 30 days with no activity. |
I confirm this issue which is quite annoying. This is 100% caused by Swagger UI itself which fills out the request body with this sample text: |
…gement-default-body remove the sample Swagger UI request body if present fix #12412
…er ui request body if present
Yes it's normal, as the swagger ui here is managed only by the backend, so no manual fix has been applied :) |
Overview of the issue
Hello Team,
When I try to fetch the Spring Boot Actuator APIs (/management) with Swagger UI, there is an issue about the GET request have a body.
Stacktrace:
I'm not sure where come from the Open API specifications : http://localhost:8080/v2/api-docs?group=management but the GET request have a parameter in "Body" like "additionalProp1, ..."
Example:
Motivation for or Use Case
Reproduce the error
Generate new Jhipster application with all default values.
After admin login go to API menu and try management API with GET requests.
Related issues
No found in Jhipster but maybe this https://stackoverflow.com/questions/48749252/swagger-typeerror-failed-to-execute-fetch-on-window-request-with-get-head ?
Suggest a Fix
JHipster Version(s)
v6.9.0
v6.10.1
JHipster configuration
Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
Eclipse OpenJ9 VM (build openj9-0.21.0, JRE 1.8.0 Windows 10 amd64-64-Bit Compressed References 20200728_776 (JIT enabled, AOT enabled)
OpenJ9 - 34cf4c075
OMR - 113e54219
JCL - c82ff0c20f based on jdk8u265-b01)
git version 2.28.0.windows.1
node: v14.8.0
npm: 6.14.7
Docker version 19.03.12, build 48a66213fe
docker-compose version 1.26.2, build eefe0d31
INFO! Congratulations, JHipster execution is complete!
Browsers and Operating System
Win10 & Edge Version 85.0.564.44 (Version officielle) (64 bits)
The text was updated successfully, but these errors were encountered: