See: Description
| Interface | Description |
|---|---|
| RestClientBuilder |
This is the main entry point for creating a Type Safe Rest Client.
|
| Exception | Description |
|---|---|
| RestClientDefinitionException |
This exception is thrown when the MicroProfile Rest Client implementation
attempts to build a client using an invalid interface.
|
public interface MyClientService {
@GET
@Path("/myService/{id}")
Widget getWidget(@PathParam("id") String id);
}
...
MyClientService service = RestClientBuilder.newBuilder()
.baseUrl(url)
.build();
Widget w = service.getWidget(widgetId); // invokes remote service, returns domain object