Skip to content

Wrong @Path in ShopResource #271

@dkoci

Description

@dkoci

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions