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

doc: Endpoint documentation for the form version of SEPTORIAHU

parent 4cb9b775
Branches
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
package no.nibio.vips.logic.service; package no.nibio.vips.logic.service;
import com.webcohesion.enunciate.metadata.rs.TypeHint;
import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Coordinate;
import com.webcohesion.enunciate.metadata.Facet; import com.webcohesion.enunciate.metadata.Facet;
import java.util.Date; import java.util.Date;
...@@ -55,7 +56,7 @@ import no.nibio.vips.util.XDate; ...@@ -55,7 +56,7 @@ import no.nibio.vips.util.XDate;
import no.nibio.vips.util.weather.WeatherDataSourceUtil; import no.nibio.vips.util.weather.WeatherDataSourceUtil;
/** /**
* This is a collection of services for models run from forms (not as part of batch) * This is a collection of (one) service(s) for models run from forms (not as part of batch)
* @copyright 2018-2022 <a href="http://www.nibio.no/">NIBIO</a> * @copyright 2018-2022 <a href="http://www.nibio.no/">NIBIO</a>
* @author Tor-Einar Skog <tor-einar.skog@nibio.no> * @author Tor-Einar Skog <tor-einar.skog@nibio.no>
*/ */
...@@ -70,9 +71,34 @@ public class ModelFormService { ...@@ -70,9 +71,34 @@ public class ModelFormService {
@EJB @EJB
ForecastBean forecastBean; ForecastBean forecastBean;
/**
* Run the SEPTORIAHU (from SEGES, Denmark) model from a form, data are posted here.
*
* See <a href="https://www.vips-landbruk.no/blotch/septoriahumidity/">the form</a> for reference
*
* @param organizationId_countryCode
* @param weatherStationId
* @param dateSpraying1
* @param dateSpraying2
* @param dateGs31
* @param date3rdUpperLeafEmerging
* @param date2ndUpperLeafEmerging
* @param dateUpperLeafEmerging
* @param dateGs75
* @param thresholdRelativeHumidity
* @param thresholdLeafWetness
* @param thresholdPrecipitation
* @param slidingHoursPast
* @param slidingHoursAhead
* @param thresholdHumidPeriodHours
* @param sprayingProtectionDays
* @param leafLifeTime
* @return
*/
@GET @GET
@Path("SEPTORIAHU/runmodel") @Path("SEPTORIAHU/runmodel")
@Produces("application/json;charset=UTF-8") @Produces("application/json;charset=UTF-8")
@TypeHint(Result.class)
public Response runSeptoriaHumidityModel( public Response runSeptoriaHumidityModel(
@QueryParam("organizationId_countryCode") String organizationId_countryCode, @QueryParam("organizationId_countryCode") String organizationId_countryCode,
@QueryParam("weatherStationId") String weatherStationId, // Could be special ID from Danish system, @QueryParam("weatherStationId") String weatherStationId, // Could be special ID from Danish system,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment