Skip to content
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

Wrong @Path in ShopResource #271

Open
dkoci opened this issue Jan 19, 2024 · 0 comments
Open

Wrong @Path in ShopResource #271

dkoci opened this issue Jan 19, 2024 · 0 comments

Comments

@dkoci
Copy link

dkoci commented Jan 19, 2024

Hi.
I think there is a typo in https://github.com/cescoffier/reactive-systems-in-java/blob/main/chapter-7/order-example/src/main/java/org/acme/ShopResource.java, method createUser (got MethodNotAllowed response). There should be no {name} in @Path (you use QueryParam instead of PathParam). It should be

@POST
@Path("/users")
public Uni<Long> createUser(@QueryParam("name") String name)
{}

I removed {name} from @Path and everything works fine.

That typo appears in book (Example 7-8), page 130 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant