@Path(value="/v1/person/{id: \\w+}")
public class PersonResource
extends Object
| Constructor and Description |
|---|
PersonResource(PersonStore store) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete(String id) |
javax.ws.rs.core.Response |
get(String id,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
put(String id,
PersonRepresentation person) |
@Inject public PersonResource(PersonStore store)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response get(@PathParam(value="id")
String id,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@PUT
@Consumes(value="application/json")
public javax.ws.rs.core.Response put(@PathParam(value="id")
String id,
PersonRepresentation person)
@DELETE
public javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
Copyright © 2010-2016 Airlift. All Rights Reserved.