Generated MP app SimpleGreetResource#getMessage
method claims to produce JSON but returns String
#8536
Labels
SimpleGreetResource#getMessage
method claims to produce JSON but returns String
#8536
Environment Details
Problem Description
Using
helidon init
for a custom MP app, the generatedSimpleGreetResource
class contains thegetMessage
method (the one that accepts a name to greet):The method's annotations say it returns JSON but it actually returns a
String
(that is not JSON - just the greeting message).Steps to reproduce
Generate an MP custom app.
Build and run.
curl http://localhost:8080/simple-greet/Anyone
The response content is
Hello Anyone
, not JSON as claimed by the@Produces
annotation and as indicated in the responseContent-Type
header.The text was updated successfully, but these errors were encountered: