@Path(value="/Site") public class SiteUtil extends BaseUtil
| 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<gr.i2s.fishgrowth.model.Site> |
getSites(String ownerId) |
List<gr.i2s.fishgrowth.model.Usage> |
getUsage(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
Exception@GET
@Path(value="/all/{ownerId}")
public List<gr.i2s.fishgrowth.model.Site> getSites(@PathParam(value="ownerId")
String ownerId)
throws Exception
ExceptionCopyright © 2017. All Rights Reserved.