Skip to content
Snippets Groups Projects
Commit 52d4c48a authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added pest list service

parent 2fcbb45d
No related branches found
No related tags found
No related merge requests found
...@@ -769,7 +769,7 @@ public class LogicService { ...@@ -769,7 +769,7 @@ public class LogicService {
} }
/** /**
* Get a list of crops * Get a list of all crops
* @return * @return
*/ */
@GET @GET
...@@ -782,6 +782,20 @@ public class LogicService { ...@@ -782,6 +782,20 @@ public class LogicService {
return Response.ok().entity(organismList).build(); return Response.ok().entity(organismList).build();
} }
/**
* Get a list of all pests
* @return
*/
@GET
@Path("organism/pest/list")
@Produces("application/json;charset=UTF-8")
@Facet("restricted")
public Response getPestOrganismList()
{
List<Organism> organismList = SessionControllerGetter.getOrganismBean().getAllPests();
return Response.ok().entity(organismList).build();
}
/** /**
* *
* @param messageId * @param messageId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment