Update page 'VRANbs API'
This commit is contained in:
parent
2427e65f81
commit
cecb160cd2
@ -74,8 +74,8 @@ Response 404 Item not found
|
|||||||
##### Using VRA Nitrogen fertilization task
|
##### Using VRA Nitrogen fertilization task
|
||||||
The VraNbs task currently supports 3 operations:
|
The VraNbs task currently supports 3 operations:
|
||||||
* **targetn** - calculates the target nitrogen based on target yield.
|
* **targetn** - calculates the target nitrogen based on target yield.
|
||||||
* **uptake** - creates the uptake map.
|
* **uptake** - creates the nitrogen uptake map.
|
||||||
* **nitrogen** - creates the fertilization appliance map.
|
* **application** - creates the nitrogen fertilization application map.
|
||||||
|
|
||||||
###### targetn operation
|
###### targetn operation
|
||||||
Create a 'vnd.farmmaps.itemtype.user.input' item to use in this operation.
|
Create a 'vnd.farmmaps.itemtype.user.input' item to use in this operation.
|
||||||
@ -208,7 +208,7 @@ GET /api/v1/items/{code}
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
###### Uptake operation
|
###### Uptake map operation
|
||||||
Execute the VRANbsTask with the item code of the cropfield as parameter inside {code}.
|
Execute the VRANbsTask 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.
|
||||||
|
|
||||||
@ -246,19 +246,19 @@ Response 401 Not authenticated
|
|||||||
Response 403 No WRITE permissions in item
|
Response 403 No WRITE permissions in item
|
||||||
Response 404 Item not found
|
Response 404 Item not found
|
||||||
|
|
||||||
###### Nitrogen operation
|
###### Application map operation
|
||||||
Execute the VRANbsTask with the item code of the cropfield as parameter inside {code}.
|
Execute the VRANbsTask 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. ex. uploaded isaria/data data.
|
{itemCode} needs the code of the data input item passed into it. ex. uploaded isaria/data data.
|
||||||
The resulting nitrogen appliance map will be created as a child item under the cropfield item (this can be queried).
|
The resulting nitrogen application map will be created as a child item under the cropfield item (this can be queried).
|
||||||
> Request
|
> Request
|
||||||
```javascript
|
```javascript
|
||||||
POST /api/v1/items/{code}/tasks
|
POST /api/v1/items/{code}/tasks
|
||||||
{
|
{
|
||||||
"taskType": "vnd.farmmaps.task.vranbs",
|
"taskType": "vnd.farmmaps.task.vranbs",
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"operation": "nitrogen",
|
"operation": "application",
|
||||||
"inputCode": "{itemCode}",
|
"inputCode": "{itemCode}",
|
||||||
"plantingDate": "2020-02-01T00:00:00.000Z",
|
"plantingDate": "2020-02-01T00:00:00.000Z",
|
||||||
"measurementDate": "2020-06-01T00:00:00.000Z",
|
"measurementDate": "2020-06-01T00:00:00.000Z",
|
||||||
|
Loading…
Reference in New Issue
Block a user