Skip to content

Instantly share code, notes, and snippets.

@bgoetzmann
Created March 27, 2023 15:37
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 bgoetzmann/b314ef472a0e17782fb11947eace402d to your computer and use it in GitHub Desktop.
Save bgoetzmann/b314ef472a0e17782fb11947eace402d to your computer and use it in GitHub Desktop.
@RegisterRestClient
@Produces(MediaType.APPLICATION_JSON)
public interface SwapiService {
@GET
@Path("/people/{id}")
JsonObject getCharacter(@PathParam("id") String id);
@GET
@Path("/people")
JsonObject getPeople();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment