NESTLER
POST
/risk_model
POST
/risk_model
Economic Risk Assessment Model
Request body
Array
Object
year
integer
Year
Example:
1989
country
string
Country
Example:
Greece
Agricultural land (1000ha)
number
Agricultural Land (ha)
Example:
50
Yield(hg/ha)
number
Yield (hg/ha)
Example:
0
Production(tonnes)
number
Production (tonnes)
Example:
200
Producer-Price(USD/tonne)
number
Producer Price
Example:
0.75
Export-Quantity(tonnes)
number
Export Quantity (tonnes)
Example:
3
Export-Value(1000US$)
number
Export Value (1000 USD)
Example:
50000
Temperature(Celcius)
number
Temperature (Celcius)
Example:
18.5
Responses
200
200
Successful
Body
Array
Object
year
integer
Year
Example:
1993
country
string
Country
Example:
Greece
Agricultural land (1000ha)
number
Agricultural Land (ha)
Example:
53
Yield(hg/ha)
number
Yield (hg/ha)
Example:
1.2
Production(tonnes)
number
Production (tonnes)
Example:
200
Producer-Price(USD/tonne)
number
Producer Price
Example:
0.75
Export-Quantity(tonnes)
number
Export Quantity (tonnes)
Example:
3
Export-Value(1000US$)
number
Export Value (1000 USD)
Example:
50000
Temperature(Celcius)
number
Temperature (Celcius)
Example:
18.5
riskIndex
number
Risk Index (0-1)
Example:
0.1
Example 1
POST /risk_model HTTP/1.1
Content-Type: application/json
[
{
"Year": "Greece",
"Agricultural land (1000ha)": 50,
"Yield(hg/ha)": 1,
"Production(tonnes)": 200,
"Producer-Price(USD/tonne)": 0.75,
"Export-Quantity(tonnes)": 3,
"Export-Value(1000US$)": 50000,
"Temperature(Celcius)": 18.5
},
{
"Year": "Cyprus",
"Agricultural land (1000ha)": 50,
"Yield(hg/ha)": 1,
"Production(tonnes)": 200,
"Producer-Price(USD/tonne)": 0.75,
"Export-Quantity(tonnes)": 3,
"Export-Value(1000US$)": 50000,
"Temperature(Celcius)": 18.5
},
{
"Year": "Germany",
"Agricultural land (1000ha)": 50,
"Yield(hg/ha)": 1,
"Production(tonnes)": 200,
"Producer-Price(USD/tonne)": 0.75,
"Export-Quantity(tonnes)": 3,
"Export-Value(1000US$)": 50000,
"Temperature(Celcius)": 18.5
}
]
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"Year": 1993,
"Country": "Greece",
"Agricultural land (1000ha)": 53,
"Yield(hg/ha)": 1.2,
"Production(tonnes)": 200,
"Producer-Price(USD/tonne)": 0.75,
"Export-Quantity(tonnes)": 3,
"Export-Value(1000US$)": 50000,
"Temperature(Celcius)": 18.5,
"riskIndex": 0.1
},
{
"Year": 1993,
"Country": "Cyprus",
"Agricultural land (1000ha)": 53,
"Yield(hg/ha)": 1.2,
"Production(tonnes)": 200,
"Producer-Price(USD/tonne)": 0.75,
"Export-Quantity(tonnes)": 3,
"Export-Value(1000US$)": 50000,
"Temperature(Celcius)": 18.5,
"riskIndex": 0.2
},
{
"Year": 1993,
"Country": "Germany",
"Agricultural land (1000ha)": 53,
"Yield(hg/ha)": 1.2,
"Production(tonnes)": 200,
"Producer-Price(USD/tonne)": 0.75,
"Export-Quantity(tonnes)": 3,
"Export-Value(1000US$)": 50000,
"Temperature(Celcius)": 18.5,
"riskIndex": 0.3
}
]