Skip navigation links

@Version(value="1.3")

Package org.eclipse.microprofile.rest.client

APIs for building a type-safe RESTful client leveraging existing JAX-RS APIs, for example:

See: Description

Package org.eclipse.microprofile.rest.client Description

APIs for building a type-safe RESTful client leveraging existing JAX-RS APIs, for example:
 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
 
Since:
1.0
Skip navigation links

Copyright © 2020 Eclipse Foundation. All rights reserved.