MicroProfile Rest Client Cover

MicroProfile Rest Client

Martin Stefanko
English

About

Eclipse MicroProfile brings Enterprise Java applications to the leading edge of the move to microservices. Author Martin Stefanko guides you in getting started with this informative and to-the-point MicroProfile Rest Client Cheat Sheet. Code examples include:

  • Rest Client Definition
  • Client Header Parameter
  • Programmatic Lookup
  • CDI Support
  • Provider Definitions
  • Integration with MicroProfile Config

Excerpt

public interface MyServiceClient {
@GET
@Path("/greet")
Response greet();
}
@Path("/users")
@Produces("application/json")
@Consumes("application/json")
public interface UsersClient {
@OPTIONS
Response options();
@HEAD
Response head();
@GET
List<User> getUsers();

Related Cheat sheets