package com.redhat.restclient;
|
|
import org.eclipse.microprofile.rest.client.inject.RestClient;
|
import org.eclipse.microprofile.opentracing.Traced;
|
|
import javax.inject.Inject;
|
import javax.ws.rs.Consumes;
|
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("/currencies")
|
@Produces(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
@Traced
|
public class CurrencyResource {
|
|
@Inject
|
@RestClient
|
CurrencyService currencies;
|
|
@GET
|
public List<String> getCurrencyNames() {
|
return currencies.getCurrencyNames();
|
}
|
|
}
|