@Path(value="/Site") public class SiteUtil extends Object
| Constructor and Description |
|---|
SiteUtil() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
add(gr.i2s.fishgrowth.model.Site site) |
javax.ws.rs.core.Response |
delete(Long id) |
gr.i2s.fishgrowth.model.Site |
getSite(Long id) |
List<?> |
getSites(String ownerId) |
javax.ws.rs.core.Response |
update(gr.i2s.fishgrowth.model.Site site) |
@PUT
@Consumes(value="application/json")
public javax.ws.rs.core.Response add(gr.i2s.fishgrowth.model.Site site)
throws Exception
Exception@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response update(gr.i2s.fishgrowth.model.Site site)
throws Exception
Exception@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
Long id)
throws Exception
Exception@GET
@Path(value="/{id}")
@Produces(value="application/json")
public gr.i2s.fishgrowth.model.Site getSite(@PathParam(value="id")
Long id)
throws Exception
ExceptionCopyright © 2017. All Rights Reserved.