Mercurial > lada > lada-server
changeset 165:917ee8501517
Fixed URLs of services.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 15:17:43 +0200 |
parents | c85743232d75 |
children | f2db9e9e8198 |
files | src/main/java/de/intevation/lada/rest/SMesseinheitService.java src/main/java/de/intevation/lada/rest/SProbenzusatzService.java |
diffstat | 2 files changed, 4 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/SMesseinheitService.java Wed Jun 19 15:13:13 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/SMesseinheitService.java Wed Jun 19 15:17:43 2013 +0200 @@ -17,7 +17,7 @@ * * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ -@Path("/datenbasis") +@Path("/messeinheit") @RequestScoped public class SMesseinheitService {
--- a/src/main/java/de/intevation/lada/rest/SProbenzusatzService.java Wed Jun 19 15:13:13 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/SProbenzusatzService.java Wed Jun 19 15:17:43 2013 +0200 @@ -7,18 +7,17 @@ import javax.inject.Named; import javax.ws.rs.GET; import javax.ws.rs.Path; -import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import de.intevation.lada.data.Repository; -import de.intevation.lada.model.SDatenbasis; +import de.intevation.lada.model.SProbenZusatz; /** * This class produces a RESTful service to read the contents of SDatenbasis table. * * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ -@Path("/datenbasis") +@Path("/probenzusatz") @RequestScoped public class SProbenzusatzService { @@ -43,19 +42,6 @@ @GET @Produces("text/json") public Response findAll() { - return repository.findAll(SDatenbasis.class); - } - - /** - * Request a single SDatenbasis via its id. - * - * @param id The mst_id - * @return JSON Object via REST service. - */ - @GET - @Path("/{id}") - @Produces("text/json") - public Response findById(@PathParam("id") String id) { - return repository.findById(SDatenbasis.class, id); + return repository.findAll(SProbenZusatz.class); } }