Skip to content

Instantly share code, notes, and snippets.

@bgoetzmann
Created March 27, 2023 15:46
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/3b01ff73cd85dc5c132d54dce0aad527 to your computer and use it in GitHub Desktop.
Save bgoetzmann/3b01ff73cd85dc5c132d54dce0aad527 to your computer and use it in GitHub Desktop.
SwapiService swapiService =
RestClientBuilder.newBuilder()
.baseUrl(new URL("https://swapi.dev/api"))
.build(SwapiService.class);
JsonObject character = swapiService.getCharacter(id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment