@Path(value="/personservice/") public class PersonService extends Object
| Constructor and Description |
|---|
PersonService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePerson(String id) |
org.apache.servicemix.examples.camel.rest.model.Person |
getPerson(String id) |
javax.ws.rs.core.Response |
putPerson(org.apache.servicemix.examples.camel.rest.model.Person person) |
@GET
@Path(value="/person/get/{id}/")
@Produces(value="application/xml")
public org.apache.servicemix.examples.camel.rest.model.Person getPerson(@PathParam(value="id")
String id)
@POST @Path(value="/person/post") public javax.ws.rs.core.Response putPerson(org.apache.servicemix.examples.camel.rest.model.Person person)
@DELETE
@Path(value="/person/delete/{id}")
public void deletePerson(@PathParam(value="id")
String id)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.