diff --git a/examples/openapi-tools/quickstart-mp/README.md b/examples/openapi-tools/quickstart-mp/README.md index 5cc6b5d66d6..d87a0acb6d1 100644 --- a/examples/openapi-tools/quickstart-mp/README.md +++ b/examples/openapi-tools/quickstart-mp/README.md @@ -44,7 +44,7 @@ Let's change a little class `MessageServiceImpl` for our example : 5) Replace implementation of the method `public Message getMessage(@PathParam("name") String name)` by this: ```java Message result = new Message(); - return result.message(defaultMessage.get().getMessage()).greeting(name); + return result.message(name).greeting(defaultMessage.get().getGreeting()); ``` 6) Replace implementation of the method `public Response updateGreeting(@Valid @NotNull Message message)` by this: ```java diff --git a/examples/openapi-tools/quickstart-mp/mp-server/src/main/java/org/openapitools/server/api/MessageServiceImpl.java b/examples/openapi-tools/quickstart-mp/mp-server/src/main/java/org/openapitools/server/api/MessageServiceImpl.java index 11645c76e46..0bd8722d3ed 100644 --- a/examples/openapi-tools/quickstart-mp/mp-server/src/main/java/org/openapitools/server/api/MessageServiceImpl.java +++ b/examples/openapi-tools/quickstart-mp/mp-server/src/main/java/org/openapitools/server/api/MessageServiceImpl.java @@ -59,7 +59,7 @@ public Message getDefaultMessage() { @Produces({"application/json"}) public Message getMessage(@PathParam("name") String name) { Message result = new Message(); - return result.message(defaultMessage.get().getMessage()).greeting(name); + return result.message(name).greeting(defaultMessage.get().getGreeting()); } @PUT