| | |
| | | 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(); |
| | | } |