From 1729c2bd69beaecd6954583ed9a179c873118338 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 13 Mar 2020 20:21:53 +0000 Subject: [PATCH 01/23] Update page 'VRANbs API' --- VRANbs-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VRANbs-API.md b/VRANbs-API.md index 597cf49..8da527f 100644 --- a/VRANbs-API.md +++ b/VRANbs-API.md @@ -12,7 +12,7 @@ For the currently available public FarmMaps API you can take a look at swagger: * But API users can delete their own items through the farmmaps API. **Input preperation** -* Users can upload their own soilmaps if needed. (in case of when FarmMaps has not processed the required data). +* Users can upload their own data if needed. (in case of when FarmMaps has not processed the required data). * The farmmaps file API can be used for this. **Users can poll the task api to see if a task is completed** @@ -26,7 +26,7 @@ For the currently available public FarmMaps API you can take a look at swagger: * Item 'vnd.farmmaps.itemtype.cropfield' must be created with its data as specified in the api. * Task 'vnd.farmmaps.task.workflow' needs to be executed to aggregate all needed data. * This is an asynchronous process and can take a while before all data is collected in FarmMaps. - * *Upload own soil data* + * *Upload own data* * IF shape data, convert to geotiff. * *Create 'vnd.farmmaps.itemtype.user.input' item for targetn calculation.* * *Task 'vnd.farmmaps.task.vranbs' can be executed with the 'targetn' operation* From 9cb26d0d58fa2c2c181377af2e1746779d24bf4b Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Tue, 17 Mar 2020 15:30:44 +0000 Subject: [PATCH 02/23] Update page 'Create Cropfield' --- Create-Cropfield.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index 5db1287..b63b478 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -25,7 +25,7 @@ GET /api/v1/folders/my_drive * Create a 'FOLDER' item as a child of the 'my_drive' item. >Request ```javascript -POST /api/v1/item +POST /api/v1/items { "parentCode": "{my_drive_code}", "itemType": "FOLDER", From 7d916df662d87efb38e334e4ea8c6a7173a1590d Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Tue, 17 Mar 2020 15:38:56 +0000 Subject: [PATCH 03/23] Update page 'Create Cropfield' --- Create-Cropfield.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index b63b478..149837a 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -67,7 +67,7 @@ Response 404 Parent Item not found * Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. > Request ```javascript -POST /api/v1/item +POST /api/v1/items { "parentCode": "{FOLDER_item_code}", "itemType": "vnd.farmmaps.itemtype.cropfield", From fd71a2a2b19ec281cc13111a7c03ace4cc074155 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Wed, 18 Mar 2020 13:11:36 +0000 Subject: [PATCH 04/23] Update page 'Upload Data' --- Upload-Data.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Upload-Data.md b/Upload-Data.md index 701a689..9a09a5c 100644 --- a/Upload-Data.md +++ b/Upload-Data.md @@ -2,6 +2,8 @@ If the user wants to upload custom data (lutum/ec) they can use the FarmMaps file API. The API is based on the google drive API. +C# explanation: https://developers.google.com/api-client-library/dotnet/guide/media_upload + * Start request > Request From fb9b31609f1302e0a7fc3e751c4dd319e8440479 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:12:03 +0000 Subject: [PATCH 05/23] Update page 'Polling task status' --- Polling-task-status.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Polling-task-status.md diff --git a/Polling-task-status.md b/Polling-task-status.md new file mode 100644 index 0000000..cdf80cb --- /dev/null +++ b/Polling-task-status.md @@ -0,0 +1,8 @@ +## Polling task status + +When a task is executed with the task API your retrieve a code. +This code can be used to poll the status of a item task execution. + +#### Get a list of item status tasks for a given item + +#### Get an item task status for a given item and item task code \ No newline at end of file From 42ebe6e16f4c493c1f41868f225fdbb356a13d83 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:21:00 +0000 Subject: [PATCH 06/23] Update page 'Polling task status' --- Polling-task-status.md | 51 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/Polling-task-status.md b/Polling-task-status.md index cdf80cb..4cf3762 100644 --- a/Polling-task-status.md +++ b/Polling-task-status.md @@ -3,6 +3,53 @@ When a task is executed with the task API your retrieve a code. This code can be used to poll the status of a item task execution. -#### Get a list of item status tasks for a given item +The response 'message' field can contain a string message based on the context. -#### Get an item task status for a given item and item task code \ No newline at end of file +#### Get a list of status for a given item +> Request +```javascript +GET /api/v1/items/{code}/tasks +``` + +> Response 200 OK +```javascript +[ +{ + "taskType": "string", + "code": "string", + "message": "string", + "state": "Error, Ok, Scheduled, Processing", + "started": "2020-03-20T11:13:20.568Z", + "finished": "2020-03-20T11:13:20.568Z" +}, +{ + "taskType": "string", + "code": "string", + "state": "Error, Ok, Scheduled, Processing", +} +] +``` +Response 401 Not authenticated +Response 403 No READ permissions in parent item +Response 404 Parent Item not found + +#### Get the status of a task for a given item and item task code +> Request +```javascript +GET /api/v1/items/{code}/tasks/{itemTaskCode} +``` + +> Response 200 OK +```javascript +{ + "taskType": "string", + "code": "string", + "message": "string", + "state": "Error, Ok, Scheduled, Processing", + "started": "2020-03-20T11:13:20.568Z", + "finished": "2020-03-20T11:13:20.568Z" +} +``` +Response 401 Not authenticated +Response 403 No READ permissions in parent item +Response 404 Parent Item not found \ No newline at end of file From e41e48835fc10607729228df7d5f0c81ffdbdb98 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:21:26 +0000 Subject: [PATCH 07/23] Update page 'VRANbs API' --- VRANbs-API.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VRANbs-API.md b/VRANbs-API.md index 8da527f..ecdf6f9 100644 --- a/VRANbs-API.md +++ b/VRANbs-API.md @@ -15,7 +15,9 @@ For the currently available public FarmMaps API you can take a look at swagger: * Users can upload their own data if needed. (in case of when FarmMaps has not processed the required data). * The farmmaps file API can be used for this. -**Users can poll the task api to see if a task is completed** +**Users can poll the task api to see if a task is completed** +[Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) + **This can be achieved with the task execution id obtained from calling the 'ItemTask' API.** **Users can query the API for child items of a cropfield to see what data it has.** From 893942dfec782ff3c8c4cc16e1822d02b143a30c Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:21:34 +0000 Subject: [PATCH 08/23] Update page 'VRANbs API' --- VRANbs-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VRANbs-API.md b/VRANbs-API.md index ecdf6f9..525488f 100644 --- a/VRANbs-API.md +++ b/VRANbs-API.md @@ -15,7 +15,7 @@ For the currently available public FarmMaps API you can take a look at swagger: * Users can upload their own data if needed. (in case of when FarmMaps has not processed the required data). * The farmmaps file API can be used for this. -**Users can poll the task api to see if a task is completed** +**Users can poll the task api to see if a task is completed** [Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) **This can be achieved with the task execution id obtained from calling the 'ItemTask' API.** From b6e7c7490569a5abe9de75924fb66696f7ce242e Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:21:58 +0000 Subject: [PATCH 09/23] Update page 'Polling task status' --- Polling-task-status.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polling-task-status.md b/Polling-task-status.md index 4cf3762..4083748 100644 --- a/Polling-task-status.md +++ b/Polling-task-status.md @@ -1,7 +1,7 @@ ## Polling task status When a task is executed with the task API your retrieve a code. -This code can be used to poll the status of a item task execution. +This code can be used to poll the status of an item task execution. The response 'message' field can contain a string message based on the context. From ad252bd8c91b17c3068ff0c0a60f1c73b5a61337 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:22:18 +0000 Subject: [PATCH 10/23] Update page 'VRAPoten API' --- VRAPoten-API.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VRAPoten-API.md b/VRAPoten-API.md index 7ddd063..87da5c9 100644 --- a/VRAPoten-API.md +++ b/VRAPoten-API.md @@ -12,7 +12,9 @@ For the currently available public FarmMaps API you can take a look at swagger: * Users can upload their own soilmaps if needed. (in case of when FarmMaps has not processed the required data). * The file API can be used for this. -**Users can poll the task api to see if a task is completed** +**Users can poll the task api to see if a task is completed** +[Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) + **This can be achieved with the task execution id obtained from calling the 'ItemTask' API.** ### API flow From 3e5ce89fc63a0b4e3a69611d00711588d106f3d1 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:22:44 +0000 Subject: [PATCH 11/23] Update page 'VRAPoten API' --- VRAPoten-API.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/VRAPoten-API.md b/VRAPoten-API.md index 87da5c9..aca10e5 100644 --- a/VRAPoten-API.md +++ b/VRAPoten-API.md @@ -13,9 +13,8 @@ For the currently available public FarmMaps API you can take a look at swagger: * The file API can be used for this. **Users can poll the task api to see if a task is completed** -[Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) - **This can be achieved with the task execution id obtained from calling the 'ItemTask' API.** +[Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) ### API flow * Authenticate User From d3e1b359e41323def51d701a286d8964043c4fce Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:23:19 +0000 Subject: [PATCH 12/23] Update page 'VRANbs API' --- VRANbs-API.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VRANbs-API.md b/VRANbs-API.md index 525488f..27a85b2 100644 --- a/VRANbs-API.md +++ b/VRANbs-API.md @@ -16,10 +16,10 @@ For the currently available public FarmMaps API you can take a look at swagger: * The farmmaps file API can be used for this. **Users can poll the task api to see if a task is completed** -[Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) - **This can be achieved with the task execution id obtained from calling the 'ItemTask' API.** -**Users can query the API for child items of a cropfield to see what data it has.** +[Poll task status](https://git.akkerweb.nl/FarmMaps/Documentatie/wiki/Polling-task-status) + +**Users can query the API for child items of a cropfield to see what items it has.** ### API flow * Authenticate User From fe54abcccb05476a8cd091fe914ae5e5f5fd5ba0 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 11:24:06 +0000 Subject: [PATCH 13/23] Update page 'Polling task status' --- Polling-task-status.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polling-task-status.md b/Polling-task-status.md index 4083748..d5d1622 100644 --- a/Polling-task-status.md +++ b/Polling-task-status.md @@ -5,7 +5,7 @@ This code can be used to poll the status of an item task execution. The response 'message' field can contain a string message based on the context. -#### Get a list of status for a given item +#### Get a list task of status for a given item > Request ```javascript GET /api/v1/items/{code}/tasks From 67bb1fca5d73594f61be6666e4db9384f194cc09 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Fri, 20 Mar 2020 14:30:27 +0000 Subject: [PATCH 14/23] Update page 'Upload Data' --- Upload-Data.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Upload-Data.md b/Upload-Data.md index 9a09a5c..0b256f6 100644 --- a/Upload-Data.md +++ b/Upload-Data.md @@ -2,7 +2,9 @@ If the user wants to upload custom data (lutum/ec) they can use the FarmMaps file API. The API is based on the google drive API. -C# explanation: https://developers.google.com/api-client-library/dotnet/guide/media_upload +C# explanation: +https://developers.google.com/api-client-library/dotnet/guide/media_upload +https://developers.google.com/drive/api/v3/manage-uploads#resumable * Start request From ec7466811fe1416675aeb50b584b3cb3d5dbc6c7 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Sun, 22 Mar 2020 16:28:58 +0000 Subject: [PATCH 15/23] Update page 'Authentication' --- Authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Authentication.md b/Authentication.md index 356686a..971ce7d 100644 --- a/Authentication.md +++ b/Authentication.md @@ -1,5 +1,5 @@ ## Autentication -Farmmaps uses OpenID: https://auth0.com/docs/protocols/oidc/openid-connect-discovery +Farmmaps uses OpenID-connect: https://auth0.com/docs/protocols/oidc/openid-connect-discovery It is recommended to use a library to facilitate the authentication. To get the openid configuration call the following url: https://accounts.farmmaps.awtest.nl/.well-known/openid-configuration From 0425cf88e448d8351b8b49397ae3cf457417ab6b Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Sun, 22 Mar 2020 16:29:51 +0000 Subject: [PATCH 16/23] Update page 'Authentication' --- Authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Authentication.md b/Authentication.md index 971ce7d..2439853 100644 --- a/Authentication.md +++ b/Authentication.md @@ -1,5 +1,5 @@ ## Autentication -Farmmaps uses OpenID-connect: https://auth0.com/docs/protocols/oidc/openid-connect-discovery +Farmmaps uses OpenID-connect: https://openid.net/connect/ It is recommended to use a library to facilitate the authentication. To get the openid configuration call the following url: https://accounts.farmmaps.awtest.nl/.well-known/openid-configuration From 72dff4fc8e70ac316f1f2e37250d25c2065dee35 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Sun, 22 Mar 2020 19:55:16 +0000 Subject: [PATCH 17/23] Update page 'Authentication' --- Authentication.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Authentication.md b/Authentication.md index 2439853..0f21f4d 100644 --- a/Authentication.md +++ b/Authentication.md @@ -5,6 +5,7 @@ It is recommended to use a library to facilitate the authentication. To get the openid configuration call the following url: https://accounts.farmmaps.awtest.nl/.well-known/openid-configuration The user could also use the openid-configuration to handle authentication by themselves. +https://identitymodel.readthedocs.io/en/latest/native/overview.html The token received needs to be used in the request header. >'Authorization': 'bearer {token}' From 07e5d9d788afd3003c051b065577f56f735bd787 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 23 Mar 2020 12:03:13 +0000 Subject: [PATCH 18/23] Update page 'VRANbs API' --- VRANbs-API.md | 1 + 1 file changed, 1 insertion(+) diff --git a/VRANbs-API.md b/VRANbs-API.md index 27a85b2..bf61c06 100644 --- a/VRANbs-API.md +++ b/VRANbs-API.md @@ -142,6 +142,7 @@ Response 404 Parent Item not found **Call the vranbs task** +Execute the VRANbsTask with the item code of the cropfield as parameter inside {code}. Use the code obtained from creating the user.input item as a parameter in {itemCode}. > Request ```javascript From 16f8f3a21c0ebf77a10725672c894a67d92e35e5 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 23 Mar 2020 16:39:25 +0000 Subject: [PATCH 19/23] Update page 'Create Cropfield' --- Create-Cropfield.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index 149837a..acc24e7 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -65,6 +65,8 @@ Response 403 No WRITE permissions in parent item Response 404 Parent Item not found * Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. +Needs to contain dataDate and dataEndDate to specify cropfield season. +The data field needs to contain the startDate and endDate keys with the same values as dataDate(startDate) and dataEndDate(endDate) > Request ```javascript POST /api/v1/items @@ -72,8 +74,9 @@ POST /api/v1/items "parentCode": "{FOLDER_item_code}", "itemType": "vnd.farmmaps.itemtype.cropfield", "name": "cropfield for VRA", - "dataDate": "2019-11-25", - "data": {}, + "dataDate": "2019-1-18T10:16:21.455Z", + "dataEndDate": "2019-12-18T10:16:21.455Z", + "data": {"startDate": "2019-1-18T10:16:21.455Z", "endDate": "2019-12-18T10:16:21.455Z"}, "geometry": {"type":"Polygon","coordinates":[[[6.09942873984307,53.070025028087],[6.09992507404607,53.0705617890585],[6.10036959220086,53.0710679529031],[6.10065149010421,53.0714062774307],[6.10087493644271,53.0716712354474],[6.10091082982487,53.0716936039203],[6.10165087441291,53.0712041549161],[6.10204994718318,53.0709349338005],[6.10263143118855,53.0705789370018],[6.10311578125011,53.0702657538294],[6.10331686552072,53.0701314102389],[6.103326530575,53.070119463569],[6.10309137950343,53.0699829669055],[6.10184241586523,53.0692902201371],[6.10168497998891,53.0691984306747],[6.10092987659869,53.0694894453514],[6.09942873984307,53.070025028087]]]} } ``` From 1a6c61c33a182771d443b81f602b67c0f390fb9b Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 23 Mar 2020 16:39:45 +0000 Subject: [PATCH 20/23] Update page 'Create Cropfield' --- Create-Cropfield.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index acc24e7..0d04822 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -64,7 +64,7 @@ Response 401 Not authenticated Response 403 No WRITE permissions in parent item Response 404 Parent Item not found -* Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. +* Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. Needs to contain dataDate and dataEndDate to specify cropfield season. The data field needs to contain the startDate and endDate keys with the same values as dataDate(startDate) and dataEndDate(endDate) > Request From 5c6a4be5b61782dbeebbba9f463536b99ec7cb88 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 23 Mar 2020 16:40:31 +0000 Subject: [PATCH 21/23] Update page 'Create Cropfield' --- Create-Cropfield.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index 0d04822..0fe022b 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -66,6 +66,7 @@ Response 404 Parent Item not found * Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. Needs to contain dataDate and dataEndDate to specify cropfield season. +dataDate needs to be before dataEndDate and cannot be the same day. The data field needs to contain the startDate and endDate keys with the same values as dataDate(startDate) and dataEndDate(endDate) > Request ```javascript From 6f96e0087b5620707769aea967ffbb8b92f0022e Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 6 Apr 2020 14:50:38 +0000 Subject: [PATCH 22/23] Update page 'Create Cropfield' --- Create-Cropfield.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index 0fe022b..7481cb4 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -67,7 +67,7 @@ Response 404 Parent Item not found * Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. Needs to contain dataDate and dataEndDate to specify cropfield season. dataDate needs to be before dataEndDate and cannot be the same day. -The data field needs to contain the startDate and endDate keys with the same values as dataDate(startDate) and dataEndDate(endDate) + > Request ```javascript POST /api/v1/items @@ -77,7 +77,7 @@ POST /api/v1/items "name": "cropfield for VRA", "dataDate": "2019-1-18T10:16:21.455Z", "dataEndDate": "2019-12-18T10:16:21.455Z", - "data": {"startDate": "2019-1-18T10:16:21.455Z", "endDate": "2019-12-18T10:16:21.455Z"}, + "data": {}, "geometry": {"type":"Polygon","coordinates":[[[6.09942873984307,53.070025028087],[6.09992507404607,53.0705617890585],[6.10036959220086,53.0710679529031],[6.10065149010421,53.0714062774307],[6.10087493644271,53.0716712354474],[6.10091082982487,53.0716936039203],[6.10165087441291,53.0712041549161],[6.10204994718318,53.0709349338005],[6.10263143118855,53.0705789370018],[6.10311578125011,53.0702657538294],[6.10331686552072,53.0701314102389],[6.103326530575,53.070119463569],[6.10309137950343,53.0699829669055],[6.10184241586523,53.0692902201371],[6.10168497998891,53.0691984306747],[6.10092987659869,53.0694894453514],[6.09942873984307,53.070025028087]]]} } ``` From fc84c89dd750e7639878d95b32aed61d875782eb Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 6 Apr 2020 14:54:21 +0000 Subject: [PATCH 23/23] Update page 'VRANbs API' --- VRANbs-API.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VRANbs-API.md b/VRANbs-API.md index bf61c06..32f6bd3 100644 --- a/VRANbs-API.md +++ b/VRANbs-API.md @@ -152,6 +152,8 @@ POST /api/v1/items/{code}/tasks "attributes": { "operation": "targetn", "inputCode": "{itemCode}", + "plantingDate": "2020-02-01T00:00:00.000Z", + "measurementDate": "2020-06-01T00:00:00.000Z", "inputType": "irmi", // yara, ci, irmi or wdvi "purposeType": "consumption", // consumption, fries, potato, starch "targetYield": "60" @@ -220,6 +222,8 @@ POST /api/v1/items/{code}/tasks "attributes": { "operation": "uptake", "inputCode": "{itemCode}", + "plantingDate": "2020-02-01T00:00:00.000Z", + "measurementDate": "2020-06-01T00:00:00.000Z", "inputType": "irmi", // yara, ci, irmi or wdvi } } @@ -256,6 +260,8 @@ POST /api/v1/items/{code}/tasks "attributes": { "operation": "nitrogen", "inputCode": "{itemCode}", + "plantingDate": "2020-02-01T00:00:00.000Z", + "measurementDate": "2020-06-01T00:00:00.000Z", "inputType": "irmi", // yara, ci, irmi or wdvi "targetN": "249.22948" }