diff --git a/Blight-API.md b/Blight-API.md index a3785de..59f8368 100644 --- a/Blight-API.md +++ b/Blight-API.md @@ -14,11 +14,67 @@ For the currently available public FarmMaps API you can take a look at swagger: * Add spray * Add irrigation +### Steps +[Authentication](Authentication.md) + +##### Optional +[Create Croppingscheme] -- todo +[Create Cropfield](Create-Cropfield.md) + + + +###### Querying predefined fungicides. +A list of fungicices can be requested by getting the "vnd.farmmaps.itemtype.codelist.fm005" items from farmmaps. +> Request +```javascript +GET /api/v1/items/?it=vnd.farmmaps.itemtype.codelist.fm002 +``` +> Response 200 +```javascript +[ +{ + "code": "....", + // .... + "data": + { + "ai1": "fluazinam", + "ai2": null, + "ai3": null, + "code": "shirlangold", + "name": "shirlan gold ", + "maxdose": "0.4", + "mindose": "0.32", + "safedays": "7", + "emergence": false, + "newgrowth": "0.5", + "contentai1": "500", + "contentai2": "0", + "contentai3": "0", + "fastgrowth": true, + "contentunit": "g/l", + "rainfastness": "2.5", + "tuberfilling": false, + "aidescription": "fluazinam (0.4 l/ha)", + "curativescore": "0", + "dryingtimemax": "2", + "dryingtimemin": "1", + "vracompatible": false, + "maxapplications": "10", + "preventivescore": "2.9", + "recommendeddose": "0.4", + "tuberprotection": "3.3", + "eradicativescore": "0", + "earlytubersetting": true, + "protectioncategory": "1", + "applicationrateunit": "l/ha", + "ctgbregistrationnumber": "14744 n" + } +}, +... +] +``` -* Optional steps - * *Create cropfield through FarmMaps API* - * Item 'vnd.farmmaps.itemtype.cropfield' must be created with its data as specified in the api. * Task 'vnd.farmmaps.task.blight' must be executed to create an advice. This task is automatically created for crop fields with potato and is scheduled to run at configered times to keep the advice updated. It is also possible to executed this task at any time through the API. This will be explained in the following chapters.