Update 'VRAHerbicide-API.md'
This commit is contained in:
parent
40f81e8098
commit
a31c8be83e
@ -25,7 +25,7 @@ For the currently available public FarmMaps API you can take a look at swagger:
|
|||||||
* This is an asynchronous process and can take a while before all data is collected in FarmMaps.
|
* This is an asynchronous process and can take a while before all data is collected in FarmMaps.
|
||||||
* *Upload own data*
|
* *Upload own data*
|
||||||
* IF shape data, convert to geotiff.
|
* IF shape data, convert to geotiff.
|
||||||
* Querying predefined herbicide agents (for input constants if none available beforehand)
|
* Querying predefined herbicide agents
|
||||||
* Task 'vnd.farmmaps.task.vraherbicide' must be executed to create an application map.
|
* Task 'vnd.farmmaps.task.vraherbicide' must be executed to create an application map.
|
||||||
* Task 'vnd.farmmaps.task.taskmap' can be executed to create a taskmap.
|
* Task 'vnd.farmmaps.task.taskmap' can be executed to create a taskmap.
|
||||||
* Download item data (tiff of shape)
|
* Download item data (tiff of shape)
|
||||||
@ -65,34 +65,27 @@ Response 403 No WRITE permissions in item
|
|||||||
Response 404 Item not found
|
Response 404 Item not found
|
||||||
|
|
||||||
###### Querying predefined herbicide agents.
|
###### Querying predefined herbicide agents.
|
||||||
A list of herbicide agents can be requested by finding the "vnd.farmmaps.package.vra.herbicide" items, taking the first item found and reading it's data field 'agents' array content.
|
A list of herbicide agents can be requested by getting the "vnd.farmmaps.itemtype.codelist.fm006" items from farmmaps.
|
||||||
> Request
|
> Request
|
||||||
```javascript
|
```javascript
|
||||||
GET /api/v1/items/?it=vnd.farmmaps.package.vra.herbicide
|
GET /api/v1/items/?it=vnd.farmmaps.itemtype.codelist.fm006
|
||||||
```
|
```
|
||||||
> Response 201
|
> Response 201
|
||||||
```javascript
|
```javascript
|
||||||
{
|
[
|
||||||
|
{
|
||||||
"code": "....",
|
"code": "....",
|
||||||
"data": {
|
// ....
|
||||||
"agents": [
|
"data":
|
||||||
{
|
{
|
||||||
"name": "Liberator",
|
"code": "0001",
|
||||||
"SoilType": "Dalgrond",
|
"crop": "zetmeelaardappelen",
|
||||||
"ExtraInputType": "Lutum",
|
"name": "arcade_challenge_olie",
|
||||||
"MinDosis": 2,
|
...
|
||||||
"MaxDosis": 3,
|
|
||||||
"A": 0.1428,
|
|
||||||
"B": 1.285714,
|
|
||||||
"C": 1,
|
|
||||||
"D": 97,
|
|
||||||
"E": 3,
|
|
||||||
"P": 1,
|
|
||||||
"Crop": "Zetmeelaardappelen"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
...
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
Response 400 Itemtype not found
|
Response 400 Itemtype not found
|
||||||
@ -117,19 +110,7 @@ POST /api/v1/items/{code}/tasks
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"inputCode": "{itemCode}",
|
"inputCode": "{itemCode}",
|
||||||
"extraInputCode": "{extraItemCode}",
|
"extraInputCode": "{extraItemCode}",
|
||||||
"agent": {
|
"agentCode": "0001"
|
||||||
"SoilType": "Dalgrond",
|
|
||||||
"ExtraInputType": "Lutum",
|
|
||||||
"MinDosis": 2,
|
|
||||||
"MaxDosis": 3,
|
|
||||||
"A": 0.1428,
|
|
||||||
"B": 1.285714,
|
|
||||||
"C": 1,
|
|
||||||
"D": 97,
|
|
||||||
"E": 3,
|
|
||||||
"P": 1,
|
|
||||||
"Crop": "Zetmeelaardappelen"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -141,19 +122,7 @@ POST /api/v1/items/{code}/tasks
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"inputCode": "{itemCode}",
|
"inputCode": "{itemCode}",
|
||||||
"extraInputCode": "{extraItemCode}",
|
"extraInputCode": "{extraItemCode}",
|
||||||
"agent": {
|
"agentCode": "0001"
|
||||||
"SoilType": "Dalgrond",
|
|
||||||
"ExtraInputType": "Lutum",
|
|
||||||
"MinDosis": 2,
|
|
||||||
"MaxDosis": 3,
|
|
||||||
"A": 0.1428,
|
|
||||||
"B": 1.285714,
|
|
||||||
"C": 1,
|
|
||||||
"D": 97,
|
|
||||||
"E": 3,
|
|
||||||
"P": 1,
|
|
||||||
"Crop": "Zetmeelaardappelen"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user