Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Manish kumar manish2aug

🎯
Focusing
View GitHub Profile
View TempClient.java
@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
@manish2aug
manish2aug / TempClient.java
Created Mar 30, 2020
CompletionStageIssue
View TempClient.java
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")
View gist:b4133b9fbedc2175e15b303a0682b552
@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,