Update page 'VRAHerbicide API'
This commit is contained in:
parent
0dc2c6fe93
commit
abab9a6fdd
@ -64,13 +64,47 @@ 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 content.
|
||||||
|
> Request
|
||||||
|
```javascript
|
||||||
|
GET /api/v1/items/?it=vnd.farmmaps.package.vra.herbicide
|
||||||
|
```
|
||||||
|
> Response 201
|
||||||
|
```javascript
|
||||||
|
{
|
||||||
|
"code": "....",
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"name": "Liberator",
|
||||||
|
"SoilType": "Dalgrond",
|
||||||
|
"ExtraInputType": "Lutum",
|
||||||
|
"MinDosis": 2,
|
||||||
|
"MaxDosis": 3,
|
||||||
|
"A": 0.1428,
|
||||||
|
"B": 1.285714,
|
||||||
|
"C": 1,
|
||||||
|
"D": 97,
|
||||||
|
"E": 3,
|
||||||
|
"P": 1,
|
||||||
|
"Crop": "Zetmeelaardappelen"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Response 400 Tasktype not found
|
||||||
|
Response 401 Not authenticated
|
||||||
|
Response 403 No READ permissions in item
|
||||||
|
Response 404 Items not found
|
||||||
|
|
||||||
###### Creating an application map with the VRAHerbicide task
|
###### Creating an application map with the VRAHerbicide task
|
||||||
Execute the task with the item code of the cropfield as parameter inside {code}.
|
Execute the task with the item code of the cropfield as parameter inside {code}.
|
||||||
Use the input map code inside {itemCode}, specifying an inputCode for the input data item.
|
Use the input map code inside {itemCode}, specifying an inputCode for the input data item.
|
||||||
|
|
||||||
{itemCode} needs the code of the data input item passed into it.
|
{itemCode} needs the code of the data input item passed into it.
|
||||||
An **optional** {extraItemCode} can be passed inside the 'extraInputcode' field to process herbicide from 2 inputs.
|
An **optional** {extraItemCode} can be passed inside the 'extraInputcode' field to process herbicide from 2 inputs.
|
||||||
|
Fill in the agent field with an agent gotten from the herbicide agents query discussed above.
|
||||||
|
|
||||||
The resulting application map will be created as a child item of the cropfield item (this can be queried).
|
The resulting application map will be created as a child item of the cropfield item (this can be queried).
|
||||||
> Request
|
> Request
|
||||||
```javascript
|
```javascript
|
||||||
|
Loading…
Reference in New Issue
Block a user