From 69c4eb6ded22c117d11e430158cf5099196a0081 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Wed, 15 Apr 2020 10:55:14 +0000 Subject: [PATCH] Update page 'VRAHerbicide API' --- VRAHerbicide-API.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/VRAHerbicide-API.md b/VRAHerbicide-API.md index 6edcd4c..55687e6 100644 --- a/VRAHerbicide-API.md +++ b/VRAHerbicide-API.md @@ -64,7 +64,7 @@ Response 403 No WRITE permissions in item Response 404 Item not found ###### 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. +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. > Request ```javascript GET /api/v1/items/?it=vnd.farmmaps.package.vra.herbicide @@ -73,7 +73,8 @@ GET /api/v1/items/?it=vnd.farmmaps.package.vra.herbicide ```javascript { "code": "....", - "data": [ + "data": { + "agents": [ { "name": "Liberator", "SoilType": "Dalgrond", @@ -88,7 +89,8 @@ GET /api/v1/items/?it=vnd.farmmaps.package.vra.herbicide "P": 1, "Crop": "Zetmeelaardappelen" } - ] + ] + } } ```