Ravi Srinivasan
2020-05-04 d1a063e3d132afadbaa5c461de64deef9e365330
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.redhat.training.api;
 
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
 
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
 
@RegisterRestClient
public interface SpanishService {
 
    @Path("/")
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String sayHola();
 
}