Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSLogic
Commits
5c55600c
Commit
5c55600c
authored
2 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
doc: Endpoint documentation for the form version of SEPTORIAHU
parent
4cb9b775
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/logic/service/ModelFormService.java
+27
-1
27 additions, 1 deletion
...in/java/no/nibio/vips/logic/service/ModelFormService.java
with
27 additions
and
1 deletion
src/main/java/no/nibio/vips/logic/service/ModelFormService.java
+
27
−
1
View file @
5c55600c
...
@@ -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 service
s
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,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment