NESTLER
POST
/nestler/api/risk/predict
POST
/nestler/api/risk/predict
Economic Risk Assessment Model
Request body
Array
Object
country
string
ISO 3166 Country Codes
Country
Example:
CY
product
string
Product
Example:
MAIZE
year
integer
Year
Example:
1990
agriculturalLand
number
Agricultural Land (ha)
Example:
50
yield
number
Yield (hg/ha)
Example:
1.2
production
number
Production (tonnes)
Example:
200
producerPrice
number
Producer Price (USD/tonne)
Example:
0.75
exportQuantity
number
Export Quantity (tonnes)
Example:
3
exportValue
number
Export Value (1000 USD)
Example:
50000
temperature
number
Temperature (Celcius)
Example:
18.5
Responses
200
200
Successful
Body
Array
Object
riskIndex
number
Risk Index (0-1)
Example:
0.1
Example 1
Example 2
POST /nestler/api/risk/predict HTTP/1.1
Content-Type: application/json
[
{
"country": "CY",
"product": "MAIZE",
"year": 1990,
"agriculturalLand": 50,
"yield": 1.2,
"production": 200,
"producerPrice": 0.75,
"exportQuantity": 3,
"exportValue": 50000,
"temperature": 18.5
}
]
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"riskIndex": 0.1
}
]
POST /nestler/api/risk/predict HTTP/1.1
Content-Type: application/json
[
{
"country": "CY",
"product": "MAIZE",
"year": 1990,
"agriculturalLand": 50,
"yield": 1.2,
"production": 200,
"producerPrice": 0.75,
"exportQuantity": 3,
"exportValue": 50000,
"temperature": 18.5
},
{
"country": "ES",
"product": "MAIZE",
"year": 1990,
"agriculturalLand": 60,
"yield": 1.5,
"production": 210,
"producerPrice": 0.80,
"exportQuantity": 2,
"exportValue": 60000,
"temperature": 20.0
}
]
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"riskIndex": 0.1
},
{
"riskIndex": 0.2
}
]