Created
March 27, 2023 15:46
-
-
Save bgoetzmann/3b01ff73cd85dc5c132d54dce0aad527 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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