From de2aa45a7970e06b0644e06e5940b10fdc8657e9 Mon Sep 17 00:00:00 2001 From: Wilco Krikke Date: Thu, 26 Aug 2021 11:13:34 +0000 Subject: [PATCH 1/2] Update 'Authentication.md' --- Authentication.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Authentication.md b/Authentication.md index 0f21f4d..b5f4cd9 100644 --- a/Authentication.md +++ b/Authentication.md @@ -1,14 +1,14 @@ -## Autentication -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 - -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}' - -The token can also easily be created through the swagger documentation: -https://farmmaps.awtest.nl/swagger/index.html \ No newline at end of file +## Autentication +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.eu/.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}' + +The token can also easily be created through the swagger documentation: +https://farmmaps.eu/swagger/index.html \ No newline at end of file From ee854241a100630497cbd5f515df549c8fa810a4 Mon Sep 17 00:00:00 2001 From: Wilco Krikke Date: Thu, 26 Aug 2021 11:15:39 +0000 Subject: [PATCH 2/2] Update 'Blight-API.md' --- Blight-API.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Blight-API.md b/Blight-API.md index e6bd239..c5924f2 100644 --- a/Blight-API.md +++ b/Blight-API.md @@ -3,9 +3,6 @@ For the currently available public FarmMaps API you can take a look at swagger: https://farmmaps.eu/swagger -## Prerequisite -The blight package is added to the account which is used to authenticate. - ## API flow * Authenticate * Create cropping scheme (if not exists) @@ -27,7 +24,7 @@ See [Create Croppingscheme](Create-Croppingscheme.md) ### Create crop field (if not exists) See [Create Cropfield](Create-Cropfield.md) -### Get blight advice +### Get blight advice Blight is only available for potato fields. The advice is automatically created when new potato fields are added and is scheduled to be updated at configured times. @@ -123,7 +120,7 @@ This item also contains other parameters like pressure, disable/enable oospores Changing these parameters will not create in a new advice automatically. But is it possible to create an advice at any time, see [Create blight advice](#create-advice). -Get the blight advice code from [Get blight advice](#get-advice) +Get the blight advice code from [Get blight advice](#create-advice) Use this code in the following request. > Request