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

Added support for IPM Decisions in VIPSCoreManager

parent f73ba4b7
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ import javax.ws.rs.PathParam; ...@@ -28,6 +28,7 @@ import javax.ws.rs.PathParam;
import javax.ws.rs.Produces; import javax.ws.rs.Produces;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import no.nibio.vips.entity.ModelRunRequest; import no.nibio.vips.entity.ModelRunRequest;
import no.nibio.vips.ipmdecisions.IPMDecisionsModelConfiguration;
/** /**
* Interface for the ManagerResource. Implemented by ManagerResourceImpl * Interface for the ManagerResource. Implemented by ManagerResourceImpl
...@@ -64,6 +65,12 @@ public interface ManagerResource { ...@@ -64,6 +65,12 @@ public interface ManagerResource {
@Produces("application/json") @Produces("application/json")
public Response runModel(@PathParam("modelId") String modelId, ModelRunRequest request); public Response runModel(@PathParam("modelId") String modelId, ModelRunRequest request);
@POST
@Path("models/{modelId}/run/ipmd")
@Consumes("application/json")
@Produces("application/json")
public Response runModelForIPMDecisions(@PathParam("modelId") String modelId, IPMDecisionsModelConfiguration config);
/** /**
* Lists all models available in this instance, using default language (English) * Lists all models available in this instance, using default language (English)
* @return list of all models available * @return list of all models available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment