You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In working with the openapi-ui MP extension (and this is not unique to that extension), the user cannot execute the endpoint to update the greeting correctly because there is no way to provide the new greeting input parameter.
From a browser access http://localhost:8080/openapi-ui
Click on the PUT button for /greet/greeting. There is no way to enter the request body JSON for the new greeting message. Clicking Execute yields a server error because the expected request body is missing.
The text was updated successfully, but these errors were encountered:
Note that we could add a large number of other OpenAPI annotations to all endpoints in the MP quickstart example so the OpenAPI info is more extensive (descriptions, examples, etc.). But I like the idea of not doing so, keeping the clutter to a minimum. That said, the @RequestBody change above is a necessary bug fix.
Environment Details
Problem Description
In working with the openapi-ui MP extension (and this is not unique to that extension), the user cannot execute the endpoint to update the greeting correctly because there is no way to provide the new greeting input parameter.
Steps to reproduce
For example, to the 2.x quickstart MP example:
GreetApplication#getClasses
method. (See also Update helidon-quickstart-mp to show proper JAX-RS application discovery #1380)mvn package
java -jar target/helidon-quickstart-mp.jar
http://localhost:8080/openapi-ui
/greet/greeting
. There is no way to enter the request body JSON for the new greeting message. ClickingExecute
yields a server error because the expected request body is missing.The text was updated successfully, but these errors were encountered: