Skip to content

Instantly share code, notes, and snippets.

View manish2aug's full-sized avatar
🎯
Focusing

Manish kumar manish2aug

🎯
Focusing
View GitHub Profile
@RegisterRestClient
@Path("/parties")
public interface MClient {
@GET
@Path("/")
@ClientHeaderParam(name = "Accept", value = "application/vnd.finplan-mc.v1+json")
@Produces("application/vnd.finplan-mc.v1+json")
CompletionStage<Response> getClients(
@QueryParam("contextType") String contextType,
@manish2aug
manish2aug / TempClient.java
Created March 30, 2020 12:25
CompletionStageIssue
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import java.util.List;
import java.util.concurrent.CompletionStage;
@RegisterRestClient(baseUri = "https://jsonplaceholder.typicode.com")
@manish2aug
manish2aug / TempClient.java
Last active April 6, 2020 22:26
AsynClientIssue
@RegisterRestClient(baseUri = "https://jsonplaceholder.typicode.com")
@RegisterProvider(TempExceptionResponseMapper.class)
public interface TempClient {
@GET
@Path("/todos")
@Produces(MediaType.APPLICATION_JSON)
CompletionStage<Response> getTodos() throws TempException;
@GET