Marek Czernek
2020-03-11 4ee09a800249c91d03502e52fc276d4cf4ae2a23
mczernek-exchange-application/exchange/src/main/java/com/redhat/restclient/CurrencyService.java
@@ -3,19 +3,18 @@
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;
// Path on the service we're calling
@Path("/")
@RegisterRestClient
public interface CurrencyService {
    @POST
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Consumes(MediaType.APPLICATION_JSON)
    List<Currency> getCurrencies(String body);
    List<String> getCurrencyNames();
}