@Path(value="/hello")
public interface HelloService
| Modifier and Type | Method and Description |
|---|---|
HelloResponse |
hello(String name,
int n) |
HelloProtos.HelloResponse |
helloProto(String name,
int n) |
HelloResponse |
helloSmile(String name,
int n) |
HelloResponse |
helloYaml(String name,
int n) |
@GET
@Path(value="/{name}/{n}")
@Produces(value="application/json")
HelloResponse hello(@PathParam(value="name")
String name,
@PathParam(value="n") @DefaultValue(value="1")
int n)
@GET
@Path(value="/smile/{name}/{n}")
@Produces(value="application/x-jackson-smile")
HelloResponse helloSmile(@PathParam(value="name")
String name,
@PathParam(value="n") @DefaultValue(value="1")
int n)
@GET
@Path(value="/yaml/{name}/{n}")
@Produces(value="application/yaml")
HelloResponse helloYaml(@PathParam(value="name")
String name,
@PathParam(value="n") @DefaultValue(value="1")
int n)
@GET
@Path(value="/proto/{name}/{n}")
@Produces(value="application/protobuf")
HelloProtos.HelloResponse helloProto(@PathParam(value="name")
String name,
@PathParam(value="n") @DefaultValue(value="1")
int n)
Copyright © 2018. All rights reserved.