Skip to content

Instantly share code, notes, and snippets.

@wiesson
Created October 18, 2017 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wiesson/18995c3ac1a664fee51b128f1041dd67 to your computer and use it in GitHub Desktop.
Save wiesson/18995c3ac1a664fee51b128f1041dd67 to your computer and use it in GitHub Desktop.
@Path("people/{personId}")
private static class PersonResource {
@PathParam("personId")
protected long personId;
@GET
public Person getPerson() {
return null;
}
@GET
@Path("address/{addressId}")
public Address getAddress(@PathParam("addressId") long addressId) {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment