From 01d69b0390dba79709b5a4f2bb637c539747cb3e Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Mon, 28 Feb 2022 10:16:21 +0100 Subject: [PATCH] Added first version of postman test suite --- .../VIPSLogic tests.postman_collection.json | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 postman_tests/VIPSLogic tests.postman_collection.json diff --git a/postman_tests/VIPSLogic tests.postman_collection.json b/postman_tests/VIPSLogic tests.postman_collection.json new file mode 100644 index 00000000..532360cc --- /dev/null +++ b/postman_tests/VIPSLogic tests.postman_collection.json @@ -0,0 +1,48 @@ +{ + "info": { + "_postman_id": "ba9276dc-f86b-4e2b-afb7-7196c263967a", + "name": "VIPSLogic tests", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "ObservationService", + "item": [ + { + "name": "Get all observations from an organization", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{vipslogic_url}}/rest/observation/filter/1?cropCategoryId=2&from=2021-01-01&to=2021-12-31", + "host": [ + "{{vipslogic_url}}" + ], + "path": [ + "rest", + "observation", + "filter", + "1" + ], + "query": [ + { + "key": "cropCategoryId", + "value": "2" + }, + { + "key": "from", + "value": "2021-01-01" + }, + { + "key": "to", + "value": "2021-12-31" + } + ] + } + }, + "response": [] + } + ] + } + ] +} \ No newline at end of file -- GitLab