diff --git a/util/postman_collection_icat.json b/util/postman_collection_icat.json index 9ebaf291..fcacaccc 100644 --- a/util/postman_collection_icat.json +++ b/util/postman_collection_icat.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "c54f3f84-4e41-44cb-93a1-434f3d91d65e", + "_postman_id": "5ef7af11-916d-429d-9ef9-74a6c83a9ee1", "name": "DataGateway API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, @@ -17,7 +17,6 @@ { "listen": "test", "script": { - "id": "581fab56-0244-467d-9d8b-347984f874a4", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -113,7 +112,6 @@ { "listen": "test", "script": { - "id": "61874106-d513-43b9-a042-b4ae9858609b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -218,7 +216,6 @@ { "listen": "test", "script": { - "id": "2081b649-7909-4eee-91e1-2edcc7345536", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -330,7 +327,6 @@ { "listen": "prerequest", "script": { - "id": "c40d7ea6-e9c0-4446-bd68-fcf0419da4be", "type": "text/javascript", "exec": [ "" @@ -340,16 +336,234 @@ { "listen": "test", "script": { - "id": "0160f32e-3874-4e39-95c4-f8828f64264b", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] + }, + { + "name": "Affiliation", + "item": [ + { + "name": "Get Affiliations by ID", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/affiliations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Affiliations by ID", + "request": { + "method": "PATCH", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/affiliations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Affiliations by ID", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/affiliations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ] }, { "name": "DataCollection", @@ -360,7 +574,6 @@ { "listen": "test", "script": { - "id": "dd2d459e-9a74-49f3-9f55-b4b2d2e2668b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -456,7 +669,6 @@ { "listen": "test", "script": { - "id": "afe083ac-3f9c-4788-81a7-9ea3259062ad", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -568,7 +780,6 @@ { "listen": "test", "script": { - "id": "15a203db-a2f0-43a3-ac35-2d538a5229c5", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -680,7 +891,6 @@ { "listen": "prerequest", "script": { - "id": "4ef6f11c-534e-4b11-8cc2-6607a4c3b5f5", "type": "text/javascript", "exec": [ "" @@ -690,16 +900,13 @@ { "listen": "test", "script": { - "id": "e653ff6d-6cb8-40e8-ac18-130794404c33", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { "name": "DataCollectionDatafile", @@ -710,7 +917,6 @@ { "listen": "test", "script": { - "id": "57f9d8d0-86c6-427a-9cb5-5d7c07d77da9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -806,7 +1012,6 @@ { "listen": "test", "script": { - "id": "db0525bd-01c2-4ee1-bb98-46d4d4202505", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -911,7 +1116,6 @@ { "listen": "test", "script": { - "id": "054d8f44-6935-43dc-aae2-0d858cfc0f94", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -1016,7 +1220,6 @@ { "listen": "prerequest", "script": { - "id": "1a2013f6-cc3e-415e-8e24-ae1957a2507c", "type": "text/javascript", "exec": [ "" @@ -1026,16 +1229,13 @@ { "listen": "test", "script": { - "id": "183ad857-27de-44fa-9859-8891c31e776c", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { "name": "DataCollectionDataset", @@ -1046,7 +1246,6 @@ { "listen": "test", "script": { - "id": "10e0a1e1-692c-458e-bdb2-673602c79108", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -1142,7 +1341,6 @@ { "listen": "test", "script": { - "id": "fc53db1b-f27d-4729-9d69-6ee944abc820", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -1247,7 +1445,6 @@ { "listen": "prerequest", "script": { - "id": "1d639bb9-e315-4aae-b796-f15ea802e6ec", "exec": [ "" ], @@ -1257,7 +1454,6 @@ { "listen": "test", "script": { - "id": "5a5683b1-9e8f-46eb-ba4f-5650201a1465", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -1362,7 +1558,6 @@ { "listen": "prerequest", "script": { - "id": "219522a2-e144-42cf-9f04-68366fafac0a", "type": "text/javascript", "exec": [ "" @@ -1372,16 +1567,13 @@ { "listen": "test", "script": { - "id": "fa7e892e-6d90-40a5-97cb-99525a6e8b7a", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { "name": "DataCollectionParameter", @@ -1392,7 +1584,6 @@ { "listen": "test", "script": { - "id": "dfaa65f5-c5b3-4806-bc39-40544f19798b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -1488,7 +1679,6 @@ { "listen": "test", "script": { - "id": "d07156c2-cc6c-4cba-b8fa-a0cd9e373d61", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -1593,7 +1783,6 @@ { "listen": "test", "script": { - "id": "23ff5093-0371-455b-b393-e66cc2380e41", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -1698,7 +1887,6 @@ { "listen": "prerequest", "script": { - "id": "1b121fbd-a105-4685-9d21-984f1fbaffc1", "type": "text/javascript", "exec": [ "" @@ -1708,27 +1896,23 @@ { "listen": "test", "script": { - "id": "f735cc70-86c7-4971-9e4f-a85a59ddd359", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { - "name": "Datafile", + "name": "DataCollectionInvestigation", "item": [ { - "name": "Datafiles By ID", + "name": "DataCollectionInvestigations By ID", "event": [ { "listen": "test", "script": { - "id": "79e12c38-535f-4d3a-9ce5-c70124ec85bd", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -1752,14 +1936,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafiles/4", + "raw": "http://{{datagateway-api}}/datacollectioninvestigations/100", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles", - "4" + "datacollectioninvestigations", + "100" ] } }, @@ -1819,12 +2003,11 @@ ] }, { - "name": "Datafiles By ID", + "name": "DataCollectionInvestigations By ID", "event": [ { "listen": "test", "script": { - "id": "fdfdcc4e-8d97-46cd-9e50-8254fbd1d321", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -1849,7 +2032,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"fileSize\": 2147483648849848\r\n}", + "raw": "{\r\n \"dateTimeValue\": \"2013-06-01 00:00:00\"\r\n}", "options": { "raw": { "language": "json" @@ -1857,14 +2040,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafiles/4", + "raw": "http://{{datagateway-api}}/datacollectioninvestigations/100", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles", - "4" + "datacollectioninvestigations", + "100" ] } }, @@ -1924,12 +2107,11 @@ ] }, { - "name": "DataFiles By ID", + "name": "DataCollectionInvestigations By ID", "event": [ { "listen": "test", "script": { - "id": "7d99d33b-94e4-48a6-9f0b-d442327cf4e8", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -1953,14 +2135,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafiles/4", + "raw": "http://{{datagateway-api}}/datacollectioninvestigations/100", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles", - "4" + "datacollectioninvestigations", + "100" ] } }, @@ -2034,7 +2216,6 @@ { "listen": "prerequest", "script": { - "id": "6eba0093-9b17-4169-bdac-bf1e8ab6bc35", "type": "text/javascript", "exec": [ "" @@ -2044,27 +2225,23 @@ { "listen": "test", "script": { - "id": "99ddcb07-9436-42e1-a425-69cbf546cba1", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { - "name": "DatafileFormat", + "name": "Datafile", "item": [ { - "name": "DatafileFormats By ID", + "name": "Datafiles By ID", "event": [ { "listen": "test", "script": { - "id": "8409a8ea-0d8a-4d0d-a6d8-95611798cf67", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -2088,13 +2265,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileformats/4", + "raw": "http://{{datagateway-api}}/datafiles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats", + "datafiles", "4" ] } @@ -2155,12 +2332,11 @@ ] }, { - "name": "DatafileFormats By ID", + "name": "Datafiles By ID", "event": [ { "listen": "test", "script": { - "id": "d0cc436b-4ef5-4f17-a316-f2cf75fc1577", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -2185,7 +2361,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"description\": \"Example description of a datafileformat\"\r\n}", + "raw": "{\r\n \"fileSize\": 2147483648849848\r\n}", "options": { "raw": { "language": "json" @@ -2193,13 +2369,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafileformats/4", + "raw": "http://{{datagateway-api}}/datafiles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats", + "datafiles", "4" ] } @@ -2260,12 +2436,11 @@ ] }, { - "name": "DatafileFormats By ID", + "name": "DataFiles By ID", "event": [ { "listen": "test", "script": { - "id": "2c527a7a-c3d0-487c-a0dc-b1615ace7ab6", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -2289,13 +2464,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileformats/4", + "raw": "http://{{datagateway-api}}/datafiles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats", + "datafiles", "4" ] } @@ -2370,7 +2545,6 @@ { "listen": "prerequest", "script": { - "id": "c2f4f35d-5bc6-4b0d-883a-665159c9bce0", "type": "text/javascript", "exec": [ "" @@ -2380,27 +2554,23 @@ { "listen": "test", "script": { - "id": "19225532-50cc-43d1-b903-efc8b60994f7", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { - "name": "DatafileParameter", + "name": "DatafileFormat", "item": [ { - "name": "DatafileParameters By ID", + "name": "DatafileFormats By ID", "event": [ { "listen": "test", "script": { - "id": "284f1f97-715a-45a5-83df-17b66abc3e50", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -2424,13 +2594,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileparameters/4", + "raw": "http://{{datagateway-api}}/datafileformats/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters", + "datafileformats", "4" ] } @@ -2491,12 +2661,11 @@ ] }, { - "name": "DatafileParameters By ID", + "name": "DatafileFormats By ID", "event": [ { "listen": "test", "script": { - "id": "811f669b-9b43-45fb-a7b0-1fd19f80f3a1", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -2521,7 +2690,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"rangeBottom\": 8.0\r\n}", + "raw": "{\r\n \"description\": \"Example description of a datafileformat\"\r\n}", "options": { "raw": { "language": "json" @@ -2529,13 +2698,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafileparameters/4", + "raw": "http://{{datagateway-api}}/datafileformats/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters", + "datafileformats", "4" ] } @@ -2596,12 +2765,11 @@ ] }, { - "name": "DatafileParameters By ID", + "name": "DatafileFormats By ID", "event": [ { "listen": "test", "script": { - "id": "6eb6ef38-30db-4511-8ac2-0510f1d78f6b", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -2625,13 +2793,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileparameters/4", + "raw": "http://{{datagateway-api}}/datafileformats/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters", + "datafileformats", "4" ] } @@ -2706,7 +2874,6 @@ { "listen": "prerequest", "script": { - "id": "9e027802-b0be-40db-a7ac-decbe55676ea", "type": "text/javascript", "exec": [ "" @@ -2716,27 +2883,23 @@ { "listen": "test", "script": { - "id": "6d9f6cd0-2f3d-43f8-bc27-b11be6504d14", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + ] }, { - "name": "Dataset", + "name": "DatafileParameter", "item": [ { - "name": "Datasets By ID", + "name": "DatafileParameters By ID", "event": [ { "listen": "test", "script": { - "id": "318a17a3-8358-42ff-a7e7-cbde3f8f2e0c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -2760,13 +2923,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasets/4", + "raw": "http://{{datagateway-api}}/datafileparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets", + "datafileparameters", "4" ] } @@ -2827,12 +2990,11 @@ ] }, { - "name": "Datasets By ID", + "name": "DatafileParameters By ID", "event": [ { "listen": "test", "script": { - "id": "61ddd8d0-619a-4256-9eeb-a94e27620e11", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -2857,7 +3019,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", + "raw": "{\r\n \"rangeBottom\": 8.0\r\n}", "options": { "raw": { "language": "json" @@ -2865,21 +3027,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasets/4", + "raw": "http://{{datagateway-api}}/datafileparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets", + "datafileparameters", "4" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } ] } }, @@ -2939,12 +3094,11 @@ ] }, { - "name": "Datasets By ID", + "name": "DatafileParameters By ID", "event": [ { "listen": "test", "script": { - "id": "dfd34975-92df-497a-a7c5-39195a9cbba4", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -2968,13 +3122,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasets/4", + "raw": "http://{{datagateway-api}}/datafileparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets", + "datafileparameters", "4" ] } @@ -3045,19 +3199,36 @@ } ] }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] }, { - "name": "DatasetParameter", + "name": "Dataset", "item": [ { - "name": "DatasetParameters By ID", + "name": "Datasets By ID", "event": [ { "listen": "test", "script": { - "id": "8aae971d-a09c-4275-9cdb-8589f8b4261b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -3081,13 +3252,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasetparameters/4", + "raw": "http://{{datagateway-api}}/datasets/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters", + "datasets", "4" ] } @@ -3148,12 +3319,11 @@ ] }, { - "name": "DatasetParameters By ID", + "name": "Datasets By ID", "event": [ { "listen": "test", "script": { - "id": "b23cb74f-2b24-41b0-91ef-28e673c9f611", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -3178,7 +3348,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"stringValue\": \"String value for datasetparameter\"\r\n}", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", "options": { "raw": { "language": "json" @@ -3186,14 +3356,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasetparameters/4", + "raw": "http://{{datagateway-api}}/datasets/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters", + "datasets", "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -3253,22 +3430,11 @@ ] }, { - "name": "DatasetParameters By ID", + "name": "Datasets By ID", "event": [ - { - "listen": "prerequest", - "script": { - "id": "47865ce3-76d4-48da-990d-28ec108f8863", - "exec": [ - "" - ], - "type": "text/javascript" - } - }, { "listen": "test", "script": { - "id": "b2dc9952-5b19-4ce2-9a45-0f24c432d633", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -3292,13 +3458,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasetparameters/4", + "raw": "http://{{datagateway-api}}/datasets/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters", + "datasets", "4" ] } @@ -3368,42 +3534,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "d11b9744-f036-4490-944e-2cc52f7ce864", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "469621f5-e22d-49b0-804c-f774e5480842", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DatasetType", + "name": "DatasetParameter", "item": [ { - "name": "DatasetTypes By ID", + "name": "DatasetParameters By ID", "event": [ { "listen": "test", "script": { - "id": "f9be0760-8144-44dc-9526-a2fe02a15010", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -3427,14 +3568,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasettypes/3", + "raw": "http://{{datagateway-api}}/datasetparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes", - "3" + "datasetparameters", + "4" ] } }, @@ -3494,12 +3635,11 @@ ] }, { - "name": "DatasetTypes By ID", + "name": "DatasetParameters By ID", "event": [ { "listen": "test", "script": { - "id": "adf93076-879c-4476-9aa7-81d7a70722ab", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -3524,7 +3664,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", + "raw": "{\r\n \"stringValue\": \"String value for datasetparameter\"\r\n}", "options": { "raw": { "language": "json" @@ -3532,14 +3672,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasettypes/3", + "raw": "http://{{datagateway-api}}/datasetparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes", - "3" + "datasetparameters", + "4" ] } }, @@ -3599,12 +3739,11 @@ ] }, { - "name": "DatasetTypes By ID", + "name": "DatasetParameters By ID", "event": [ { "listen": "prerequest", "script": { - "id": "c9e90a9f-f542-42c5-ab70-b98cbd10af17", "exec": [ "" ], @@ -3614,7 +3753,6 @@ { "listen": "test", "script": { - "id": "0970f7a7-a16c-405e-83c1-374a475fca42", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -3638,13 +3776,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasettypes/4", + "raw": "http://{{datagateway-api}}/datasetparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes", + "datasetparameters", "4" ] } @@ -3715,19 +3853,36 @@ } ] }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] }, { - "name": "Facility", + "name": "DatasetType", "item": [ { - "name": "Facilities By ID", + "name": "DatasetTypes By ID", "event": [ { "listen": "test", "script": { - "id": "f7c575e9-5a69-42b2-966d-79e68a4fced0", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -3751,14 +3906,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilities/1", + "raw": "http://{{datagateway-api}}/datasettypes/3", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities", - "1" + "datasettypes", + "3" ] } }, @@ -3818,12 +3973,11 @@ ] }, { - "name": "Facilities By ID", + "name": "DatasetTypes By ID", "event": [ { "listen": "test", "script": { - "id": "4479b0cf-88d2-47d9-8c25-3fbbb9084592", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -3848,7 +4002,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"daysUntilRelease\": 1829\r\n}", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", "options": { "raw": { "language": "json" @@ -3856,14 +4010,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/facilities/1", + "raw": "http://{{datagateway-api}}/datasettypes/3", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities", - "1" + "datasettypes", + "3" ] } }, @@ -3923,12 +4077,11 @@ ] }, { - "name": "Facilities By ID", + "name": "DatasetTypes By ID", "event": [ { "listen": "prerequest", "script": { - "id": "5f8dc47c-7fb7-4815-af68-0ec7f2bd8912", "exec": [ "" ], @@ -3938,7 +4091,6 @@ { "listen": "test", "script": { - "id": "fac44a30-8ad2-4074-b9a7-68d631093d4d", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -3962,13 +4114,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilities/4", + "raw": "http://{{datagateway-api}}/datasettypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities", + "datasettypes", "4" ] } @@ -4038,20 +4190,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "FacilityCycle", + "name": "DatasetInstruments", "item": [ { - "name": "FacilityCycles By ID", + "name": "DatasetInstruments By ID", "event": [ { "listen": "test", "script": { - "id": "2352223a-f412-47bb-8e2e-6006b79fec72", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -4075,13 +4224,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilitycycles/4", + "raw": "http://{{datagateway-api}}/datasetinstruments/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles", + "datasetinstruments", "4" ] } @@ -4142,12 +4291,11 @@ ] }, { - "name": "FacilityCycles By ID", + "name": "DatasetInstruments By ID", "event": [ { "listen": "test", "script": { - "id": "a6e61dfe-2e58-40b5-899b-9054c4f7977e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -4172,7 +4320,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", + "raw": "{\r\n \"stringValue\": \"String value for datasetparameter\"\r\n}", "options": { "raw": { "language": "json" @@ -4180,13 +4328,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/facilitycycles/4", + "raw": "http://{{datagateway-api}}/datasetinstruments/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles", + "datasetinstruments", "4" ] } @@ -4247,12 +4395,20 @@ ] }, { - "name": "FacilityCycles By ID", + "name": "DatasetInstruments By ID", "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, { "listen": "test", "script": { - "id": "cace0f3d-f437-4072-a9ae-c0ff660b1cf3", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -4276,13 +4432,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilitycycles/4", + "raw": "http://{{datagateway-api}}/datasetinstruments/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles", + "datasetinstruments", "4" ] } @@ -4353,19 +4509,36 @@ } ] }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] }, { - "name": "Grouping", + "name": "DatasetTechniques", "item": [ { - "name": "Groupings By ID", + "name": "DatasetTechniques By ID", "event": [ { "listen": "test", "script": { - "id": "44427faa-942f-432c-861f-292abe5dbbe5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -4389,13 +4562,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/groupings/4", + "raw": "http://{{datagateway-api}}/datasettechniques/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings", + "datasettechniques", "4" ] } @@ -4456,12 +4629,11 @@ ] }, { - "name": "Groupings By ID", + "name": "DatasetTechniques By ID", "event": [ { "listen": "test", "script": { - "id": "4959bb3b-c531-43d0-92d4-b047ff2de5e6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -4486,7 +4658,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Updated Grouping Name\"\r\n}", + "raw": "{\r\n \"stringValue\": \"String value for datasetparameter\"\r\n}", "options": { "raw": { "language": "json" @@ -4494,13 +4666,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/groupings/4", + "raw": "http://{{datagateway-api}}/datasettechniques/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings", + "datasettechniques", "4" ] } @@ -4561,12 +4733,20 @@ ] }, { - "name": "Groupings By ID", + "name": "DatasetTechniques By ID", "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, { "listen": "test", "script": { - "id": "38f0294b-cda4-412a-b050-f72bf195f6ac", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -4590,13 +4770,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/groupings/4", + "raw": "http://{{datagateway-api}}/datasettechniques/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings", + "datasettechniques", "4" ] } @@ -4667,19 +4847,36 @@ } ] }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] }, { - "name": "Instrument", + "name": "DataPublication", "item": [ { - "name": "Instruments By ID", + "name": "DataPublications By ID", "event": [ { "listen": "test", "script": { - "id": "a1b07030-b27f-44f2-8e26-c69eb99dd008", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -4703,13 +4900,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instruments/4", + "raw": "http://{{datagateway-api}}/datapublications/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments", + "datapublications", "4" ] } @@ -4770,12 +4967,11 @@ ] }, { - "name": "Instruments By ID", + "name": "DataPublications By ID", "event": [ { "listen": "test", "script": { - "id": "0a4b287e-b1b0-4989-a24c-f09bcaf7f5dc", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -4800,7 +4996,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"fullName\": \"Full Name of an instrument\"\r\n}", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", "options": { "raw": { "language": "json" @@ -4808,14 +5004,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/instruments/4", + "raw": "http://{{datagateway-api}}/datapublications/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments", + "datapublications", "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -4875,12 +5078,11 @@ ] }, { - "name": "Instruments By ID", + "name": "DataPublications By ID", "event": [ { "listen": "test", "script": { - "id": "3515ce18-220b-4ba4-8c62-61c110b2748a", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -4904,21 +5106,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instruments/6", + "raw": "http://{{datagateway-api}}/datapublications/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments", - "6" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } + "datapublications", + "4" ] } }, @@ -4987,20 +5182,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InstrumentScientist", + "name": "DataPublicationDate", "item": [ { - "name": "InstrumentScientists By ID", + "name": "DataPublicationDates By ID", "event": [ { "listen": "test", "script": { - "id": "b74b0e9b-4deb-4585-b953-ab608cf01658", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -5024,14 +5216,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists/6", + "raw": "http://{{datagateway-api}}/datapublicationdates/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists", - "6" + "datapublicationdates", + "4" ] } }, @@ -5091,15 +5283,14 @@ ] }, { - "name": "InstrumentScientists By ID", + "name": "DataPublicationDates By ID", "event": [ { "listen": "test", "script": { - "id": "aa4ee39d-c78b-4bd3-83c6-941570993c93", "exec": [ - "pm.test(\"Status: 400\", function () {\r", - " pm.response.to.have.status(400);\r", + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -5121,7 +5312,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", "options": { "raw": { "language": "json" @@ -5129,14 +5320,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists/6", + "raw": "http://{{datagateway-api}}/datapublicationdates/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists", - "6" + "datapublicationdates", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -5196,12 +5394,11 @@ ] }, { - "name": "InstrumentScientists By ID", + "name": "DataPublicationDates By ID", "event": [ { "listen": "test", "script": { - "id": "40bf03e2-6bd8-4fa4-9527-2303220f51dd", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -5225,14 +5422,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists/6", + "raw": "http://{{datagateway-api}}/datapublicationdates/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists", - "6" + "datapublicationdates", + "4" ] } }, @@ -5301,20 +5498,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Investigation", + "name": "DataPublicationFunding", "item": [ { - "name": "Investigations By ID", + "name": "DataPublicationFundings By ID", "event": [ { "listen": "test", "script": { - "id": "dd9bd6c3-a2e6-4eb1-a531-f71c13a29967", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -5338,13 +5532,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigations/4", + "raw": "http://{{datagateway-api}}/datapublicationfundings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations", + "datapublicationfundings", "4" ] } @@ -5405,12 +5599,11 @@ ] }, { - "name": "Investigations By ID", + "name": "DataPublicationFundings By ID", "event": [ { "listen": "test", "script": { - "id": "c2b5e0c3-222f-441e-81ae-dbb0cd34805d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -5435,7 +5628,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"summary\": \"Short summary regarding an investigaferegretion...\"\r\n}\r\n", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", "options": { "raw": { "language": "json" @@ -5443,14 +5636,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigations/4", + "raw": "http://{{datagateway-api}}/datapublicationfundings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations", + "datapublicationfundings", "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -5510,12 +5710,11 @@ ] }, { - "name": "Investigations By ID", + "name": "DataPublicationFundings By ID", "event": [ { "listen": "test", "script": { - "id": "366863a2-a5ff-4af6-98cf-c42ddac3fd3b", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -5539,13 +5738,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigations/4", + "raw": "http://{{datagateway-api}}/datapublicationfundings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations", + "datapublicationfundings", "4" ] } @@ -5615,20 +5814,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationGroup", + "name": "DataPublicationType", "item": [ { - "name": "InvestigationGroups By ID", + "name": "DataPublicationTypes By ID", "event": [ { "listen": "test", "script": { - "id": "d98e51d1-3562-4ff1-be74-1ae456975e08", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -5652,13 +5848,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationgroups/4", + "raw": "http://{{datagateway-api}}/datapublicationtypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups", + "datapublicationtypes", "4" ] } @@ -5719,12 +5915,11 @@ ] }, { - "name": "InvestigationGroups By ID", + "name": "DataPublicationTypes By ID", "event": [ { "listen": "test", "script": { - "id": "21f86bc4-9004-4e22-ba47-edfb9e19b599", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -5749,7 +5944,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", "options": { "raw": { "language": "json" @@ -5757,14 +5952,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationgroups/4", + "raw": "http://{{datagateway-api}}/datapublicationtypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups", + "datapublicationtypes", "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -5824,12 +6026,11 @@ ] }, { - "name": "InvestigationGroups By ID", + "name": "DataPublicationTypes By ID", "event": [ { "listen": "test", "script": { - "id": "d62d284a-dd16-49ab-94fa-09d6b3dc458f", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -5853,13 +6054,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationgroups/4", + "raw": "http://{{datagateway-api}}/datapublicationtypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups", + "datapublicationtypes", "4" ] } @@ -5929,20 +6130,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationInstrument", + "name": "DataPublicationUser", "item": [ { - "name": "InvestigationInstruments By ID", + "name": "DataPublicationUsers By ID", "event": [ { "listen": "test", "script": { - "id": "bf585c74-8a78-406c-b9a6-0b3a0996d269", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -5966,14 +6164,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments/44", + "raw": "http://{{datagateway-api}}/datapublicationusers/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments", - "44" + "datapublicationusers", + "4" ] } }, @@ -6033,15 +6231,14 @@ ] }, { - "name": "InvestigationInstruments By ID", + "name": "DataPublicationUsers By ID", "event": [ { "listen": "test", "script": { - "id": "fa54a866-010f-4e8c-9a27-e9d8c8b968c2", "exec": [ - "pm.test(\"Status: 400\", function () {\r", - " pm.response.to.have.status(400);\r", + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -6063,7 +6260,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", "options": { "raw": { "language": "json" @@ -6071,14 +6268,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments/44", + "raw": "http://{{datagateway-api}}/datapublicationusers/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments", - "44" + "datapublicationusers", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -6138,12 +6342,11 @@ ] }, { - "name": "InvestigationInstruments By ID", + "name": "DataPublicationUsers By ID", "event": [ { "listen": "test", "script": { - "id": "1787d4c8-3efe-4f11-9d04-efcb492dc3ac", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -6167,14 +6370,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments/44", + "raw": "http://{{datagateway-api}}/datapublicationusers/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments", - "44" + "datapublicationusers", + "4" ] } }, @@ -6243,20 +6446,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationParameter", + "name": "Facility", "item": [ { - "name": "InvestigationParameters By ID", + "name": "Facilities By ID", "event": [ { "listen": "test", "script": { - "id": "1f7c6b9d-2190-4f62-adb0-ba740c4b3cb3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -6280,14 +6480,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationparameters/4", + "raw": "http://{{datagateway-api}}/facilities/1", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters", - "4" + "facilities", + "1" ] } }, @@ -6347,12 +6547,11 @@ ] }, { - "name": "InvestigationParameters By ID", + "name": "Facilities By ID", "event": [ { "listen": "test", "script": { - "id": "0e5ea27d-e1bd-444c-b667-d2f88f0e9b07", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -6377,7 +6576,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"stringValue\": \"NewStringValue\"\r\n}", + "raw": "{\r\n \"daysUntilRelease\": 1829\r\n}", "options": { "raw": { "language": "json" @@ -6385,14 +6584,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationparameters/4", + "raw": "http://{{datagateway-api}}/facilities/1", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters", - "4" + "facilities", + "1" ] } }, @@ -6452,12 +6651,20 @@ ] }, { - "name": "InvestigationParameters By ID", + "name": "Facilities By ID", "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, { "listen": "test", "script": { - "id": "d7ef6e21-6560-4f4b-b23c-275f001d583b", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -6481,13 +6688,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationparameters/4", + "raw": "http://{{datagateway-api}}/facilities/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters", + "facilities", "4" ] } @@ -6557,20 +6764,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationType", + "name": "FacilityCycle", "item": [ { - "name": "InvestigationTypes By ID", + "name": "FacilityCycles By ID", "event": [ { "listen": "test", "script": { - "id": "b2452c51-2f86-4397-b55c-6f1f649d534c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -6594,14 +6798,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationtypes/3", + "raw": "http://{{datagateway-api}}/facilitycycles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes", - "3" + "facilitycycles", + "4" ] } }, @@ -6661,12 +6865,11 @@ ] }, { - "name": "InvestigationTypes By ID", + "name": "FacilityCycles By ID", "event": [ { "listen": "test", "script": { - "id": "b6f3f5df-fb00-4574-82ec-3e85b2b46fa7", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -6691,7 +6894,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Name of investigation type\",\r\n \"description\": \"description of investigation type\"\r\n}", + "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", "options": { "raw": { "language": "json" @@ -6699,14 +6902,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationtypes/3", + "raw": "http://{{datagateway-api}}/facilitycycles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes", - "3" + "facilitycycles", + "4" ] } }, @@ -6766,12 +6969,11 @@ ] }, { - "name": "InvestigationTypes By ID", + "name": "FacilityCycles By ID", "event": [ { "listen": "test", "script": { - "id": "bdbf4775-5ca7-44be-ac6a-25ad04ae0651", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -6795,14 +6997,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationtypes/3", + "raw": "http://{{datagateway-api}}/facilitycycles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes", - "3" + "facilitycycles", + "4" ] } }, @@ -6871,20 +7073,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationUser", + "name": "FundingReference", "item": [ { - "name": "InvestigationUsers By ID", + "name": "FundingReferences By ID", "event": [ { "listen": "test", "script": { - "id": "08578156-a349-4521-9b14-02e0da5d4e68", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -6908,14 +7107,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationusers/10", + "raw": "http://{{datagateway-api}}/fundingreferences/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers", - "10" + "fundingreferences", + "4" ] } }, @@ -6975,12 +7174,11 @@ ] }, { - "name": "InvestigationUsers By ID", + "name": "FundingReferences By ID", "event": [ { "listen": "test", "script": { - "id": "702eb5a1-e9e0-4002-8293-7a8bdc334f2c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -7005,7 +7203,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", + "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", "options": { "raw": { "language": "json" @@ -7013,14 +7211,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationusers/10", + "raw": "http://{{datagateway-api}}/fundingreferences/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers", - "10" + "fundingreferences", + "4" ] } }, @@ -7080,12 +7278,11 @@ ] }, { - "name": "InvestigationUsers By ID", + "name": "FundingReferences By ID", "event": [ { "listen": "test", "script": { - "id": "67e35946-9d04-426b-be1b-07c3b3602f7f", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -7109,14 +7306,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationusers/10", + "raw": "http://{{datagateway-api}}/fundingreferences/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers", - "10" + "fundingreferences", + "4" ] } }, @@ -7185,20 +7382,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Job", + "name": "Grouping", "item": [ { - "name": "Jobs By ID", + "name": "Groupings By ID", "event": [ { "listen": "test", "script": { - "id": "74192eb4-228a-410d-bf3c-07565e6e3038", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -7222,13 +7416,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/jobs/4", + "raw": "http://{{datagateway-api}}/groupings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs", + "groupings", "4" ] } @@ -7289,12 +7483,11 @@ ] }, { - "name": "Jobs By ID", + "name": "Groupings By ID", "event": [ { "listen": "test", "script": { - "id": "bcd5c7c6-8838-4b28-a62a-f7fb420552fb", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -7319,7 +7512,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"arguments\": \"String arguments updated...\"\r\n}", + "raw": "{\r\n \"name\": \"Updated Grouping Name\"\r\n}", "options": { "raw": { "language": "json" @@ -7327,13 +7520,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/jobs/4", + "raw": "http://{{datagateway-api}}/groupings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs", + "groupings", "4" ] } @@ -7394,12 +7587,11 @@ ] }, { - "name": "Jobs By ID", + "name": "Groupings By ID", "event": [ { "listen": "test", "script": { - "id": "c9985b6e-7977-4085-b38e-5a32ed750da0", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -7423,13 +7615,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/jobs/4", + "raw": "http://{{datagateway-api}}/groupings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs", + "groupings", "4" ] } @@ -7499,20 +7691,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Keyword", + "name": "Instrument", "item": [ { - "name": "Keywords By ID", + "name": "Instruments By ID", "event": [ { "listen": "test", "script": { - "id": "00c2cb40-cb67-40c8-be3b-423469e1ae4f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -7536,14 +7725,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/keywords/28", + "raw": "http://{{datagateway-api}}/instruments/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords", - "28" + "instruments", + "4" ] } }, @@ -7603,12 +7792,11 @@ ] }, { - "name": "Keywords By ID", + "name": "Instruments By ID", "event": [ { "listen": "test", "script": { - "id": "b34a09d2-e400-4872-bbf9-a4d955fb99d3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -7633,7 +7821,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Name of keyword updated.\"\r\n}", + "raw": "{\r\n \"fullName\": \"Full Name of an instrument\"\r\n}", "options": { "raw": { "language": "json" @@ -7641,14 +7829,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/keywords/28", + "raw": "http://{{datagateway-api}}/instruments/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords", - "28" + "instruments", + "4" ] } }, @@ -7708,12 +7896,11 @@ ] }, { - "name": "Keywords By ID", + "name": "Instruments By ID", "event": [ { "listen": "test", "script": { - "id": "405ca5fd-71c2-490a-be1d-69fe79d870ee", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -7737,14 +7924,21 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/keywords/28", + "raw": "http://{{datagateway-api}}/instruments/6", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords", - "28" + "instruments", + "6" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -7813,20 +8007,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "ParameterType", + "name": "InstrumentScientist", "item": [ { - "name": "ParameterTypes By ID", + "name": "InstrumentScientists By ID", "event": [ { "listen": "test", "script": { - "id": "034e9a92-3cdd-42ce-8de6-3e8b417e09a9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -7850,21 +8041,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/parametertypes/4", + "raw": "http://{{datagateway-api}}/instrumentscientists/6", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes", - "4" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } + "instrumentscientists", + "6" ] } }, @@ -7924,15 +8108,14 @@ ] }, { - "name": "ParameterTypes By ID", + "name": "InstrumentScientists By ID", "event": [ { "listen": "test", "script": { - "id": "89e5d18b-c547-4c3f-9335-c5de598d9dc8", "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", "});" ], "type": "text/javascript" @@ -7954,7 +8137,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"valueType\": \"STRING\"\r\n}", + "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", "options": { "raw": { "language": "json" @@ -7962,21 +8145,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/parametertypes/4", + "raw": "http://{{datagateway-api}}/instrumentscientists/6", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes", - "4" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } + "instrumentscientists", + "6" ] } }, @@ -8036,12 +8212,11 @@ ] }, { - "name": "ParameterTypes By ID", + "name": "InstrumentScientists By ID", "event": [ { "listen": "test", "script": { - "id": "b172309c-f987-48c3-83cc-eec78f681e31", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -8065,14 +8240,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/parametertypes/4", + "raw": "http://{{datagateway-api}}/instrumentscientists/6", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes", - "4" + "instrumentscientists", + "6" ] } }, @@ -8141,20 +8316,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "PermissibleStringValue", + "name": "Investigation", "item": [ { - "name": "PermissibleStringValues By ID", + "name": "Investigations By ID", "event": [ { "listen": "test", "script": { - "id": "e7f4882c-1058-473a-b8af-b05e8439aae5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -8178,14 +8350,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", + "raw": "http://{{datagateway-api}}/investigations/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues", - "8" + "investigations", + "4" ] } }, @@ -8245,12 +8417,11 @@ ] }, { - "name": "PermissibleStringValues By ID", + "name": "Investigations By ID", "event": [ { "listen": "test", "script": { - "id": "ee607a5a-4d41-4e32-9dc6-152aef0184b1", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -8275,7 +8446,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"value\": \"VALUE OF PERMISSIBLESTRINGVALUE\"\r\n}", + "raw": "{\r\n \"summary\": \"Short summary regarding an investigaferegretion...\"\r\n}\r\n", "options": { "raw": { "language": "json" @@ -8283,14 +8454,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", + "raw": "http://{{datagateway-api}}/investigations/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues", - "8" + "investigations", + "4" ] } }, @@ -8350,12 +8521,11 @@ ] }, { - "name": "PermissibleStringValues By ID", + "name": "Investigations By ID", "event": [ { "listen": "test", "script": { - "id": "2ddfd490-a1d9-4f49-9d8b-323ef78ad6a1", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -8379,14 +8549,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", + "raw": "http://{{datagateway-api}}/investigations/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues", - "8" + "investigations", + "4" ] } }, @@ -8455,20 +8625,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "PublicStep", + "name": "InvestigationFacilityCycle", "item": [ { - "name": "PublicSteps By ID", + "name": "InvestigationFacilityCycles By ID", "event": [ { "listen": "test", "script": { - "id": "fc34a614-1258-4f22-9d62-cfa63ddae9bd", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -8492,13 +8659,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publicsteps/4", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps", + "investigationfacilitycycles", "4" ] } @@ -8559,12 +8726,11 @@ ] }, { - "name": "PublicSteps By ID", + "name": "InvestigationFacilityCycles By ID", "event": [ { "listen": "test", "script": { - "id": "ea4ae6d3-9f1c-48b8-82d0-7a5b6fc744be", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -8589,7 +8755,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"field\": \"Field no more than 32 characters attempt....\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", "options": { "raw": { "language": "json" @@ -8597,13 +8763,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/publicsteps/4", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps", + "investigationfacilitycycles", "4" ] } @@ -8664,12 +8830,11 @@ ] }, { - "name": "PublicSteps By ID", + "name": "InvestigationFacilityCycles By ID", "event": [ { "listen": "test", "script": { - "id": "de675913-a1ff-4cf6-900a-62b6ef32d948", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -8693,13 +8858,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publicsteps/4", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps", + "investigationfacilitycycles", "4" ] } @@ -8769,20 +8934,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Publication", + "name": "InvestigationFunding", "item": [ { - "name": "Publications By ID", + "name": "InvestigationFundings By ID", "event": [ { "listen": "test", "script": { - "id": "0281aac3-9200-465f-9f3d-310b26a16ec2", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -8806,13 +8968,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publications/4", + "raw": "http://{{datagateway-api}}/investigationfundings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications", + "investigationfundings", "4" ] } @@ -8873,12 +9035,11 @@ ] }, { - "name": "Publications By ID", + "name": "InvestigationFundings By ID", "event": [ { "listen": "test", "script": { - "id": "763c95d9-e906-44a4-b0aa-71f39c72c83a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -8903,7 +9064,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"repositoryId\": \"Repo ID string of the publication\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", "options": { "raw": { "language": "json" @@ -8911,13 +9072,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/publications/4", + "raw": "http://{{datagateway-api}}/investigationfundings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications", + "investigationfundings", "4" ] } @@ -8978,12 +9139,11 @@ ] }, { - "name": "Publications By ID", + "name": "InvestigationFundings By ID", "event": [ { "listen": "test", "script": { - "id": "cc06fb00-c685-402e-94b9-6c9f79baf5c4", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -9007,13 +9167,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publications/4", + "raw": "http://{{datagateway-api}}/investigationfundings/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications", + "investigationfundings", "4" ] } @@ -9083,20 +9243,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "RelatedDatafile", + "name": "InvestigationGroup", "item": [ { - "name": "RelatedDatafiles By ID", + "name": "InvestigationGroups By ID", "event": [ { "listen": "test", "script": { - "id": "c2de924f-28ca-44f0-a4a9-61fb94643679", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -9120,21 +9277,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles/1", + "raw": "http://{{datagateway-api}}/investigationgroups/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles", - "1" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } + "investigationgroups", + "4" ] } }, @@ -9194,12 +9344,11 @@ ] }, { - "name": "RelatedDatafiles By ID", + "name": "InvestigationGroups By ID", "event": [ { "listen": "test", "script": { - "id": "2201dbc4-8394-4da1-a769-37a38348f6ef", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -9224,7 +9373,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"relation\": \"COPY\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", "options": { "raw": { "language": "json" @@ -9232,14 +9381,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles/1", + "raw": "http://{{datagateway-api}}/investigationgroups/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles", - "1" + "investigationgroups", + "4" ] } }, @@ -9299,12 +9448,11 @@ ] }, { - "name": "RelatedDatafiles By ID", + "name": "InvestigationGroups By ID", "event": [ { "listen": "test", "script": { - "id": "370a4861-892d-4fb9-8cec-db5b4268064a", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -9328,14 +9476,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles/1", + "raw": "http://{{datagateway-api}}/investigationgroups/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles", - "1" + "investigationgroups", + "4" ] } }, @@ -9404,20 +9552,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Rule", + "name": "InvestigationInstrument", "item": [ { - "name": "Rules By ID", + "name": "InvestigationInstruments By ID", "event": [ { "listen": "test", "script": { - "id": "82242de5-227e-4008-9b8f-5335ff7125e6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -9441,14 +9586,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/rules/10", + "raw": "http://{{datagateway-api}}/investigationinstruments/44", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules", - "10" + "investigationinstruments", + "44" ] } }, @@ -9508,15 +9653,14 @@ ] }, { - "name": "Rules By ID", + "name": "InvestigationInstruments By ID", "event": [ { "listen": "test", "script": { - "id": "83992c46-75b2-4e39-a365-883691cdd5b4", "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", "});" ], "type": "text/javascript" @@ -9538,7 +9682,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"crudFlags\": \"C\"\r\n}", + "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", "options": { "raw": { "language": "json" @@ -9546,14 +9690,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/rules/10", + "raw": "http://{{datagateway-api}}/investigationinstruments/44", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules", - "10" + "investigationinstruments", + "44" ] } }, @@ -9613,12 +9757,11 @@ ] }, { - "name": "Rules By ID", + "name": "InvestigationInstruments By ID", "event": [ { "listen": "test", "script": { - "id": "8afab651-d975-4edc-9d0a-186ee459dc36", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -9642,14 +9785,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/rules/10", + "raw": "http://{{datagateway-api}}/investigationinstruments/44", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules", - "10" + "investigationinstruments", + "44" ] } }, @@ -9718,20 +9861,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Sample", + "name": "InvestigationParameter", "item": [ { - "name": "Samples By ID", + "name": "InvestigationParameters By ID", "event": [ { "listen": "test", "script": { - "id": "fb80d00b-1337-416a-a682-c1d71cc36fe0", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -9755,13 +9895,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/samples/4", + "raw": "http://{{datagateway-api}}/investigationparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples", + "investigationparameters", "4" ] } @@ -9822,12 +9962,11 @@ ] }, { - "name": "Samples By ID", + "name": "InvestigationParameters By ID", "event": [ { "listen": "test", "script": { - "id": "0475dcfa-dd0d-4249-97d0-547e98ee8331", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -9852,7 +9991,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Sample of name\"\r\n}", + "raw": "{\r\n \"stringValue\": \"NewStringValue\"\r\n}", "options": { "raw": { "language": "json" @@ -9860,13 +9999,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/samples/4", + "raw": "http://{{datagateway-api}}/investigationparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples", + "investigationparameters", "4" ] } @@ -9927,12 +10066,11 @@ ] }, { - "name": "Samples By ID", + "name": "InvestigationParameters By ID", "event": [ { "listen": "test", "script": { - "id": "aa558e71-5c9a-4cab-8d37-8c2322226f47", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -9956,13 +10094,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/samples/4", + "raw": "http://{{datagateway-api}}/investigationparameters/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples", + "investigationparameters", "4" ] } @@ -10032,20 +10170,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "SampleParameter", + "name": "InvestigationType", "item": [ { - "name": "SampleParameters By ID", + "name": "InvestigationTypes By ID", "event": [ { "listen": "test", "script": { - "id": "afc52a53-e563-4f75-8c14-f8e5d62c9374", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -10069,14 +10204,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampleparameters/4", + "raw": "http://{{datagateway-api}}/investigationtypes/3", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters", - "4" + "investigationtypes", + "3" ] } }, @@ -10136,12 +10271,11 @@ ] }, { - "name": "SampleParameters By ID", + "name": "InvestigationTypes By ID", "event": [ { "listen": "test", "script": { - "id": "f4eb90a6-8422-4ca2-98c4-818333fe7468", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -10166,7 +10300,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"error\": 345657.0\r\n}", + "raw": "{\r\n \"name\": \"Name of investigation type\",\r\n \"description\": \"description of investigation type\"\r\n}", "options": { "raw": { "language": "json" @@ -10174,14 +10308,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/sampleparameters/4", + "raw": "http://{{datagateway-api}}/investigationtypes/3", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters", - "4" + "investigationtypes", + "3" ] } }, @@ -10241,12 +10375,11 @@ ] }, { - "name": "SampleParameters By ID", + "name": "InvestigationTypes By ID", "event": [ { "listen": "test", "script": { - "id": "9a8c554f-5fa2-46b0-8c92-2e0118cf195b", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -10270,14 +10403,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampleparameters/4", + "raw": "http://{{datagateway-api}}/investigationtypes/3", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters", - "4" + "investigationtypes", + "3" ] } }, @@ -10346,20 +10479,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "SampleType", + "name": "InvestigationUser", "item": [ { - "name": "SampleTypes By ID", + "name": "InvestigationUsers By ID", "event": [ { "listen": "test", "script": { - "id": "75a472b5-13ba-4957-84e5-f1d4e8d234a1", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -10383,14 +10513,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampletypes/4", + "raw": "http://{{datagateway-api}}/investigationusers/10", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes", - "4" + "investigationusers", + "10" ] } }, @@ -10450,12 +10580,11 @@ ] }, { - "name": "SampleTypes By ID", + "name": "InvestigationUsers By ID", "event": [ { "listen": "test", "script": { - "id": "c3d38f76-50d9-4656-9be6-afdb68a98411", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -10480,7 +10609,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Name of sample type\",\r\n \"safetyInformation\": \"Health and safety and all that...\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", "options": { "raw": { "language": "json" @@ -10488,14 +10617,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/sampletypes/4", + "raw": "http://{{datagateway-api}}/investigationusers/10", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes", - "4" + "investigationusers", + "10" ] } }, @@ -10555,12 +10684,11 @@ ] }, { - "name": "SampleTypes By ID", + "name": "InvestigationUsers By ID", "event": [ { "listen": "test", "script": { - "id": "1fcb0d62-6ddd-4e63-8f0d-add7623d5042", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -10584,14 +10712,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampletypes/4", + "raw": "http://{{datagateway-api}}/investigationusers/10", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes", - "4" + "investigationusers", + "10" ] } }, @@ -10660,20 +10788,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Shift", + "name": "Job", "item": [ { - "name": "Shifts By ID", + "name": "Jobs By ID", "event": [ { "listen": "test", "script": { - "id": "64f8c1ad-716c-4cd8-9784-634ae089df3a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -10697,14 +10822,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/shifts/100", + "raw": "http://{{datagateway-api}}/jobs/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", - "100" + "jobs", + "4" ] } }, @@ -10760,68 +10885,15 @@ ], "cookie": [], "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" - }, - { - "name": "Shifts By ID", - "originalRequest": { - "method": "GET", - "header": [], - "url": { - "raw": "http://{{datagateway-api}}/shifts/102", - "protocol": "http", - "host": [ - "{{datagateway-api}}" - ], - "path": [ - "shifts", - "102" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Content-Length", - "value": "395" - }, - { - "key": "Access-Control-Allow-Origin", - "value": "*" - }, - { - "key": "Server", - "value": "Werkzeug/0.16.0 Python/3.6.8" - }, - { - "key": "Date", - "value": "Wed, 22 Jul 2020 10:18:03 GMT" - } - ], - "cookie": [], - "body": "{\n \"ID\": 102,\n \"COMMENT\": \"Answer since heart message. Happy mission ok play dog character organization. Theory be region character along artist best.\",\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2003-01-05 13:20:58\",\n \"ENDDATE\": \"2027-01-10 00:00:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2011-05-06 16:20:45\",\n \"STARTDATE\": \"2027-02-07 00:00:00\",\n \"INVESTIGATION_ID\": 108\n}" } ] }, { - "name": "Shifts By ID", + "name": "Jobs By ID", "event": [ { "listen": "test", "script": { - "id": "c15bc241-6af6-4027-b6bb-ca47c5d4ef82", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -10846,7 +10918,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"comment\": \"my test comment2222\"\r\n}", + "raw": "{\r\n \"arguments\": \"String arguments updated...\"\r\n}", "options": { "raw": { "language": "json" @@ -10854,14 +10926,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/shifts/100", + "raw": "http://{{datagateway-api}}/jobs/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", - "100" + "jobs", + "4" ] } }, @@ -10921,12 +10993,11 @@ ] }, { - "name": "Shifts By ID", + "name": "Jobs By ID", "event": [ { "listen": "test", "script": { - "id": "58cd39a9-1e6f-4fdc-ac5c-8bd41f4273ef", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -10949,24 +11020,15 @@ }, "method": "DELETE", "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "json" - } - } - }, "url": { - "raw": "http://{{datagateway-api}}/shifts/100", + "raw": "http://{{datagateway-api}}/jobs/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", - "100" + "jobs", + "4" ] } }, @@ -11035,20 +11097,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Study", + "name": "Keyword", "item": [ { - "name": "Studies By ID", + "name": "Keywords By ID", "event": [ { "listen": "test", "script": { - "id": "a9eb5da3-4235-468d-ad51-81df59f767d8", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -11072,14 +11131,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studies/4", + "raw": "http://{{datagateway-api}}/keywords/28", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies", - "4" + "keywords", + "28" ] } }, @@ -11139,12 +11198,11 @@ ] }, { - "name": "Studies By ID", + "name": "Keywords By ID", "event": [ { "listen": "test", "script": { - "id": "7082ee2b-051c-4a7c-8875-55127beb3f27", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -11169,7 +11227,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"status\": \"COMPLETE\"\r\n}", + "raw": "{\r\n \"name\": \"Name of keyword updated.\"\r\n}", "options": { "raw": { "language": "json" @@ -11177,14 +11235,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/studies/4", + "raw": "http://{{datagateway-api}}/keywords/28", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies", - "4" + "keywords", + "28" ] } }, @@ -11244,12 +11302,11 @@ ] }, { - "name": "Studies By ID", + "name": "Keywords By ID", "event": [ { "listen": "test", "script": { - "id": "3e1f2b14-3445-4f8b-8f4e-288cd3eaa217", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -11273,14 +11330,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studies/4", + "raw": "http://{{datagateway-api}}/keywords/28", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies", - "4" + "keywords", + "28" ] } }, @@ -11349,20 +11406,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "StudyInvestigation", + "name": "ParameterType", "item": [ { - "name": "StudyInvestigations By ID", + "name": "ParameterTypes By ID", "event": [ { "listen": "test", "script": { - "id": "9e40ff0e-50b1-4a66-9a8d-1cb83dc358ec", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -11386,14 +11440,21 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations/4", + "raw": "http://{{datagateway-api}}/parametertypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations", + "parametertypes", "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -11453,15 +11514,14 @@ ] }, { - "name": "StudyInvestigations By ID", + "name": "ParameterTypes By ID", "event": [ { "listen": "test", "script": { - "id": "79417bee-3740-4441-bec2-92996d7c0c71", "exec": [ - "pm.test(\"Status: 400\", function () {\r", - " pm.response.to.have.status(400);\r", + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -11483,7 +11543,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"createId\": \"simple/root\"\r\n}", + "raw": "{\r\n \"valueType\": \"STRING\"\r\n}", "options": { "raw": { "language": "json" @@ -11491,14 +11551,21 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations/4", + "raw": "http://{{datagateway-api}}/parametertypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations", + "parametertypes", "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } ] } }, @@ -11558,12 +11625,11 @@ ] }, { - "name": "StudyInvestigations By ID", + "name": "ParameterTypes By ID", "event": [ { "listen": "test", "script": { - "id": "de3a3bd2-6076-45df-80d8-ca7579ea4de9", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -11587,13 +11653,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations/4", + "raw": "http://{{datagateway-api}}/parametertypes/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations", + "parametertypes", "4" ] } @@ -11663,20 +11729,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "User", + "name": "PermissibleStringValue", "item": [ { - "name": "Users By ID", + "name": "PermissibleStringValues By ID", "event": [ { "listen": "test", "script": { - "id": "17d43c15-6a71-4464-b77b-6204c9519f27", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -11700,14 +11763,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/users/497", + "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "users", - "497" + "permissiblestringvalues", + "8" ] } }, @@ -11767,12 +11830,11 @@ ] }, { - "name": "Users By ID", + "name": "PermissibleStringValues By ID", "event": [ { "listen": "test", "script": { - "id": "546f67a4-17ce-47c1-98df-908654ae2edc", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -11797,7 +11859,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n\t\"name\": \"new name123\"\r\n}", + "raw": "{\r\n \"value\": \"VALUE OF PERMISSIBLESTRINGVALUE\"\r\n}", "options": { "raw": { "language": "json" @@ -11805,14 +11867,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/users/497", + "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "users", - "497" + "permissiblestringvalues", + "8" ] } }, @@ -11872,12 +11934,11 @@ ] }, { - "name": "Users By ID", + "name": "PermissibleStringValues By ID", "event": [ { "listen": "test", "script": { - "id": "73d00114-532a-4f31-ac78-a1c96b0b3b5d", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -11901,14 +11962,14 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/users/497", + "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "users", - "497" + "permissiblestringvalues", + "8" ] } }, @@ -11977,20 +12038,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "UserGroup", + "name": "PublicStep", "item": [ { - "name": "UserGroups By ID", + "name": "PublicSteps By ID", "event": [ { "listen": "test", "script": { - "id": "e5f25818-a4a9-4016-8ce0-dc96df6c9c96", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12014,13 +12072,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/usergroups/4", + "raw": "http://{{datagateway-api}}/publicsteps/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "usergroups", + "publicsteps", "4" ] } @@ -12081,15 +12139,14 @@ ] }, { - "name": "UserGroups By ID", + "name": "PublicSteps By ID", "event": [ { "listen": "test", "script": { - "id": "e6136916-33e7-480c-8d06-a707cf124645", "exec": [ - "pm.test(\"Status: 400\", function () {\r", - " pm.response.to.have.status(400);\r", + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -12111,7 +12168,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"createId\": \"simple/root\"\r\n}", + "raw": "{\r\n \"field\": \"Field no more than 32 characters attempt....\"\r\n}", "options": { "raw": { "language": "json" @@ -12119,13 +12176,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/usergroups/4", + "raw": "http://{{datagateway-api}}/publicsteps/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "usergroups", + "publicsteps", "4" ] } @@ -12186,12 +12243,11 @@ ] }, { - "name": "UserGroups By ID", + "name": "PublicSteps By ID", "event": [ { "listen": "test", "script": { - "id": "0abe7cc9-8f72-4cb6-a654-5f8df929a13a", "exec": [ "pm.test(\"Status: 204\", function () {\r", " pm.response.to.have.status(204);\r", @@ -12215,13 +12271,13 @@ "method": "DELETE", "header": [], "url": { - "raw": "http://{{datagateway-api}}/usergroups/4", + "raw": "http://{{datagateway-api}}/publicsteps/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "usergroups", + "publicsteps", "4" ] } @@ -12291,36 +12347,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true - } - ], - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" } - ] - }, - "protocolProfileBehavior": {} - }, - { - "name": "Other Entity Requests", - "item": [ + }, { - "name": "Application", + "name": "Publication", "item": [ { - "name": "Applications By Filter", + "name": "Publications By ID", "event": [ { "listen": "test", "script": { - "id": "5c4b9c1c-9339-459b-a135-e93866490349", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12344,13 +12381,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/applications", + "raw": "http://{{datagateway-api}}/publications/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "applications" + "publications", + "4" ] } }, @@ -12410,12 +12448,11 @@ ] }, { - "name": "Update Applications", + "name": "Publications By ID", "event": [ { "listen": "test", "script": { - "id": "5760d09b-d76b-4f49-9a36-a4de94b7aac2", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12440,7 +12477,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Test Name\"\r\n}", + "raw": "{\r\n \"repositoryId\": \"Repo ID string of the publication\"\r\n}", "options": { "raw": { "language": "json" @@ -12448,13 +12485,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/applications", + "raw": "http://{{datagateway-api}}/publications/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "applications" + "publications", + "4" ] } }, @@ -12514,17 +12552,15 @@ ] }, { - "name": "Create Applications", + "name": "Publications By ID", "event": [ { "listen": "test", "script": { - "id": "cfaeb805-20b6-43c1-9486-73b5443ae119", "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", - "});\r", - "" + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" ], "type": "text/javascript" } @@ -12541,139 +12577,74 @@ } ] }, - "method": "POST", + "method": "DELETE", "header": [], - "body": { - "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Application5\",\r\n \"version\": \"Application version 0.01\",\r\n \"facility\": 1\r\n }\r\n]\r\n", - "options": { - "raw": { - "language": "json" - } - } - }, "url": { - "raw": "http://{{datagateway-api}}/applications", + "raw": "http://{{datagateway-api}}/publications/4", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "applications" + "publications", + "4" ] } }, - "response": [] - }, - { - "name": "Count Applications", - "event": [ - { - "listen": "prerequest", - "script": { - "id": "73fe0ad4-655b-4dff-896b-64d8da572d4b", - "exec": [ - "" - ], - "type": "text/javascript" - } - }, + "response": [ { - "listen": "test", - "script": { - "id": "49a762d6-582f-496e-b434-a466360c5938", - "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "http://{{datagateway-api}}/applications/count", - "protocol": "http", - "host": [ - "{{datagateway-api}}" - ], - "path": [ - "applications", - "count" - ], - "query": [ - { - "key": "where", - "value": "{\"id\": {\"in\": [2]}}", - "disabled": true + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] } - ] - } - }, - "response": [] - }, - { - "name": "Find One Application", - "event": [ - { - "listen": "prerequest", - "script": { - "id": "7ec88f94-bd8d-493e-839e-e6f9896b9bd3", - "exec": [ - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "id": "33adb6f9-6aaa-415a-8236-74a1d4c834a7", - "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "http://{{datagateway-api}}/applications/findone", - "protocol": "http", - "host": [ - "{{datagateway-api}}" - ], - "path": [ - "applications", - "findone" - ], - "query": [ + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ { - "key": "where", - "value": "{\"id\": {\"in\": [6]}}", - "disabled": true + "key": "Content-Type", + "value": "application/json" }, { - "key": "distinct", - "value": "\"id\"", - "disabled": true + "key": "Content-Length", + "value": "282" }, { - "key": "include", - "value": "\"investigationUsers\"", - "disabled": true + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" } - ] + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" } - }, - "response": [] + ] } ], "auth": { @@ -12685,42 +12656,4593 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "a6c88381-3170-4785-b535-28392d965f31", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "f99114d1-bf49-4075-9334-e65e0bfa9aab", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DataCollection", + "name": "RelatedDatafile", "item": [ { - "name": "DataCollections By Filter", + "name": "RelatedDatafiles By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/relateddatafiles/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles", + "1" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "RelatedDatafiles By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"relation\": \"COPY\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/relateddatafiles/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "RelatedDatafiles By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/relateddatafiles/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "RelatedItems", + "item": [ + { + "name": "RelatedItems By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/relateditems/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateditems", + "1" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "RelatedItems By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"relation\": \"COPY\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/relateditems/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateditems", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "RelatedItems By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/relateditems/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateditems", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "Rule", + "item": [ + { + "name": "Rules By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/rules/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules", + "10" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Rules By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"crudFlags\": \"C\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/rules/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules", + "10" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Rules By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/rules/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules", + "10" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "Sample", + "item": [ + { + "name": "Samples By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/samples/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Samples By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Sample of name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/samples/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Samples By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/samples/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "SampleParameter", + "item": [ + { + "name": "SampleParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sampleparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "SampleParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"error\": 345657.0\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/sampleparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "SampleParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sampleparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "SampleType", + "item": [ + { + "name": "SampleTypes By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sampletypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "SampleTypes By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Name of sample type\",\r\n \"safetyInformation\": \"Health and safety and all that...\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/sampletypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "SampleTypes By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sampletypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "Shift", + "item": [ + { + "name": "Shifts By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/shifts/100", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "100" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + }, + { + "name": "Shifts By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/shifts/102", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "102" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "395" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Wed, 22 Jul 2020 10:18:03 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 102,\n \"COMMENT\": \"Answer since heart message. Happy mission ok play dog character organization. Theory be region character along artist best.\",\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2003-01-05 13:20:58\",\n \"ENDDATE\": \"2027-01-10 00:00:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2011-05-06 16:20:45\",\n \"STARTDATE\": \"2027-02-07 00:00:00\",\n \"INVESTIGATION_ID\": 108\n}" + } + ] + }, + { + "name": "Shifts By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"comment\": \"my test comment2222\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/shifts/100", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "100" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Shifts By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/shifts/100", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "100" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "Study", + "item": [ + { + "name": "Studies By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/studies/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Studies By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"status\": \"COMPLETE\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/studies/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Studies By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/studies/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "StudyInvestigation", + "item": [ + { + "name": "StudyInvestigations By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/studyinvestigations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "StudyInvestigations By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"createId\": \"simple/root\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/studyinvestigations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "StudyInvestigations By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/studyinvestigations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "Technique", + "item": [ + { + "name": "Techniques By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/techniques/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "techniques", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Techniques By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n\t\"name\": \"new name123\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/techniques/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "techniques", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Techniques By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/techniques/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "techniques", + "1" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "User", + "item": [ + { + "name": "Users By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/497", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "497" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Users By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n\t\"name\": \"new name123\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/users/497", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "497" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Users By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/497", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "497" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "UserGroup", + "item": [ + { + "name": "UserGroups By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/usergroups/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "UserGroups By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"createId\": \"simple/root\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/usergroups/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "UserGroups By ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/usergroups/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups", + "4" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "Other Entity Requests", + "item": [ + { + "name": "Application", + "item": [ + { + "name": "Applications By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/applications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update Applications", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Test Name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/applications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create Applications", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"name\": \"My New Application5\",\r\n \"version\": \"Application version 0.01\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/applications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications" + ] + } + }, + "response": [] + }, + { + "name": "Count Applications", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/applications/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Application", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/applications/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "Affiliation", + "item": [ + { + "name": "Affiliations By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/affiliations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update Affiliations", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Test Name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/affiliations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create Affiliations", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"name\": \"New Affiliation\",\r\n \"fullReference\": \"This is a new Affiliation\",\r\n \"pid\": \"ny-23\",\r\n \"user\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/affiliations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations" + ] + } + }, + "response": [] + }, + { + "name": "Count Affiliations", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/affiliations/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Affiliations", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/affiliations/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "affiliations", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DataCollection", + "item": [ + { + "name": "DataCollections By Filter", "event": [ { "listen": "test", "script": { - "id": "99f29b1a-378f-44e2-8274-d43ca0296e93", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12750,14 +17272,4424 @@ "{{datagateway-api}}" ], "path": [ - "datacollections" + "datacollections" + ], + "query": [ + { + "key": "where", + "value": "{\"id\":{\"gt\":995}}" + } + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DataCollections", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"doi\": \"test DOI\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollections", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DataCollections", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"doi\": \"My new DOI\"\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollections", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections" + ] + } + }, + "response": [] + }, + { + "name": "Count DataCollections", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollections/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DataCollection", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollections/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DataCollectionDatafile", + "item": [ + { + "name": "DataCollectionDatafiles By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DataCollectionDatafiles", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DataCollectionDatafiles", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"dataCollection\": 4,\r\n \"datafile\": 10\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles" + ] + } + }, + "response": [] + }, + { + "name": "Count DataCollectionDatafiles", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatafiles/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatacollectionDatafile", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatafiles/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DataCollectionDataset", + "item": [ + { + "name": "DataCollectionDatasets By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatasets", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DataCollectionDatasets", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatasets", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DataCollectionDatasets", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"dataset\": 4,\r\n \"dataCollection\": 8\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatasets", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets" + ] + } + }, + "response": [] + }, + { + "name": "Count DataCollectionDatasets", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatasets/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatacollectionDataset", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectiondatasets/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "pm.test(\"Status: 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ] + } + } + ] + }, + { + "name": "DataCollectionParameter", + "item": [ + { + "name": "DataCollectionParameters By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectionparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DataCollectionParameters", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"stringValue\": \"try100\",\r\n \"error\": 36221.0\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectionparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DataCollectionParameters", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"stringValue\": \"My String Value...\",\r\n \"rangeTop\": 3.0,\r\n \"rangeBottom\": 10.5,\r\n \"dateTimeValue\": \"2020-07-10 12:23:34\",\r\n \"error\": 135607.0,\r\n \"numericValue\": 3.0,\r\n \"dataCollection\": 6,\r\n \"type\": 13\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectionparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters" + ] + } + }, + "response": [] + }, + { + "name": "Count DataCollectionParameters", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectionparameters/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DataCollectionParameter", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectionparameters/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DataCollectionInvestigation", + "item": [ + { + "name": "DataCollectionInvestigations By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectioninvestigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectioninvestigations" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DataCollectionInvestigations", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"stringValue\": \"try100\",\r\n \"error\": 36221.0\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectioninvestigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectioninvestigations" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "CreateDataCollectionInvestigations", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"dataCollection\":1,\r\n \"investigation\":1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectioninvestigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectioninvestigations" + ] + } + }, + "response": [] + }, + { + "name": "Count DataCollectionInvestigations", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectioninvestigations/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectioninvestigations", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DataCollectionInvestigation", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollectioninvestigations/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectioninvestigations", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "Datafile", + "item": [ + { + "name": "Datafiles By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update Datafiles", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"fileSize\": 2147483648849848\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create Datafiles", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"name\": \"My new datafile12\",\r\n \"fileSize\": 40540960605490,\r\n \"location\": \"Logical location of the file\",\r\n \"datafileModTime\": \"2020-10-20 20:20:20\",\r\n \"dataset\": 3,\r\n \"datafileFormat\": 2\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles" + ] + } + }, + "response": [] + }, + { + "name": "Count Datafiles", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafiles/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Datafile", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafiles/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DatafileFormat", + "item": [ + { + "name": "DatafileFormats By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileformats", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DatafileFormats", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"description\": \"Example description of a datafileformat\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafileformats", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DatafileFormats", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"name\": \"My New Datafile forma1t\",\r\n \"description\": \"nice little description\",\r\n \"version\": \"0.10.0.0.0.1\",\r\n \"type\": \"text\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafileformats", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats" + ] + } + }, + "response": [] + }, + { + "name": "Count DatafileFormats", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileformats/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatafileFormat", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileformats/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DatafileParameter", + "item": [ + { + "name": "DatafileParameters By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DatafileParameters", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"stringValue\": \"New String Value\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DatafileParameters", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"stringValue\": \"value 2\",\r\n \"datafile\": 1,\r\n \"type\": 2\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters" + ] + } + }, + "response": [] + }, + { + "name": "Count DatafileParameters", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatafileParameter", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "Dataset", + "item": [ + { + "name": "Datasets By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasets", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update Datasets", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasets", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create Datasets", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"name\": \"Dataset Name1\",\r\n \"location\": \"/root/my/dir\",\r\n \"complete\": true,\r\n \"investigation\": 22,\r\n \"type\": 3,\r\n \"sample\": 5\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasets", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets" + ] + } + }, + "response": [] + }, + { + "name": "Count Datasets", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasets/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Dataset", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasets/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "DatasetParameter", + "item": [ + { + "name": "DatasetParameters By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DatasetParameters", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"stringValue\": \"String value for datasetparameter\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DatasetParameters", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"stringValue\": \"value 2\",\r\n \"type\": 2,\r\n \"dataset\": 2\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters" + ] + } + }, + "response": [] + }, + { + "name": "Count DatasetParameters", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatasetParameter", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] + }, + { + "name": "DatasetType", + "item": [ + { + "name": "DatasetTypes By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasettypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DatasetTypes", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasettypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DatasetTypes", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"name\": \"My New Dataset Type\",\r\n \"description\": \"This is a brand new dataset type, state of the art.....\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasettypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes" + ] + } + }, + "response": [] + }, + { + "name": "Count DatasetTypes", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasettypes/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes", + "count" ], "query": [ { "key": "where", - "value": "{\"id\":{\"gt\":995}}" + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatasetType", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasettypes/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "DatasetInstrument", + "item": [ + { + "name": "DatasetInstruments By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" } ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetinstruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetinstruments" + ] } }, "response": [ @@ -12816,12 +21748,380 @@ ] }, { - "name": "Update DataCollections", + "name": "Update DatasetInstruments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasetinstruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetinstruments" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DatasetInstruments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"dataset\": 1,\r\n \"instrument\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datasetinstruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetinstruments" + ] + } + }, + "response": [] + }, + { + "name": "Count DatasetInstruments", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetinstruments/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetinstruments", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatasetInstrument", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetinstruments/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetinstruments", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUsers\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "DatasetTechnique", + "item": [ + { + "name": "DatasetTechniques By Filter", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasettechniques", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettechniques" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DatasetTechniques", "event": [ { "listen": "test", "script": { - "id": "46a007a1-4859-459c-b682-67d4a695f6d4", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12846,7 +22146,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"doi\": \"test DOI\"\r\n}", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", "options": { "raw": { "language": "json" @@ -12854,13 +22154,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollections", + "raw": "http://{{datagateway-api}}/datasettechniques", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollections" + "datasettechniques" ] } }, @@ -12920,12 +22220,11 @@ ] }, { - "name": "Create DataCollections", + "name": "Create DatasetTechniques", "event": [ { "listen": "test", "script": { - "id": "766e9c38-db92-4992-a93c-c8a64580a9a4", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12951,7 +22250,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"doi\": \"My new DOI\"\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"dataset\": 1,\r\n \"technique\": 23\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -12959,25 +22258,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollections", + "raw": "http://{{datagateway-api}}/datasettechniques", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollections" + "datasettechniques" ] } }, "response": [] }, { - "name": "Count DataCollections", + "name": "Count DatasetTechniques", "event": [ { "listen": "prerequest", "script": { - "id": "0ad0cfc3-bf7a-482d-9ec7-e41219f28506", "exec": [ "" ], @@ -12987,7 +22285,6 @@ { "listen": "test", "script": { - "id": "f5ac5dcb-04d5-4c66-ae0c-a495f5ff8dc5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -12998,26 +22295,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollections/count", + "raw": "http://{{datagateway-api}}/datasettechniques/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollections", + "datasettechniques", "count" ], "query": [ @@ -13032,12 +22319,11 @@ "response": [] }, { - "name": "Find One DataCollection", + "name": "Find One DatasetTechnique", "event": [ { "listen": "prerequest", "script": { - "id": "eec95f70-e09e-4bd9-b66f-39f5881c67f2", "exec": [ "" ], @@ -13047,7 +22333,75 @@ { "listen": "test", "script": { - "id": "0cbcf01f-e2ef-4402-bc92-c113923c2d3e", + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasettechniques/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettechniques", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [6]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"technique\"", + "disabled": true + }, + { + "key": "include", + "value": "\"dataset\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + } + }, + { + "name": "DataPublication", + "item": [ + { + "name": "DataPublications By Filter", + "event": [ + { + "listen": "test", + "script": { "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13071,13 +22425,308 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollections/findone", + "raw": "http://{{datagateway-api}}/datapublications", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollections", + "datapublications" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Update DataPublications", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datapublications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datapublications" + ] + } + }, + "response": [ + { + "name": "Users By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "4" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "282" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 14 Jul 2020 12:22:50 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + } + ] + }, + { + "name": "Create DataPublications", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "[\r\n {\r\n \"title\": \"Your DataPublication... \",\r\n \"pid\": \"uk-12\",\r\n \"publicationDate\": \"2020-02-12 12:00:06\",\r\n \"content\": 1,\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datapublications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datapublications" + ] + } + }, + "response": [] + }, + { + "name": "Count DataPublications", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datapublications/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datapublications", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DataPublication", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datapublications/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datapublications", "findone" ], "query": [ @@ -13111,42 +22760,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "c34b06ac-883f-4af6-8e81-3970dcf424bb", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "78f9d932-5b11-4552-b69f-344fe0da1630", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DataCollectionDatafile", + "name": "DataPublicationDate", "item": [ { - "name": "DataCollectionDatafiles By Filter", + "name": "DataPublicationDates By Filter", "event": [ { "listen": "test", "script": { - "id": "add5d255-2e22-4f6c-a67e-55b4fbfe5d96", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13170,13 +22794,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatafiles", + "raw": "http://{{datagateway-api}}/datapublicationdates", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatafiles" + "datapublicationdates" ] } }, @@ -13236,12 +22860,11 @@ ] }, { - "name": "Update DataCollectionDatafiles", + "name": "Update DataPublicationDates", "event": [ { "listen": "test", "script": { - "id": "c6bf9f34-d01b-4a1e-9e15-ed17dbe02559", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13266,7 +22889,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \r\n}", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", "options": { "raw": { "language": "json" @@ -13274,13 +22897,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatafiles", + "raw": "http://{{datagateway-api}}/datapublicationdates", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatafiles" + "datapublicationdates" ] } }, @@ -13340,12 +22963,11 @@ ] }, { - "name": "Create DataCollectionDatafiles", + "name": "Create DataPublicationDates", "event": [ { "listen": "test", "script": { - "id": "c0a30f3f-57a1-4459-a94f-73827ad0937f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13371,7 +22993,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"dataCollection\": 4,\r\n \"datafile\": 10\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"publication\": 1,\r\n \"dateType\": \"Accepted\",\r\n \"date\": \"2020-06-12 14:20:10\"\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -13379,25 +23001,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatafiles", + "raw": "http://{{datagateway-api}}/datapublicationdates", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatafiles" + "datapublicationdates" ] } }, "response": [] }, { - "name": "Count DataCollectionDatafiles", + "name": "Count DataPublicationDates", "event": [ { "listen": "prerequest", "script": { - "id": "ff0eb49b-31bd-4f4c-bc82-24290448d840", "exec": [ "" ], @@ -13407,7 +23028,6 @@ { "listen": "test", "script": { - "id": "f796a432-57be-4bd9-8eae-6cc7a8b60bd9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13421,13 +23041,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatafiles/count", + "raw": "http://{{datagateway-api}}/datapublicationdates/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatafiles", + "datapublicationdates", "count" ], "query": [ @@ -13442,12 +23062,11 @@ "response": [] }, { - "name": "Find One DatacollectionDatafile", + "name": "Find One DataPublicationDate", "event": [ { "listen": "prerequest", "script": { - "id": "3b1d3053-3fb6-4f80-b516-125458a8f408", "exec": [ "" ], @@ -13457,7 +23076,6 @@ { "listen": "test", "script": { - "id": "d0996967-2846-4e1b-b99a-318ae624c894", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13471,13 +23089,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatafiles/findone", + "raw": "http://{{datagateway-api}}/datapublicationdates/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatafiles", + "datapublicationdates", "findone" ], "query": [ @@ -13511,42 +23129,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "b7d7c432-92b2-4860-88b4-3e0c2ee99f42", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "37400cb3-4846-4f28-ad5d-6d6d4324f34a", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DataCollectionDataset", + "name": "DataPublicationFunding", "item": [ { - "name": "DataCollectionDatasets By Filter", + "name": "DataPublicationFundings By Filter", "event": [ { "listen": "test", "script": { - "id": "84bb55c8-a116-4003-8db5-4bf123f33b3b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13570,13 +23163,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatasets", + "raw": "http://{{datagateway-api}}/datapublicationfundings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatasets" + "datapublicationfundings" ] } }, @@ -13636,22 +23229,11 @@ ] }, { - "name": "Update DataCollectionDatasets", + "name": "Update DataPublicationFundings", "event": [ - { - "listen": "prerequest", - "script": { - "id": "a889712d-0f74-4b6e-a479-d6d5dd304bf7", - "exec": [ - "" - ], - "type": "text/javascript" - } - }, { "listen": "test", "script": { - "id": "cc9865bb-8a9b-4728-b708-c431b0600e06", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13676,7 +23258,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \r\n}", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", "options": { "raw": { "language": "json" @@ -13684,13 +23266,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatasets", + "raw": "http://{{datagateway-api}}/datapublicationfundings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatasets" + "datapublicationfundings" ] } }, @@ -13750,12 +23332,11 @@ ] }, { - "name": "Create DataCollectionDatasets", + "name": "Create DataPublicationFundings", "event": [ { "listen": "test", "script": { - "id": "de3b3b9a-c2c0-4c24-9cc3-db6af0f89f89", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13781,7 +23362,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"dataset\": 4,\r\n \"dataCollection\": 8\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"funding\": 1,\r\n \"dataPublication\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -13789,25 +23370,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatasets", + "raw": "http://{{datagateway-api}}/datapublicationfundings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatasets" + "datapublicationfundings" ] } }, "response": [] }, { - "name": "Count DataCollectionDatasets", + "name": "Count DataPublicationFundings", "event": [ { "listen": "prerequest", "script": { - "id": "5333399c-7de7-4fa7-a157-99ccdaf32c8e", "exec": [ "" ], @@ -13817,7 +23397,6 @@ { "listen": "test", "script": { - "id": "88cff8ec-8afb-4a8f-b06a-d646ec0d26c6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13828,26 +23407,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatasets/count", + "raw": "http://{{datagateway-api}}/datapublicationfundings/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatasets", + "datapublicationfundings", "count" ], "query": [ @@ -13862,12 +23431,11 @@ "response": [] }, { - "name": "Find One DatacollectionDataset", + "name": "Find One DataPublicationFunding", "event": [ { "listen": "prerequest", "script": { - "id": "a1fcc384-1dc1-415c-bb64-4280972fda42", "exec": [ "" ], @@ -13877,7 +23445,6 @@ { "listen": "test", "script": { - "id": "3ee8f416-f868-456a-a9f7-f23a38939070", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -13888,26 +23455,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectiondatasets/findone", + "raw": "http://{{datagateway-api}}/datapublicationfundings/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectiondatasets", + "datapublicationfundings", "findone" ], "query": [ @@ -13941,44 +23498,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "6e996af3-69c2-40fb-bcca-0c405d346bd4", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "16eaded4-7b13-4758-b753-35e4219b128e", - "type": "text/javascript", - "exec": [ - "pm.test(\"Status: 200\", function () {", - " pm.response.to.have.status(200);", - "});" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DataCollectionParameter", + "name": "DataPublicationType", "item": [ { - "name": "DataCollectionParameters By Filter", + "name": "DataPublicationTypes By Filter", "event": [ { "listen": "test", "script": { - "id": "e01e5ea5-314b-4dcb-881c-8dcc82cdd63e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14002,13 +23532,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectionparameters", + "raw": "http://{{datagateway-api}}/datapublicationtypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectionparameters" + "datapublicationtypes" ] } }, @@ -14068,12 +23598,11 @@ ] }, { - "name": "Update DataCollectionParameters", + "name": "Update DataPublicationTypes", "event": [ { "listen": "test", "script": { - "id": "640bf430-c453-456e-a818-8e6a2034dbdc", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14098,7 +23627,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"stringValue\": \"try100\",\r\n \"error\": 36221.0\r\n}", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", "options": { "raw": { "language": "json" @@ -14106,13 +23635,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollectionparameters", + "raw": "http://{{datagateway-api}}/datapublicationtypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectionparameters" + "datapublicationtypes" ] } }, @@ -14172,12 +23701,11 @@ ] }, { - "name": "Create DataCollectionParameters", + "name": "Create DataPublicationTypes", "event": [ { "listen": "test", "script": { - "id": "47ee8cc6-24f2-4e27-9e22-ffa557b2185f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14203,7 +23731,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"stringValue\": \"My String Value...\",\r\n \"rangeTop\": 3.0,\r\n \"rangeBottom\": 10.5,\r\n \"dateTimeValue\": \"2020-07-10 12:23:34\",\r\n \"error\": 135607.0,\r\n \"numericValue\": 3.0,\r\n \"dataCollection\": 6,\r\n \"type\": 13\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Your Publication Type... \",\r\n \"description\": \"What is this publication type?\",\r\n \"facility\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -14211,25 +23739,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datacollectionparameters", + "raw": "http://{{datagateway-api}}/datapublicationtypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectionparameters" + "datapublicationtypes" ] } }, "response": [] }, { - "name": "Count DataCollectionParameters", + "name": "Count DataPublicationTypes", "event": [ { "listen": "prerequest", "script": { - "id": "b769d4e6-8cba-46e8-af45-93aa71c13154", "exec": [ "" ], @@ -14239,7 +23766,6 @@ { "listen": "test", "script": { - "id": "6d8f7f4a-c025-4026-b3b3-78a3b4f3e30a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14250,26 +23776,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectionparameters/count", + "raw": "http://{{datagateway-api}}/datapublicationtypes/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectionparameters", + "datapublicationtypes", "count" ], "query": [ @@ -14284,12 +23800,11 @@ "response": [] }, { - "name": "Find One DataCollectionParameter", + "name": "Find One DataPublicationType", "event": [ { "listen": "prerequest", "script": { - "id": "f3755899-37d9-44fd-aa06-0d98d73d4e4f", "exec": [ "" ], @@ -14299,7 +23814,6 @@ { "listen": "test", "script": { - "id": "dfe7d35c-0ebd-446e-8952-d8e59398ef5b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14310,26 +23824,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datacollectionparameters/findone", + "raw": "http://{{datagateway-api}}/datapublicationtypes/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datacollectionparameters", + "datapublicationtypes", "findone" ], "query": [ @@ -14363,42 +23867,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "dfaf502a-49e7-44f8-b535-1b1ab4ad39ca", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "4fdbaf38-f77d-49f2-aeb3-80425b1d7c10", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Datafile", + "name": "DataPublicationUser", "item": [ { - "name": "Datafiles By Filter", + "name": "DataPublicationUsers By Filter", "event": [ { "listen": "test", "script": { - "id": "fd2cf6cb-20e1-410c-abfb-4c8669a65181", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14422,13 +23901,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafiles", + "raw": "http://{{datagateway-api}}/datapublicationusers", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles" + "datapublicationusers" ] } }, @@ -14488,12 +23967,11 @@ ] }, { - "name": "Update Datafiles", + "name": "Update DataPublicationUsers", "event": [ { "listen": "test", "script": { - "id": "5065cf2c-7f6f-469a-988c-59472058f45c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14518,7 +23996,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"fileSize\": 2147483648849848\r\n}", + "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", "options": { "raw": { "language": "json" @@ -14526,13 +24004,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafiles", + "raw": "http://{{datagateway-api}}/datapublicationusers", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles" + "datapublicationusers" ] } }, @@ -14592,12 +24070,11 @@ ] }, { - "name": "Create Datafiles", + "name": "Create DataPublicationUsers", "event": [ { "listen": "test", "script": { - "id": "e9bd9eef-2a8f-4623-b00f-f7df475ebc85", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14623,7 +24100,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My new datafile12\",\r\n \"fileSize\": 40540960605490,\r\n \"location\": \"Logical location of the file\",\r\n \"datafileModTime\": \"2020-10-20 20:20:20\",\r\n \"dataset\": 3,\r\n \"datafileFormat\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"givenName\": \"Joe\",\r\n \"fullName\": \"Sir Joe Bloggs\",\r\n \"familyName\": \"Bloggs\",\r\n \"orderKey\": \"primary\",\r\n \"contributorType\": \"Researcher\",\r\n \"email\": \"joe.bloggs@example.edu\",\r\n \"publication\": 1,\r\n \"user\": 4\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -14631,25 +24108,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafiles", + "raw": "http://{{datagateway-api}}/datapublicationusers", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles" + "datapublicationusers" ] } }, "response": [] }, { - "name": "Count Datafiles", + "name": "Count DataPublicationUsers", "event": [ { "listen": "prerequest", "script": { - "id": "58bfb182-0891-448d-a3d2-c1257cbe9357", "exec": [ "" ], @@ -14659,7 +24135,6 @@ { "listen": "test", "script": { - "id": "ce0d0d21-7035-4fc1-b7e3-976223e518b5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14670,26 +24145,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafiles/count", + "raw": "http://{{datagateway-api}}/datapublicationusers/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles", + "datapublicationusers", "count" ], "query": [ @@ -14704,12 +24169,11 @@ "response": [] }, { - "name": "Find One Datafile", + "name": "Find One DataPublicationUser", "event": [ { "listen": "prerequest", "script": { - "id": "4b97c14b-deaf-4ee8-ac79-25943e585c45", "exec": [ "" ], @@ -14719,7 +24183,6 @@ { "listen": "test", "script": { - "id": "bf3ba53d-d269-4349-bec4-136497a48abd", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14730,26 +24193,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafiles/findone", + "raw": "http://{{datagateway-api}}/datapublicationusers/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafiles", + "datapublicationusers", "findone" ], "query": [ @@ -14783,42 +24236,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "f301a0ed-4de1-491b-9273-93617e1f4fc5", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "3a9da4f1-5489-40d1-96b2-370a85605b53", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DatafileFormat", + "name": "Facility", "item": [ { - "name": "DatafileFormats By Filter", + "name": "Facilities By Filter", "event": [ { "listen": "test", "script": { - "id": "aea0fa3e-eff3-4619-87f2-bb0f33a26418", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14842,13 +24270,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileformats", + "raw": "http://{{datagateway-api}}/facilities", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats" + "facilities" ] } }, @@ -14908,12 +24336,11 @@ ] }, { - "name": "Update DatafileFormats", + "name": "Update Facilities", "event": [ { "listen": "test", "script": { - "id": "8d2fcd8d-4106-48f4-ba45-0e5d36d5ff3b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -14938,7 +24365,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"description\": \"Example description of a datafileformat\"\r\n}", + "raw": "{\r\n \"daysUntilRelease\": 1825\r\n}", "options": { "raw": { "language": "json" @@ -14946,13 +24373,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafileformats", + "raw": "http://{{datagateway-api}}/facilities", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats" + "facilities" ] } }, @@ -15012,12 +24439,11 @@ ] }, { - "name": "Create DatafileFormats", + "name": "Create Facilities", "event": [ { "listen": "test", "script": { - "id": "55bc6ba9-1933-4db0-8dea-84cff0a9411b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15043,7 +24469,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Datafile forma1t\",\r\n \"description\": \"nice little description\",\r\n \"version\": \"0.10.0.0.0.1\",\r\n \"type\": \"text\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"My Test Facility123\",\r\n \"daysUntilRelease\": 500,\r\n \"fullName\": \"My Development Test Facility\"\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -15051,25 +24477,82 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafileformats", + "raw": "http://{{datagateway-api}}/facilities", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats" + "facilities" ] } }, "response": [] }, { - "name": "Count DatafileFormats", + "name": "Count Facilities", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/facilities/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Facility", "event": [ { "listen": "prerequest", "script": { - "id": "8be7fd05-b458-4a26-b26f-779d0a17c259", "exec": [ "" ], @@ -15079,7 +24562,6 @@ { "listen": "test", "script": { - "id": "8f5e08bb-7b33-4c7f-928f-f7479d976f99", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15103,63 +24585,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileformats/count", - "protocol": "http", - "host": [ - "{{datagateway-api}}" - ], - "path": [ - "datafileformats", - "count" - ], - "query": [ - { - "key": "where", - "value": "{\"id\": {\"in\": [2]}}", - "disabled": true - } - ] - } - }, - "response": [] - }, - { - "name": "Find One DatafileFormat", - "event": [ - { - "listen": "prerequest", - "script": { - "id": "99d41b8b-7786-4a52-9104-4b395bf55b33", - "exec": [ - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "id": "4dd5d3e1-946d-46b2-ad7a-262bb9ac3ed6", - "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "http://{{datagateway-api}}/datafileformats/findone", + "raw": "http://{{datagateway-api}}/facilities/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileformats", + "facilities", "findone" ], "query": [ @@ -15193,42 +24625,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "9b22e5ed-2340-4d61-b704-72e20a1e5033", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "d29a984b-3626-4dfd-9edf-9ff035d1113d", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DatafileParameter", + "name": "FacilityCycle", "item": [ { - "name": "DatafileParameters By Filter", + "name": "FacilityCycles By Filter", "event": [ { "listen": "test", "script": { - "id": "ec308b4c-f607-4fdb-99c7-299d836d91fb", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15252,13 +24659,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileparameters", + "raw": "http://{{datagateway-api}}/facilitycycles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters" + "facilitycycles" ] } }, @@ -15318,12 +24725,11 @@ ] }, { - "name": "Update DatafileParameters", + "name": "Update FacilityCycles", "event": [ { "listen": "test", "script": { - "id": "e7f0b0a6-3586-47d2-929f-2a5097933006", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15348,7 +24754,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"stringValue\": \"New String Value\"\r\n}", + "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", "options": { "raw": { "language": "json" @@ -15356,13 +24762,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafileparameters", + "raw": "http://{{datagateway-api}}/facilitycycles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters" + "facilitycycles" ] } }, @@ -15422,12 +24828,11 @@ ] }, { - "name": "Create DatafileParameters", + "name": "Create FacilityCycles", "event": [ { "listen": "test", "script": { - "id": "94d6bbde-bcea-46b7-a82a-ef652e2ad1df", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15453,7 +24858,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"stringValue\": \"value 2\",\r\n \"datafile\": 1,\r\n \"type\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"My New Facility Cycle\",\r\n \"startDate\": \"2014-04-05 12:34:56\",\r\n \"facility\": 2\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -15461,25 +24866,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datafileparameters", + "raw": "http://{{datagateway-api}}/facilitycycles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters" + "facilitycycles" ] } }, "response": [] }, { - "name": "Count DatafileParameters", + "name": "Count FacilityCycles", "event": [ { "listen": "prerequest", "script": { - "id": "24aca046-0f36-4ee0-8341-0f44c1598b3c", "exec": [ "" ], @@ -15489,7 +24893,6 @@ { "listen": "test", "script": { - "id": "6db2acce-05f6-4746-919a-92837d2e8e14", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15513,13 +24916,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileparameters/count", + "raw": "http://{{datagateway-api}}/facilitycycles/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters", + "facilitycycles", "count" ], "query": [ @@ -15534,12 +24937,11 @@ "response": [] }, { - "name": "Find One DatafileParameter", + "name": "Find One FacilityCycles", "event": [ { "listen": "prerequest", "script": { - "id": "43786f44-54ef-4193-a293-62b9f414da0f", "exec": [ "" ], @@ -15549,7 +24951,6 @@ { "listen": "test", "script": { - "id": "395664e4-2459-40c2-ae0f-17af30b259fb", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15573,13 +24974,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datafileparameters/findone", + "raw": "http://{{datagateway-api}}/facilitycycles/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datafileparameters", + "facilitycycles", "findone" ], "query": [ @@ -15613,42 +25014,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "93a80ec3-4ba2-4936-8fd0-d9a5740b04e8", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "59a5495a-a76d-4711-b109-bcb934002587", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Dataset", + "name": "FundingReference", "item": [ { - "name": "Datasets By Filter", + "name": "FundingRefrences By Filter", "event": [ { "listen": "test", "script": { - "id": "34649bd2-34e5-447f-9eb2-ee1b5cd05b07", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15672,13 +25048,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasets", + "raw": "http://{{datagateway-api}}/fundingreferences", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets" + "fundingreferences" ] } }, @@ -15738,12 +25114,11 @@ ] }, { - "name": "Update Datasets", + "name": "Update FundingReferences", "event": [ { "listen": "test", "script": { - "id": "bd7aa45b-99dd-40b3-831c-19062002f432", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15768,7 +25143,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"startDate\": \"2014-06-01 15:00:15\",\r\n \"complete\": true\r\n}", + "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", "options": { "raw": { "language": "json" @@ -15776,13 +25151,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasets", + "raw": "http://{{datagateway-api}}/fundingreferences", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets" + "fundingreferences" ] } }, @@ -15842,12 +25217,11 @@ ] }, { - "name": "Create Datasets", + "name": "Create FundingReferences", "event": [ { "listen": "test", "script": { - "id": "73a23589-5c2e-487d-84f0-e098e8515944", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15873,7 +25247,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Dataset Name1\",\r\n \"location\": \"/root/my/dir\",\r\n \"complete\": true,\r\n \"investigation\": 22,\r\n \"type\": 3,\r\n \"sample\": 5\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"funderIdentifier\": \"gov\",\r\n \"funderName\": \"the government\",\r\n \"awardNumber\": \"3ehe32\",\r\n \"awardTitle\": \"Money for study of...\"\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -15881,25 +25255,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasets", + "raw": "http://{{datagateway-api}}/fundingreferences", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets" + "fundingreferences" ] } }, "response": [] }, { - "name": "Count Datasets", + "name": "Count FundingReferences", "event": [ { "listen": "prerequest", "script": { - "id": "3ac859ec-9c22-4bb6-b944-7efec0a43e85", "exec": [ "" ], @@ -15909,7 +25282,6 @@ { "listen": "test", "script": { - "id": "df748ca9-8cf8-4b7d-a3a4-d4211084841d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15933,13 +25305,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasets/count", + "raw": "http://{{datagateway-api}}/fundingreferences/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets", + "fundingreferences", "count" ], "query": [ @@ -15954,12 +25326,11 @@ "response": [] }, { - "name": "Find One Dataset", + "name": "Find One FundingReference", "event": [ { "listen": "prerequest", "script": { - "id": "f86ec9b4-1e94-46b8-ba78-7b11de9084e3", "exec": [ "" ], @@ -15969,7 +25340,6 @@ { "listen": "test", "script": { - "id": "e89434eb-13d9-48b9-8cfa-1a79a39ec9bf", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -15993,13 +25363,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasets/findone", + "raw": "http://{{datagateway-api}}/fundingreferences/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasets", + "fundingreferences", "findone" ], "query": [ @@ -16033,20 +25403,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DatasetParameter", + "name": "Grouping", "item": [ { - "name": "DatasetParameters By Filter", + "name": "Groupings By Filter", "event": [ { "listen": "test", "script": { - "id": "c3319753-2d17-4c37-b38b-85bb4c40619a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16070,13 +25437,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasetparameters", + "raw": "http://{{datagateway-api}}/groupings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters" + "groupings" ] } }, @@ -16136,12 +25503,11 @@ ] }, { - "name": "Update DatasetParameters", + "name": "Update Groupings", "event": [ { "listen": "test", "script": { - "id": "2f7a01ce-1d55-4e0b-98bb-bd2325e6a702", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16166,7 +25532,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"stringValue\": \"String value for datasetparameter\"\r\n}", + "raw": "{\r\n \"name\": \"Updated Grouping Name\"\r\n}", "options": { "raw": { "language": "json" @@ -16174,13 +25540,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasetparameters", + "raw": "http://{{datagateway-api}}/groupings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters" + "groupings" ] } }, @@ -16240,12 +25606,11 @@ ] }, { - "name": "Create DatasetParameters", + "name": "Create Groupings", "event": [ { "listen": "test", "script": { - "id": "eb863db4-5018-4079-8a7e-d07357cc624b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16271,7 +25636,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"stringValue\": \"value 2\",\r\n \"type\": 2,\r\n \"dataset\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"My New Grouping1\"\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -16279,25 +25644,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasetparameters", + "raw": "http://{{datagateway-api}}/groupings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters" + "groupings" ] } }, "response": [] }, { - "name": "Count DatasetParameters", + "name": "Count Groupings", "event": [ { "listen": "prerequest", "script": { - "id": "a6ca2171-035d-47db-aa4e-842b9b4ec882", "exec": [ "" ], @@ -16307,7 +25671,6 @@ { "listen": "test", "script": { - "id": "6c9cc124-cfb9-4674-8d1f-7de4d8c23f9a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16318,16 +25681,26 @@ } ], "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasetparameters/count", + "raw": "http://{{datagateway-api}}/groupings/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters", + "groupings", "count" ], "query": [ @@ -16342,12 +25715,11 @@ "response": [] }, { - "name": "Find One DatasetParameter", + "name": "Find One Grouping", "event": [ { "listen": "prerequest", "script": { - "id": "9de28764-4168-4af2-9d14-d8a4a4967854", "exec": [ "" ], @@ -16357,7 +25729,6 @@ { "listen": "test", "script": { - "id": "b90c607d-28bb-4829-97f5-d9ea5127acc6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16381,13 +25752,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasetparameters/findone", + "raw": "http://{{datagateway-api}}/groupings/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasetparameters", + "groupings", "findone" ], "query": [ @@ -16421,42 +25792,17 @@ "type": "string" } ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "1651c4b5-6c45-4885-9614-117733a99ceb", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "86e6a349-495e-4d1a-8439-4ff3b3d057e2", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "DatasetType", + "name": "Instrument", "item": [ { - "name": "DatasetTypes By Filter", + "name": "Instruments By Filter", "event": [ { "listen": "test", "script": { - "id": "98c0fee7-2f52-4f64-964a-7c9348c2bd99", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16480,13 +25826,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasettypes", + "raw": "http://{{datagateway-api}}/instruments", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes" + "instruments" ] } }, @@ -16546,12 +25892,11 @@ ] }, { - "name": "Update DatasetTypes", + "name": "Update Instruments", "event": [ { "listen": "test", "script": { - "id": "23a9ac21-4d2b-4e64-b422-fa05f012396d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16576,7 +25921,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"description\": \"New description for a dataset type\" \r\n}", + "raw": "{\r\n \"fullName\": \"Full Name of an instrument\"\r\n}", "options": { "raw": { "language": "json" @@ -16584,13 +25929,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasettypes", + "raw": "http://{{datagateway-api}}/instruments", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes" + "instruments" ] } }, @@ -16650,12 +25995,11 @@ ] }, { - "name": "Create DatasetTypes", + "name": "Create Instruments", "event": [ { "listen": "test", "script": { - "id": "d4e37829-72e4-448f-b842-f1305b5e464d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16681,7 +26025,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Dataset Type\",\r\n \"description\": \"This is a brand new dataset type, state of the art.....\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"My New Scientific Instrumen1t\",\r\n \"url\": \"mynewscientificinstrument.com\",\r\n \"facility\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -16689,25 +26033,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/datasettypes", + "raw": "http://{{datagateway-api}}/instruments", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes" + "instruments" ] } }, "response": [] }, { - "name": "Count DatasetTypes", + "name": "Count Instruments", "event": [ { "listen": "prerequest", "script": { - "id": "14594ed1-4c23-4862-a66e-1e942115c25f", "exec": [ "" ], @@ -16717,7 +26060,6 @@ { "listen": "test", "script": { - "id": "0d364d54-3e6f-4b9d-b563-62f7fe436628", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16728,16 +26070,26 @@ } ], "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasettypes/count", + "raw": "http://{{datagateway-api}}/instruments/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes", + "instruments", "count" ], "query": [ @@ -16752,12 +26104,11 @@ "response": [] }, { - "name": "Find One DatasetType", + "name": "Find One Instrument", "event": [ { "listen": "prerequest", "script": { - "id": "eb1edab1-c94f-4e21-80fe-45c75dd7016e", "exec": [ "" ], @@ -16767,7 +26118,6 @@ { "listen": "test", "script": { - "id": "932ac173-8529-47b1-a085-14f412f67e71", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16778,16 +26128,26 @@ } ], "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/datasettypes/findone", + "raw": "http://{{datagateway-api}}/instruments/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "datasettypes", + "instruments", "findone" ], "query": [ @@ -16821,20 +26181,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Facility", + "name": "InstrumentScientist", "item": [ { - "name": "Facilities By Filter", + "name": "InstrumentScientists By Filter", "event": [ { "listen": "test", "script": { - "id": "d0f882db-712d-4066-a935-ede56ec7d342", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -16858,13 +26215,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilities", + "raw": "http://{{datagateway-api}}/instrumentscientists", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities" + "instrumentscientists" ] } }, @@ -16924,15 +26281,14 @@ ] }, { - "name": "Update Facilities", + "name": "Update InstrumentScientists", "event": [ { "listen": "test", "script": { - "id": "06c1cff9-fc83-4631-97f6-37801f3d5875", "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", "});" ], "type": "text/javascript" @@ -16954,7 +26310,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"daysUntilRelease\": 1825\r\n}", + "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", "options": { "raw": { "language": "json" @@ -16962,13 +26318,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/facilities", + "raw": "http://{{datagateway-api}}/instrumentscientists", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities" + "instrumentscientists" ] } }, @@ -17028,12 +26384,11 @@ ] }, { - "name": "Create Facilities", + "name": "Create InstrumentScientists", "event": [ { "listen": "test", "script": { - "id": "88e632f8-d44f-499f-89f7-e4a24ff9402f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17059,7 +26414,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My Test Facility123\",\r\n \"daysUntilRelease\": 500,\r\n \"fullName\": \"My Development Test Facility\"\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"user\": 456,\r\n \"instrument\": 2\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -17067,25 +26422,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/facilities", + "raw": "http://{{datagateway-api}}/instrumentscientists", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities" + "instrumentscientists" ] } }, "response": [] }, { - "name": "Count Facilities", + "name": "Count InstrumentScientists", "event": [ { "listen": "prerequest", "script": { - "id": "56ec9ad2-36d7-42e5-9b01-19954ee7f222", "exec": [ "" ], @@ -17095,7 +26449,6 @@ { "listen": "test", "script": { - "id": "31d2d349-c37a-474d-a5a8-9235c0839b44", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17119,13 +26472,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilities/count", + "raw": "http://{{datagateway-api}}/instrumentscientists/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities", + "instrumentscientists", "count" ], "query": [ @@ -17140,12 +26493,11 @@ "response": [] }, { - "name": "Find One Facility", + "name": "Find One InstrumentScientist", "event": [ { "listen": "prerequest", "script": { - "id": "c853c212-bebd-4318-8a6c-161fe680f79e", "exec": [ "" ], @@ -17155,7 +26507,6 @@ { "listen": "test", "script": { - "id": "ed9f2f5c-bf98-4006-825e-3ce786371f0b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17179,13 +26530,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilities/findone", + "raw": "http://{{datagateway-api}}/instrumentscientists/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilities", + "instrumentscientists", "findone" ], "query": [ @@ -17219,20 +26570,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "FacilityCycle", + "name": "Investigation", "item": [ { - "name": "FacilityCycles By Filter", + "name": "Investigations By Filter", "event": [ { "listen": "test", "script": { - "id": "feccecb6-36f9-4ebb-832d-4f7aa5424273", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17256,13 +26604,34 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilitycycles", + "raw": "http://{{datagateway-api}}/investigations?where={\"id\": {\"eq\":8}}", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles" + "investigations" + ], + "query": [ + { + "key": "distinct", + "value": "\"ID\"", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"name\", \"title\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"title\": {\"like\":\"dog\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"eq\":8}}" + } ] } }, @@ -17322,12 +26691,11 @@ ] }, { - "name": "Update FacilityCycles", + "name": "Update Investigations", "event": [ { "listen": "test", "script": { - "id": "bc16b278-9bef-4895-974e-762b7f8ad23e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17352,7 +26720,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", + "raw": "{\r\n \"id\": 90,\r\n \"summary\": \"Short summary regarding an investigation.......3.\",\r\n \"releaseDate\": \"2019-03-30 12:45:32\",\r\n \"startDate\": \"2020-05-05 12:24:37\"\r\n}", "options": { "raw": { "language": "json" @@ -17360,13 +26728,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/facilitycycles", + "raw": "http://{{datagateway-api}}/investigations", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles" + "investigations" ] } }, @@ -17426,12 +26794,11 @@ ] }, { - "name": "Create FacilityCycles", + "name": "Create Investigations", "event": [ { "listen": "test", "script": { - "id": "bfcdab26-ac17-46fd-9f29-6ef36345be0e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17457,7 +26824,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Facility Cycle\",\r\n \"startDate\": \"2014-04-05 12:34:56\",\r\n \"facility\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"My New Investigation12\",\r\n \"title\": \"My New Investigation with Title\",\r\n \"summary\": \"Short summary regarding an investigation........\",\r\n \"releaseDate\": \"2019-03-30 12:45:32\",\r\n \"startDate\": \"2020-05-05 12:24:37\",\r\n \"endDate\": \"2020-05-07 23:43:45\",\r\n \"visitId\": \"Visit ID..\",\r\n \"facility\": 2,\r\n \"type\": 2\r\n },\r\n {\r\n \"name\": \"My New Investigation13\",\r\n \"title\": \"My New Investigation with Title\",\r\n \"summary\": \"Short summary regarding an investigation........\",\r\n \"releaseDate\": \"2019-03-30 12:45:32\",\r\n \"startDate\": \"2020-05-05 12:24:37\",\r\n \"endDate\": \"2020-05-07 23:43:45\",\r\n \"visitId\": \"Visit ID..\",\r\n \"facility\": 2,\r\n \"type\": 2\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -17465,25 +26832,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/facilitycycles", + "raw": "http://{{datagateway-api}}/investigations", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles" + "investigations" ] } }, "response": [] }, { - "name": "Count FacilityCycles", + "name": "Count Investigations", "event": [ { "listen": "prerequest", "script": { - "id": "e3c239a4-c35e-4846-a7dc-ad724e7eebbe", "exec": [ "" ], @@ -17493,7 +26859,6 @@ { "listen": "test", "script": { - "id": "6f288156-6450-4462-bc80-7a4fb265c5a6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17517,13 +26882,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilitycycles/count", + "raw": "http://{{datagateway-api}}/investigations/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles", + "investigations", "count" ], "query": [ @@ -17538,12 +26903,11 @@ "response": [] }, { - "name": "Find One FacilityCycles", + "name": "Find One Investigation", "event": [ { "listen": "prerequest", "script": { - "id": "dbd352b2-2b8f-43e9-b43d-da3e7b1317df", "exec": [ "" ], @@ -17553,7 +26917,6 @@ { "listen": "test", "script": { - "id": "cfb3aebf-ea6d-4b64-8c98-631c8a1529b5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17577,13 +26940,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/facilitycycles/findone", + "raw": "http://{{datagateway-api}}/investigations/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "facilitycycles", + "investigations", "findone" ], "query": [ @@ -17617,20 +26980,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Grouping", + "name": "InvestigationGroup", "item": [ { - "name": "Groupings By Filter", + "name": "InvestigationGroups By Filter", "event": [ { "listen": "test", "script": { - "id": "0931dbe5-60d3-4beb-80f6-d25144063b30", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17654,13 +27014,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/groupings", + "raw": "http://{{datagateway-api}}/investigationgroups", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings" + "investigationgroups" ] } }, @@ -17720,12 +27080,11 @@ ] }, { - "name": "Update Groupings", + "name": "Update InvestigationGroups", "event": [ { "listen": "test", "script": { - "id": "d3d211cf-372d-486d-9860-69dbb04f48f5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17750,7 +27109,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Updated Grouping Name\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", "options": { "raw": { "language": "json" @@ -17758,13 +27117,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/groupings", + "raw": "http://{{datagateway-api}}/investigationgroups", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings" + "investigationgroups" ] } }, @@ -17824,12 +27183,11 @@ ] }, { - "name": "Create Groupings", + "name": "Create InvestigationGroups", "event": [ { "listen": "test", "script": { - "id": "93dd7c8c-79b7-4d48-8134-f2b19e93ffeb", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17855,7 +27213,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Grouping1\"\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"role\": \"Position of the members regarding the investigation\",\r\n \"investigation\": 45,\r\n \"grouping\": 8\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -17863,25 +27221,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/groupings", + "raw": "http://{{datagateway-api}}/investigationgroups", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings" + "investigationgroups" ] } }, "response": [] }, { - "name": "Count Groupings", + "name": "Count InvestigationGroups", "event": [ { "listen": "prerequest", "script": { - "id": "1ff6cf75-7de4-4285-98a5-9c06d428ee41", "exec": [ "" ], @@ -17891,7 +27248,6 @@ { "listen": "test", "script": { - "id": "e7a33b89-8c10-483e-92aa-d005cd203a29", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17915,13 +27271,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/groupings/count", + "raw": "http://{{datagateway-api}}/investigationgroups/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings", + "investigationgroups", "count" ], "query": [ @@ -17936,12 +27292,11 @@ "response": [] }, { - "name": "Find One Grouping", + "name": "Find One InvestigationGroup", "event": [ { "listen": "prerequest", "script": { - "id": "db0cd568-a9bb-4de0-9e44-086a3e3a6ae1", "exec": [ "" ], @@ -17951,7 +27306,6 @@ { "listen": "test", "script": { - "id": "bab99e89-4688-442b-98bf-7740baf9efc9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -17975,13 +27329,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/groupings/findone", + "raw": "http://{{datagateway-api}}/investigationgroups/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "groupings", + "investigationgroups", "findone" ], "query": [ @@ -18015,20 +27369,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Instrument", + "name": "InvestigationInstrument", "item": [ { - "name": "Instruments By Filter", + "name": "InvestigationInstruments By Filter", "event": [ { "listen": "test", "script": { - "id": "c9fdd97f-1a9f-45e4-b7c1-eef4a478db50", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18052,13 +27403,31 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instruments", + "raw": "http://{{datagateway-api}}/investigationinstruments?include=\"instrument\"&where={\"instrument.id\": {\"in\": [1, 2, 3, 4, 5]}}&order=\"instrument.id desc\"&order=\"id asc\"", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments" + "investigationinstruments" + ], + "query": [ + { + "key": "include", + "value": "\"instrument\"" + }, + { + "key": "where", + "value": "{\"instrument.id\": {\"in\": [1, 2, 3, 4, 5]}}" + }, + { + "key": "order", + "value": "\"instrument.id desc\"" + }, + { + "key": "order", + "value": "\"id asc\"" + } ] } }, @@ -18118,15 +27487,14 @@ ] }, { - "name": "Update Instruments", + "name": "Update InvestigationInstruments", "event": [ { "listen": "test", "script": { - "id": "dbfcc499-b1ca-4e6b-ae8d-ef7aadc954f3", "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", "});" ], "type": "text/javascript" @@ -18148,7 +27516,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"fullName\": \"Full Name of an instrument\"\r\n}", + "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", "options": { "raw": { "language": "json" @@ -18156,13 +27524,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/instruments", + "raw": "http://{{datagateway-api}}/investigationinstruments", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments" + "investigationinstruments" ] } }, @@ -18222,12 +27590,11 @@ ] }, { - "name": "Create Instruments", + "name": "Create InvestigationInstruments", "event": [ { "listen": "test", "script": { - "id": "84080a3b-e8e8-4ccd-8b4e-2f71989720df", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18253,7 +27620,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Scientific Instrumen1t\",\r\n \"url\": \"mynewscientificinstrument.com\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"investigation\": 5,\r\n \"instrument\": 8\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -18261,25 +27628,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/instruments", + "raw": "http://{{datagateway-api}}/investigationinstruments", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments" + "investigationinstruments" ] } }, "response": [] }, { - "name": "Count Instruments", + "name": "Count InvestigationInstruments", "event": [ { "listen": "prerequest", "script": { - "id": "cbe1e262-59b9-4cd8-bded-c811b2fca209", "exec": [ "" ], @@ -18289,7 +27655,6 @@ { "listen": "test", "script": { - "id": "a74790fd-3f81-46d1-9c5d-f686b7ff0119", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18313,13 +27678,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instruments/count", + "raw": "http://{{datagateway-api}}/investigationinstruments/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments", + "investigationinstruments", "count" ], "query": [ @@ -18334,12 +27699,11 @@ "response": [] }, { - "name": "Find One Instrument", + "name": "Find One InvestigationInstrument", "event": [ { "listen": "prerequest", "script": { - "id": "552d4953-39e4-4cb2-ad14-d3e34b2d7778", "exec": [ "" ], @@ -18349,7 +27713,6 @@ { "listen": "test", "script": { - "id": "bd8c0f70-cfd6-45d2-98f5-73234e9549b8", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18373,13 +27736,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instruments/findone", + "raw": "http://{{datagateway-api}}/investigationinstruments/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instruments", + "investigationinstruments", "findone" ], "query": [ @@ -18413,20 +27776,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InstrumentScientist", + "name": "InvestigationParameter", "item": [ { - "name": "InstrumentScientists By Filter", + "name": "InvestigationParameters By Filter", "event": [ { "listen": "test", "script": { - "id": "15f31813-b46f-4d82-9035-596480e11bf2", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18450,13 +27810,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists", + "raw": "http://{{datagateway-api}}/investigationparameters", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists" + "investigationparameters" ] } }, @@ -18516,15 +27876,14 @@ ] }, { - "name": "Update InstrumentScientists", + "name": "Update InvestigationParameters", "event": [ { "listen": "test", "script": { - "id": "59766661-cb28-4fa8-bbce-981562ef9787", "exec": [ - "pm.test(\"Status: 400\", function () {\r", - " pm.response.to.have.status(400);\r", + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -18546,7 +27905,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", + "raw": "{\r\n \"stringValue\": \"NewStringValue\"\r\n}", "options": { "raw": { "language": "json" @@ -18554,13 +27913,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists", + "raw": "http://{{datagateway-api}}/investigationparameters", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists" + "investigationparameters" ] } }, @@ -18620,12 +27979,11 @@ ] }, { - "name": "Create InstrumentScientists", + "name": "Create InvestigationParameters", "event": [ { "listen": "test", "script": { - "id": "3334156d-0030-4605-9f4c-cc9539c83e93", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18651,7 +28009,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"user\": 456,\r\n \"instrument\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"stringValue\": \"Example string value...\",\r\n \"rangeTop\": 3456.0,\r\n \"rangeBottom\": 4.5,\r\n \"investigation\": 34,\r\n \"type\": 50\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -18659,25 +28017,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists", + "raw": "http://{{datagateway-api}}/investigationparameters", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists" + "investigationparameters" ] } }, "response": [] }, { - "name": "Count InstrumentScientists", + "name": "Count InvestigationParameters", "event": [ { "listen": "prerequest", "script": { - "id": "2b2696d1-075e-4845-b767-254768b49410", "exec": [ "" ], @@ -18687,7 +28044,6 @@ { "listen": "test", "script": { - "id": "ab5be46d-f619-4424-b5d1-bf2654cd8815", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18711,13 +28067,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists/count", + "raw": "http://{{datagateway-api}}/investigationparameters/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists", + "investigationparameters", "count" ], "query": [ @@ -18732,12 +28088,11 @@ "response": [] }, { - "name": "Find One InstrumentScientist", + "name": "Find One InvestigationParameters", "event": [ { "listen": "prerequest", "script": { - "id": "5bef5930-097c-4d00-b5e7-2c8fae8b5842", "exec": [ "" ], @@ -18747,7 +28102,6 @@ { "listen": "test", "script": { - "id": "bc83eabd-fbb8-40a9-b32a-9bb4ac666c0c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18771,13 +28125,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/instrumentscientists/findone", + "raw": "http://{{datagateway-api}}/investigationparameters/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "instrumentscientists", + "investigationparameters", "findone" ], "query": [ @@ -18811,20 +28165,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Investigation", + "name": "InvestigationType", "item": [ { - "name": "Investigations By Filter", + "name": "InvestigationTypes By Filter", "event": [ { "listen": "test", "script": { - "id": "8f77a667-d125-4138-8b26-8b7f1a9fc287", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18848,34 +28199,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigations?where={\"id\": {\"eq\":8}}", + "raw": "http://{{datagateway-api}}/investigationtypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations" - ], - "query": [ - { - "key": "distinct", - "value": "\"ID\"", - "disabled": true - }, - { - "key": "distinct", - "value": "[\"name\", \"title\"]", - "disabled": true - }, - { - "key": "where", - "value": "{\"title\": {\"like\":\"dog\"}}", - "disabled": true - }, - { - "key": "where", - "value": "{\"id\": {\"eq\":8}}" - } + "investigationtypes" ] } }, @@ -18935,12 +28265,11 @@ ] }, { - "name": "Update Investigations", + "name": "Update InvestigationTypes", "event": [ { "listen": "test", "script": { - "id": "55a87c42-e7ea-45a0-90c2-bd82ffae1469", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -18965,7 +28294,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"id\": 90,\r\n \"summary\": \"Short summary regarding an investigation.......3.\",\r\n \"releaseDate\": \"2019-03-30 12:45:32\",\r\n \"startDate\": \"2020-05-05 12:24:37\"\r\n}", + "raw": "{\r\n \"name\": \"Name of investigation type\",\r\n \"description\": \"description of investigation type\"\r\n}", "options": { "raw": { "language": "json" @@ -18973,13 +28302,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigations", + "raw": "http://{{datagateway-api}}/investigationtypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations" + "investigationtypes" ] } }, @@ -19039,12 +28368,11 @@ ] }, { - "name": "Create Investigations", + "name": "Create InvestigationTypes", "event": [ { "listen": "test", "script": { - "id": "be26e821-f74f-49af-adb5-ae098a60a0de", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19070,7 +28398,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"My New Investigation12\",\r\n \"title\": \"My New Investigation with Title\",\r\n \"summary\": \"Short summary regarding an investigation........\",\r\n \"releaseDate\": \"2019-03-30 12:45:32\",\r\n \"startDate\": \"2020-05-05 12:24:37\",\r\n \"endDate\": \"2020-05-07 23:43:45\",\r\n \"visitId\": \"Visit ID..\",\r\n \"facility\": 2,\r\n \"type\": 2\r\n },\r\n {\r\n \"name\": \"My New Investigation13\",\r\n \"title\": \"My New Investigation with Title\",\r\n \"summary\": \"Short summary regarding an investigation........\",\r\n \"releaseDate\": \"2019-03-30 12:45:32\",\r\n \"startDate\": \"2020-05-05 12:24:37\",\r\n \"endDate\": \"2020-05-07 23:43:45\",\r\n \"visitId\": \"Visit ID..\",\r\n \"facility\": 2,\r\n \"type\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Example Investigation Typ1e\",\r\n \"facility\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -19078,25 +28406,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigations", + "raw": "http://{{datagateway-api}}/investigationtypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations" + "investigationtypes" ] } }, "response": [] }, { - "name": "Count Investigations", + "name": "Count InvestigationTypes", "event": [ { "listen": "prerequest", "script": { - "id": "65f4c99e-504a-4cd1-a346-de90bbcee3b5", "exec": [ "" ], @@ -19106,7 +28433,6 @@ { "listen": "test", "script": { - "id": "890cfd70-053a-4a5f-8e3b-255b6e445c7b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19130,13 +28456,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigations/count", + "raw": "http://{{datagateway-api}}/investigationtypes/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations", + "investigationtypes", "count" ], "query": [ @@ -19151,12 +28477,11 @@ "response": [] }, { - "name": "Find One Investigation", + "name": "Find One InvestigationType", "event": [ { "listen": "prerequest", "script": { - "id": "9f1fae33-748a-4ab7-bce7-633b40d3ef14", "exec": [ "" ], @@ -19166,7 +28491,6 @@ { "listen": "test", "script": { - "id": "50535c60-8135-49ab-9db5-1461baa8d491", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19190,13 +28514,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigations/findone", + "raw": "http://{{datagateway-api}}/investigationtypes/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigations", + "investigationtypes", "findone" ], "query": [ @@ -19230,20 +28554,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationGroup", + "name": "InvestigationUser", "item": [ { - "name": "InvestigationGroups By Filter", + "name": "InvestigationUsers By Filter", "event": [ { "listen": "test", "script": { - "id": "d1709638-7e2d-40de-9fd0-1f2f32d77b8c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19267,13 +28588,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationgroups", + "raw": "http://{{datagateway-api}}/investigationusers", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups" + "investigationusers" ] } }, @@ -19333,12 +28654,11 @@ ] }, { - "name": "Update InvestigationGroups", + "name": "Update InvestigationUsers", "event": [ { "listen": "test", "script": { - "id": "d8ede072-7d3d-45ef-b3bb-e5c60f66ee67", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19363,7 +28683,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", "options": { "raw": { "language": "json" @@ -19371,13 +28691,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationgroups", + "raw": "http://{{datagateway-api}}/investigationusers", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups" + "investigationusers" ] } }, @@ -19437,12 +28757,11 @@ ] }, { - "name": "Create InvestigationGroups", + "name": "Create InvestigationUsers", "event": [ { "listen": "test", "script": { - "id": "6e2abee4-9d41-4472-9626-e4ed3db715a6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19468,7 +28787,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"role\": \"Position of the members regarding the investigation\",\r\n \"investigation\": 45,\r\n \"grouping\": 8\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"role\": \"Role of an investigation user...1\",\r\n \"investigation\": 1,\r\n \"user\": 40\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -19476,25 +28795,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationgroups", + "raw": "http://{{datagateway-api}}/investigationusers", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups" + "investigationusers" ] } }, "response": [] }, { - "name": "Count InvestigationGroups", + "name": "Count InvestigationUsers", "event": [ { "listen": "prerequest", "script": { - "id": "d3ccbd59-e9e1-48a4-833e-3304830d0b2c", "exec": [ "" ], @@ -19504,7 +28822,6 @@ { "listen": "test", "script": { - "id": "e50bd595-018c-4dc4-bd97-ef88921907aa", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19528,13 +28845,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationgroups/count", + "raw": "http://{{datagateway-api}}/investigationusers/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups", + "investigationusers", "count" ], "query": [ @@ -19549,12 +28866,11 @@ "response": [] }, { - "name": "Find One InvestigationGroup", + "name": "Find One InvestigationUser", "event": [ { "listen": "prerequest", "script": { - "id": "9b48f880-8201-4edc-8378-d333c64434f4", "exec": [ "" ], @@ -19564,7 +28880,6 @@ { "listen": "test", "script": { - "id": "e046f4fe-373b-40c2-85d4-17cefaba2c68", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19588,13 +28903,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationgroups/findone", + "raw": "http://{{datagateway-api}}/investigationusers/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationgroups", + "investigationusers", "findone" ], "query": [ @@ -19628,20 +28943,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationInstrument", + "name": "InvestigationFacilityCycle", "item": [ { - "name": "InvestigationInstruments By Filter", + "name": "InvestigationFacilityCycles By Filter", "event": [ { "listen": "test", "script": { - "id": "f6ec0626-8ec4-4c4a-8480-9200d03c530a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19665,31 +28977,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments?include=\"instrument\"&where={\"instrument.id\": {\"in\": [1, 2, 3, 4, 5]}}&order=\"instrument.id desc\"&order=\"id asc\"", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments" - ], - "query": [ - { - "key": "include", - "value": "\"instrument\"" - }, - { - "key": "where", - "value": "{\"instrument.id\": {\"in\": [1, 2, 3, 4, 5]}}" - }, - { - "key": "order", - "value": "\"instrument.id desc\"" - }, - { - "key": "order", - "value": "\"id asc\"" - } + "investigationfacilitycycles" ] } }, @@ -19749,15 +29043,14 @@ ] }, { - "name": "Update InvestigationInstruments", + "name": "Update InvestigationFacilityCycles", "event": [ { "listen": "test", "script": { - "id": "9ed2c15a-98ed-4ea3-a601-2726c90c49e9", "exec": [ - "pm.test(\"Status: 400\", function () {\r", - " pm.response.to.have.status(400);\r", + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -19779,7 +29072,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", "options": { "raw": { "language": "json" @@ -19787,13 +29080,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments" + "investigationfacilitycycles" ] } }, @@ -19853,12 +29146,11 @@ ] }, { - "name": "Create InvestigationInstruments", + "name": "Create InvestigationFacilityCycles", "event": [ { "listen": "test", "script": { - "id": "8e78eabf-9f8b-4f02-8ec7-9c7120900423", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19884,7 +29176,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"investigation\": 5,\r\n \"instrument\": 8\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"investigation\": 1,\r\n \"facilityCycle\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -19892,25 +29184,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments" + "investigationfacilitycycles" ] } }, "response": [] }, { - "name": "Count InvestigationInstruments", + "name": "Count InvestigationFacilityCycles", "event": [ { "listen": "prerequest", "script": { - "id": "cec4ed3c-8ab4-4b14-8c30-34c0bcd1beea", "exec": [ "" ], @@ -19920,7 +29211,6 @@ { "listen": "test", "script": { - "id": "0207b662-8bff-4e05-b98b-7631030cb0d0", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -19944,13 +29234,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments/count", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments", + "investigationfacilitycycles", "count" ], "query": [ @@ -19965,12 +29255,11 @@ "response": [] }, { - "name": "Find One InvestigationInstrument", + "name": "Find One InvestigationFacilityCycle", "event": [ { "listen": "prerequest", "script": { - "id": "84c29ef9-a24c-4868-a19e-fdcbcaabf15f", "exec": [ "" ], @@ -19980,7 +29269,6 @@ { "listen": "test", "script": { - "id": "93475fa0-5a44-4d85-af13-2eca93b008d3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20004,13 +29292,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationinstruments/findone", + "raw": "http://{{datagateway-api}}/investigationfacilitycycles/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationinstruments", + "investigationfacilitycycles", "findone" ], "query": [ @@ -20026,7 +29314,12 @@ }, { "key": "include", - "value": "\"investigationUsers\"", + "value": "\"investigation\"", + "disabled": true + }, + { + "key": "include", + "value": "\"facilityCycle\"", "disabled": true } ] @@ -20044,20 +29337,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationParameter", + "name": "InvestigationFunding", "item": [ { - "name": "InvestigationParameters By Filter", + "name": "InvestigationFundings By Filter", "event": [ { "listen": "test", "script": { - "id": "88628cf0-cafc-44bd-888f-da73ffc2207a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20081,13 +29371,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationparameters", + "raw": "http://{{datagateway-api}}/investigationfundings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters" + "investigationfundings" ] } }, @@ -20147,12 +29437,11 @@ ] }, { - "name": "Update InvestigationParameters", + "name": "Update InvestigationFundings", "event": [ { "listen": "test", "script": { - "id": "aef4addf-40bd-4aa9-bba4-f903961cf8cf", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20177,7 +29466,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"stringValue\": \"NewStringValue\"\r\n}", + "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", "options": { "raw": { "language": "json" @@ -20185,13 +29474,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationparameters", + "raw": "http://{{datagateway-api}}/investigationfundings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters" + "investigationfundings" ] } }, @@ -20251,12 +29540,11 @@ ] }, { - "name": "Create InvestigationParameters", + "name": "Create InvestigationFundings", "event": [ { "listen": "test", "script": { - "id": "0fb46ae3-3d0e-4e31-82fe-de15f03c587d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20282,7 +29570,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"stringValue\": \"Example string value...\",\r\n \"rangeTop\": 3456.0,\r\n \"rangeBottom\": 4.5,\r\n \"investigation\": 34,\r\n \"type\": 50\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"investigation\": 1,\r\n \"funding\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -20290,25 +29578,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationparameters", + "raw": "http://{{datagateway-api}}/investigationfundings", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters" + "investigationfundings" ] } }, "response": [] }, { - "name": "Count InvestigationParameters", + "name": "Count InvestigationFundings", "event": [ { "listen": "prerequest", "script": { - "id": "4f0ca397-4bfd-4fea-ad5f-40500b851c59", "exec": [ "" ], @@ -20318,7 +29605,6 @@ { "listen": "test", "script": { - "id": "c2f8de5a-f663-475a-bb04-4db7f16ae841", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20342,13 +29628,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationparameters/count", + "raw": "http://{{datagateway-api}}/investigationfundings/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters", + "investigationfundings", "count" ], "query": [ @@ -20363,12 +29649,11 @@ "response": [] }, { - "name": "Find One InvestigationParameters", + "name": "Find One InvestigationFunding", "event": [ { "listen": "prerequest", "script": { - "id": "44f770bd-d302-4050-9952-e11f2a1b4a09", "exec": [ "" ], @@ -20378,7 +29663,6 @@ { "listen": "test", "script": { - "id": "a80bcf71-b092-4dc1-870d-bc21edc4b312", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20402,13 +29686,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationparameters/findone", + "raw": "http://{{datagateway-api}}/investigationfundings/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationparameters", + "investigationfundings", "findone" ], "query": [ @@ -20424,7 +29708,12 @@ }, { "key": "include", - "value": "\"investigationUsers\"", + "value": "\"investigation\"", + "disabled": true + }, + { + "key": "include", + "value": "\"funding\"", "disabled": true } ] @@ -20442,20 +29731,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationType", + "name": "Job", "item": [ { - "name": "InvestigationTypes By Filter", + "name": "Jobs By Filter", "event": [ { "listen": "test", "script": { - "id": "d8463105-a70d-46e3-bbc4-45d864389674", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20479,13 +29765,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationtypes", + "raw": "http://{{datagateway-api}}/jobs", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes" + "jobs" ] } }, @@ -20545,12 +29831,11 @@ ] }, { - "name": "Update InvestigationTypes", + "name": "Update Jobs", "event": [ { "listen": "test", "script": { - "id": "075ca318-7cd3-4e50-9fe1-9ae46088cedf", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20575,7 +29860,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Name of investigation type\",\r\n \"description\": \"description of investigation type\"\r\n}", + "raw": "{\r\n \"arguments\": \"String arguments updated...\"\r\n}", "options": { "raw": { "language": "json" @@ -20583,13 +29868,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationtypes", + "raw": "http://{{datagateway-api}}/jobs", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes" + "jobs" ] } }, @@ -20649,12 +29934,11 @@ ] }, { - "name": "Create InvestigationTypes", + "name": "Create Jobs", "event": [ { "listen": "test", "script": { - "id": "45019517-71ea-4b7d-b291-6d6a4dffe893", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20680,7 +29964,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Example Investigation Typ1e\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"arguments\": \"Many, many arguments...\",\r\n \"application\": 2,\r\n \"inputDataCollection\": 4,\r\n \"outputDataCollection\": 10\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -20688,25 +29972,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationtypes", + "raw": "http://{{datagateway-api}}/jobs", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes" + "jobs" ] } }, "response": [] }, { - "name": "Count InvestigationTypes", + "name": "Count Jobs", "event": [ { "listen": "prerequest", "script": { - "id": "56a74ba6-c593-4b74-b990-1f74007302b2", "exec": [ "" ], @@ -20716,7 +29999,6 @@ { "listen": "test", "script": { - "id": "064c4a9a-33c8-4b69-952c-90590ceb6eb3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20740,13 +30022,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationtypes/count", + "raw": "http://{{datagateway-api}}/jobs/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes", + "jobs", "count" ], "query": [ @@ -20761,12 +30043,11 @@ "response": [] }, { - "name": "Find One InvestigationType", + "name": "Find One Job", "event": [ { "listen": "prerequest", "script": { - "id": "644ba2d0-41ea-49ae-aaa5-a56f6eef3b1d", "exec": [ "" ], @@ -20776,7 +30057,6 @@ { "listen": "test", "script": { - "id": "b60a2073-221e-450a-abfd-b1b8f5492528", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20800,13 +30080,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationtypes/findone", + "raw": "http://{{datagateway-api}}/jobs/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationtypes", + "jobs", "findone" ], "query": [ @@ -20840,23 +30120,20 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "InvestigationUser", + "name": "Keyword", "item": [ { - "name": "InvestigationUsers By Filter", + "name": "Keywords By Filter", "event": [ { "listen": "test", "script": { - "id": "a8d2dacc-3201-49d0-90b0-f931a8e2568e", "exec": [ "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", + " pm.response.to.have.status(500);\r", "});" ], "type": "text/javascript" @@ -20877,13 +30154,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationusers", + "raw": "http://{{datagateway-api}}/keywords", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers" + "keywords" ] } }, @@ -20943,12 +30220,11 @@ ] }, { - "name": "Update InvestigationUsers", + "name": "Update Keywords", "event": [ { "listen": "test", "script": { - "id": "2500f7af-916a-46d6-b67f-677ff4fc1b29", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -20973,7 +30249,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", + "raw": "{\r\n \"name\": \"Name of keyword updated.\"\r\n}", "options": { "raw": { "language": "json" @@ -20981,13 +30257,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationusers", + "raw": "http://{{datagateway-api}}/keywords", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers" + "keywords" ] } }, @@ -21047,12 +30323,11 @@ ] }, { - "name": "Create InvestigationUsers", + "name": "Create Keywords", "event": [ { "listen": "test", "script": { - "id": "0e27907d-6a55-4179-8371-b8095685fb5e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21078,7 +30353,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"role\": \"Role of an investigation user...1\",\r\n \"investigation\": 1,\r\n \"user\": 40\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Example Keyword..\",\r\n \"investigation\": 6\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -21086,25 +30361,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/investigationusers", + "raw": "http://{{datagateway-api}}/keywords", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers" + "keywords" ] } }, "response": [] }, { - "name": "Count InvestigationUsers", + "name": "Count Keywords", "event": [ { "listen": "prerequest", "script": { - "id": "aafd5aa6-6de2-457c-8577-a1ea544c35d0", "exec": [ "" ], @@ -21114,7 +30388,6 @@ { "listen": "test", "script": { - "id": "4f16bbf0-4e34-4ea9-94eb-c3b1c332264e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21138,13 +30411,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationusers/count", + "raw": "http://{{datagateway-api}}/keywords/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers", + "keywords", "count" ], "query": [ @@ -21159,12 +30432,11 @@ "response": [] }, { - "name": "Find One InvestigationUser", + "name": "Find One Keyword", "event": [ { "listen": "prerequest", "script": { - "id": "80e734d1-1ab4-40bf-b187-ee9634eb220b", "exec": [ "" ], @@ -21174,7 +30446,6 @@ { "listen": "test", "script": { - "id": "07b83945-196e-4387-8d45-44f32b0c2cda", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21198,13 +30469,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/investigationusers/findone", + "raw": "http://{{datagateway-api}}/keywords/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "investigationusers", + "keywords", "findone" ], "query": [ @@ -21238,20 +30509,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Job", + "name": "ParameterType", "item": [ { - "name": "Jobs By Filter", + "name": "ParameterTypes By Filter", "event": [ { "listen": "test", "script": { - "id": "c309e263-1d7c-4a37-9ea2-d3ebd4249b1b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21275,13 +30543,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/jobs", + "raw": "http://{{datagateway-api}}/parametertypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs" + "parametertypes" ] } }, @@ -21341,12 +30609,11 @@ ] }, { - "name": "Update Jobs", + "name": "Update ParameterTypes", "event": [ { "listen": "test", "script": { - "id": "dc1a4521-d827-4a21-b868-a918c18db51a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21371,7 +30638,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"arguments\": \"String arguments updated...\"\r\n}", + "raw": "{\r\n \"valueType\": \"STRING\"\r\n}", "options": { "raw": { "language": "json" @@ -21379,13 +30646,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/jobs", + "raw": "http://{{datagateway-api}}/parametertypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs" + "parametertypes" ] } }, @@ -21445,12 +30712,11 @@ ] }, { - "name": "Create Jobs", + "name": "Create ParameterTypes", "event": [ { "listen": "test", "script": { - "id": "f28e5c33-0906-411e-928e-026f2677e941", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21476,7 +30742,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"arguments\": \"Many, many arguments...\",\r\n \"application\": 2,\r\n \"inputDataCollection\": 4,\r\n \"outputDataCollection\": 10\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Example Parameter Type...\",\r\n \"units\": \"Parameter type units\",\r\n \"valueType\": \"STRING\",\r\n \"applicableToDataset\": true,\r\n \"applicableToInvestigation\": true,\r\n \"facility\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -21484,25 +30750,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/jobs", + "raw": "http://{{datagateway-api}}/parametertypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs" + "parametertypes" ] } }, "response": [] }, { - "name": "Count Jobs", + "name": "Count ParameterTypes", "event": [ { "listen": "prerequest", "script": { - "id": "9a96fab9-c3d8-4ae1-a794-19ffb6a3d90d", "exec": [ "" ], @@ -21512,7 +30777,6 @@ { "listen": "test", "script": { - "id": "3a9019cd-72ab-4250-a05f-868b47d01005", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21536,13 +30800,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/jobs/count", + "raw": "http://{{datagateway-api}}/parametertypes/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs", + "parametertypes", "count" ], "query": [ @@ -21557,12 +30821,11 @@ "response": [] }, { - "name": "Find One Job", + "name": "Find One ParameterType", "event": [ { "listen": "prerequest", "script": { - "id": "c07c028f-491d-4564-9e25-547a1ec41791", "exec": [ "" ], @@ -21572,7 +30835,6 @@ { "listen": "test", "script": { - "id": "09106705-2d80-4449-851d-05d0e3f077e0", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21596,13 +30858,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/jobs/findone", + "raw": "http://{{datagateway-api}}/parametertypes/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "jobs", + "parametertypes", "findone" ], "query": [ @@ -21636,23 +30898,20 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Keyword", + "name": "PermissibleStringValue", "item": [ { - "name": "Keywords By Filter", + "name": "PermissibleStringValues By Filter", "event": [ { "listen": "test", "script": { - "id": "caa34ea8-fb08-4735-a203-ada485857226", "exec": [ "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(500);\r", + " pm.response.to.have.status(200);\r", "});" ], "type": "text/javascript" @@ -21673,13 +30932,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/keywords", + "raw": "http://{{datagateway-api}}/permissiblestringvalues", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords" + "permissiblestringvalues" ] } }, @@ -21739,12 +30998,11 @@ ] }, { - "name": "Update Keywords", + "name": "Update PermissibleStringValues", "event": [ { "listen": "test", "script": { - "id": "4bcb28d4-4102-46b0-9c40-e22d39718e11", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21769,7 +31027,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Name of keyword updated.\"\r\n}", + "raw": "{\r\n \"value\": \"VALUE OF PERMISSIBLESTRINGVALUE\"\r\n}", "options": { "raw": { "language": "json" @@ -21777,13 +31035,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/keywords", + "raw": "http://{{datagateway-api}}/permissiblestringvalues", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords" + "permissiblestringvalues" ] } }, @@ -21843,12 +31101,11 @@ ] }, { - "name": "Create Keywords", + "name": "Create PermissibleStringValues", "event": [ { "listen": "test", "script": { - "id": "efd396d2-dd5d-48c0-a1f3-8226b0cbd3b7", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21874,7 +31131,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Example Keyword..\",\r\n \"investigation\": 6\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"value\": \"Value of string1\",\r\n \"type\": 4\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -21882,25 +31139,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/keywords", + "raw": "http://{{datagateway-api}}/permissiblestringvalues", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords" + "permissiblestringvalues" ] } }, "response": [] }, { - "name": "Count Keywords", + "name": "Count PermissibleStringValues", "event": [ { "listen": "prerequest", "script": { - "id": "1d4b438e-a9d9-4f49-869f-50b8c8e536bc", "exec": [ "" ], @@ -21910,7 +31166,6 @@ { "listen": "test", "script": { - "id": "fa53a464-7c5d-4816-9771-305e9ac74b8c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21934,13 +31189,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/keywords/count", + "raw": "http://{{datagateway-api}}/permissiblestringvalues/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords", + "permissiblestringvalues", "count" ], "query": [ @@ -21955,12 +31210,11 @@ "response": [] }, { - "name": "Find One Keyword", + "name": "Find One PermissibleStringValue", "event": [ { "listen": "prerequest", "script": { - "id": "baae86eb-4eac-47b3-8ec4-2a93fa2ab308", "exec": [ "" ], @@ -21970,7 +31224,6 @@ { "listen": "test", "script": { - "id": "c262f1ee-f39f-4e6e-9d92-67d77bfc4af5", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -21994,13 +31247,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/keywords/findone", + "raw": "http://{{datagateway-api}}/permissiblestringvalues/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "keywords", + "permissiblestringvalues", "findone" ], "query": [ @@ -22034,20 +31287,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "ParameterType", + "name": "PublicStep", "item": [ { - "name": "ParameterTypes By Filter", + "name": "PublicSteps By Filter", "event": [ { "listen": "test", "script": { - "id": "031836d5-a7c5-4584-a793-a0891e028d5c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22071,13 +31321,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/parametertypes", + "raw": "http://{{datagateway-api}}/publicsteps", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes" + "publicsteps" ] } }, @@ -22137,12 +31387,11 @@ ] }, { - "name": "Update ParameterTypes", + "name": "Update PublicSteps", "event": [ { "listen": "test", "script": { - "id": "36f6e0ba-e709-40e9-97c1-4049d9245fd9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22167,7 +31416,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"valueType\": \"STRING\"\r\n}", + "raw": "{\r\n \"field\": \"Field no more than 32 characters attempt....\"\r\n}", "options": { "raw": { "language": "json" @@ -22175,13 +31424,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/parametertypes", + "raw": "http://{{datagateway-api}}/publicsteps", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes" + "publicsteps" ] } }, @@ -22241,12 +31490,11 @@ ] }, { - "name": "Create ParameterTypes", + "name": "Create PublicSteps", "event": [ { "listen": "test", "script": { - "id": "1d993a30-7dce-41f4-9850-60265ed2f01a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22272,7 +31520,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Example Parameter Type...\",\r\n \"units\": \"Parameter type units\",\r\n \"valueType\": \"STRING\",\r\n \"applicableToDataset\": true,\r\n \"applicableToInvestigation\": true,\r\n \"facility\": 1\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"field\": \"grouping\",\r\n \"origin\": \"Rule\"\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -22280,25 +31528,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/parametertypes", + "raw": "http://{{datagateway-api}}/publicsteps", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes" + "publicsteps" ] } }, "response": [] }, { - "name": "Count ParameterTypes", + "name": "Count PublicSteps", "event": [ { "listen": "prerequest", "script": { - "id": "a8325b67-1164-40bb-b82d-8206de04090d", "exec": [ "" ], @@ -22308,7 +31555,6 @@ { "listen": "test", "script": { - "id": "96dd2e56-ec2a-41d3-8599-ab82ef5e55c9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22332,13 +31578,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/parametertypes/count", + "raw": "http://{{datagateway-api}}/publicsteps/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes", + "publicsteps", "count" ], "query": [ @@ -22353,12 +31599,11 @@ "response": [] }, { - "name": "Find One ParameterType", + "name": "Find One PublicSteps", "event": [ { "listen": "prerequest", "script": { - "id": "3ee2e4d8-cfae-4199-af38-80f9e428b2e3", "exec": [ "" ], @@ -22368,7 +31613,6 @@ { "listen": "test", "script": { - "id": "823dfd77-8a1a-489c-825e-48d386f21cc9", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22392,13 +31636,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/parametertypes/findone", + "raw": "http://{{datagateway-api}}/publicsteps/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "parametertypes", + "publicsteps", "findone" ], "query": [ @@ -22432,20 +31676,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "PermissibleStringValue", + "name": "Publication", "item": [ { - "name": "PermissibleStringValues By Filter", + "name": "Publications By Filter", "event": [ { "listen": "test", "script": { - "id": "6887d421-e0cf-4a68-a06e-81a160f325b4", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22469,13 +31710,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues", + "raw": "http://{{datagateway-api}}/publications", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues" + "publications" ] } }, @@ -22535,12 +31776,11 @@ ] }, { - "name": "Update PermissibleStringValues", + "name": "Update Publications", "event": [ { "listen": "test", "script": { - "id": "f321d099-37a7-4c7f-9b23-83361eeca6d3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22565,7 +31805,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"value\": \"VALUE OF PERMISSIBLESTRINGVALUE\"\r\n}", + "raw": "{\r\n \"repositoryId\": \"Repo ID string of the publication\"\r\n}", "options": { "raw": { "language": "json" @@ -22573,13 +31813,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues", + "raw": "http://{{datagateway-api}}/publications", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues" + "publications" ] } }, @@ -22639,12 +31879,11 @@ ] }, { - "name": "Create PermissibleStringValues", + "name": "Create Publications", "event": [ { "listen": "test", "script": { - "id": "be6803ab-5dc8-4b97-8cb5-4d2eefe13111", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22670,7 +31909,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"value\": \"Value of string1\",\r\n \"type\": 4\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"doi\": \"Example DOI\",\r\n \"url\": \"Publication URL\",\r\n \"fullReference\": \"Full entire reference of a publication...\",\r\n \"investigation\": 5\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -22678,25 +31917,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues", + "raw": "http://{{datagateway-api}}/publications", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues" + "publications" ] } }, "response": [] }, { - "name": "Count PermissibleStringValues", + "name": "Count Publications", "event": [ { "listen": "prerequest", "script": { - "id": "c8ceb3f3-22cb-4146-b4a2-96ff9ff19c0a", "exec": [ "" ], @@ -22706,7 +31944,6 @@ { "listen": "test", "script": { - "id": "85138f10-9216-4f15-91b8-1b6d7f898066", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22730,13 +31967,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues/count", + "raw": "http://{{datagateway-api}}/publications/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues", + "publications", "count" ], "query": [ @@ -22751,12 +31988,11 @@ "response": [] }, { - "name": "Find One PermissibleStringValue", + "name": "Find One Publication", "event": [ { "listen": "prerequest", "script": { - "id": "9a278807-64b8-43e8-a5c3-2778f4f83205", "exec": [ "" ], @@ -22766,7 +32002,6 @@ { "listen": "test", "script": { - "id": "ea5b1921-09f7-47bf-b997-3bba107c899a", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22790,13 +32025,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/permissiblestringvalues/findone", + "raw": "http://{{datagateway-api}}/publications/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "permissiblestringvalues", + "publications", "findone" ], "query": [ @@ -22830,20 +32065,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "PublicStep", + "name": "RelatedDatafile", "item": [ { - "name": "PublicSteps By Filter", + "name": "RelatedDatafiles By Filter", "event": [ { "listen": "test", "script": { - "id": "7f0e6dfa-76da-4823-b755-48ea2f2cfd6e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22867,13 +32099,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publicsteps", + "raw": "http://{{datagateway-api}}/relateddatafiles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps" + "relateddatafiles" ] } }, @@ -22933,12 +32165,11 @@ ] }, { - "name": "Update PublicSteps", + "name": "Update RelatedDatafiles", "event": [ { "listen": "test", "script": { - "id": "4b5f25c7-9d66-4649-8276-6f38aec93613", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -22963,7 +32194,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"field\": \"Field no more than 32 characters attempt....\"\r\n}", + "raw": "{\r\n \"relation\": \"COPY\"\r\n}", "options": { "raw": { "language": "json" @@ -22971,13 +32202,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/publicsteps", + "raw": "http://{{datagateway-api}}/relateddatafiles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps" + "relateddatafiles" ] } }, @@ -23037,12 +32268,11 @@ ] }, { - "name": "Create PublicSteps", + "name": "Create RelatedDatafiles", "event": [ { "listen": "test", "script": { - "id": "fbe69fe1-8edd-4cce-81ce-164932a12d46", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23068,7 +32298,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"field\": \"grouping\",\r\n \"origin\": \"Rule\"\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"relation\": \"COPY\",\r\n \"sourceDatafile\": 5,\r\n \"destDatafile\": 7\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -23076,25 +32306,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/publicsteps", + "raw": "http://{{datagateway-api}}/relateddatafiles", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps" + "relateddatafiles" ] } }, "response": [] }, { - "name": "Count PublicSteps", + "name": "Count RelatedDatafiles", "event": [ { "listen": "prerequest", "script": { - "id": "e6ed4bb8-8174-40b7-b4e6-7f1b1577b4c0", "exec": [ "" ], @@ -23104,7 +32333,6 @@ { "listen": "test", "script": { - "id": "46e8d9c7-eed0-4a22-a528-4288d9fbde9f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23128,13 +32356,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publicsteps/count", + "raw": "http://{{datagateway-api}}/relateddatafiles/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps", + "relateddatafiles", "count" ], "query": [ @@ -23149,12 +32377,11 @@ "response": [] }, { - "name": "Find One PublicSteps", + "name": "Find One RelatedDatafiles", "event": [ { "listen": "prerequest", "script": { - "id": "6c230821-c37d-437d-9ceb-dc0fe6957ef0", "exec": [ "" ], @@ -23164,7 +32391,6 @@ { "listen": "test", "script": { - "id": "e6522e4e-087f-486d-aeee-8d32652a2f28", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23188,13 +32414,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publicsteps/findone", + "raw": "http://{{datagateway-api}}/relateddatafiles/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publicsteps", + "relateddatafiles", "findone" ], "query": [ @@ -23228,20 +32454,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Publication", + "name": "RelatedItem", "item": [ { - "name": "Publications By Filter", + "name": "RelatedItems By Filter", "event": [ { "listen": "test", "script": { - "id": "1f198b07-7690-4c9f-b92b-ba9c93e8e2d6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23265,13 +32488,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publications", + "raw": "http://{{datagateway-api}}/relateditems", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications" + "relateditems" ] } }, @@ -23331,12 +32554,11 @@ ] }, { - "name": "Update Publications", + "name": "Update RelatedItems", "event": [ { "listen": "test", "script": { - "id": "553a8050-fb86-47a8-8f93-37a907a02738", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23361,7 +32583,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"repositoryId\": \"Repo ID string of the publication\"\r\n}", + "raw": "{\r\n \"relation\": \"COPY\"\r\n}", "options": { "raw": { "language": "json" @@ -23369,13 +32591,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/publications", + "raw": "http://{{datagateway-api}}/relateditems", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications" + "relateditems" ] } }, @@ -23435,12 +32657,11 @@ ] }, { - "name": "Create Publications", + "name": "Create RelatedItems", "event": [ { "listen": "test", "script": { - "id": "d8d0a1f9-a868-4f4f-8e3d-e8e96fa1458f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23466,7 +32687,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"doi\": \"Example DOI\",\r\n \"url\": \"Publication URL\",\r\n \"fullReference\": \"Full entire reference of a publication...\",\r\n \"investigation\": 5\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"relationType\": \"COPY\",\r\n \"identifier\": \"id23\",\r\n \"fullReference\": \"A related publication\",\r\n \"relatedItemType\": \"Journal\",\r\n \"title\": \"An interesting journal article\",\r\n \"publication\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -23474,25 +32695,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/publications", + "raw": "http://{{datagateway-api}}/relateditems", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications" + "relateditems" ] } }, "response": [] }, { - "name": "Count Publications", + "name": "Count RelatedItems", "event": [ { "listen": "prerequest", "script": { - "id": "93dcad6a-a2d5-4659-9af3-a015aede8ff6", "exec": [ "" ], @@ -23502,7 +32722,6 @@ { "listen": "test", "script": { - "id": "db492e68-47d3-47da-9d38-58972d179eed", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23526,13 +32745,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publications/count", + "raw": "http://{{datagateway-api}}/relateditems/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications", + "relateditems", "count" ], "query": [ @@ -23547,12 +32766,11 @@ "response": [] }, { - "name": "Find One Publication", + "name": "Find One RelatedItems", "event": [ { "listen": "prerequest", "script": { - "id": "39fae62f-ad7c-410d-8ea6-6423ac1680fa", "exec": [ "" ], @@ -23562,7 +32780,6 @@ { "listen": "test", "script": { - "id": "8162ac12-f1d6-4c90-b6b7-5f8982d2c1a0", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23586,13 +32803,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/publications/findone", + "raw": "http://{{datagateway-api}}/relateditems/findone?include=\"publication\"", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "publications", + "relateditems", "findone" ], "query": [ @@ -23608,8 +32825,7 @@ }, { "key": "include", - "value": "\"investigationUsers\"", - "disabled": true + "value": "\"publication\"" } ] } @@ -23626,20 +32842,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "RelatedDatafile", + "name": "Rule", "item": [ { - "name": "RelatedDatafiles By Filter", + "name": "Rules By Filter", "event": [ { "listen": "test", "script": { - "id": "6e07e266-d803-4b69-913b-13ab3256ebb4", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23663,13 +32876,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles", + "raw": "http://{{datagateway-api}}/rules", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles" + "rules" ] } }, @@ -23729,12 +32942,11 @@ ] }, { - "name": "Update RelatedDatafiles", + "name": "Update Rules", "event": [ { "listen": "test", "script": { - "id": "84f14087-8291-48ac-abaa-75a134873d9e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23759,7 +32971,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"relation\": \"COPY\"\r\n}", + "raw": "{\r\n \"crudFlags\": \"C\"\r\n}", "options": { "raw": { "language": "json" @@ -23767,13 +32979,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles", + "raw": "http://{{datagateway-api}}/rules", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles" + "rules" ] } }, @@ -23833,12 +33045,11 @@ ] }, { - "name": "Create RelatedDatafiles", + "name": "Create Rules", "event": [ { "listen": "test", "script": { - "id": "faf6ce26-fb58-4200-9bf3-d3bb8db1dd28", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23864,7 +33075,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"relation\": \"COPY\",\r\n \"sourceDatafile\": 5,\r\n \"destDatafile\": 7\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"crudFlags\": \"CR\",\r\n \"what\": \"Investigation\",\r\n \"grouping\": 6\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -23872,25 +33083,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles", + "raw": "http://{{datagateway-api}}/rules", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles" + "rules" ] } }, "response": [] }, { - "name": "Count RelatedDatafiles", + "name": "Count Rules", "event": [ { "listen": "prerequest", "script": { - "id": "a7bef93c-4800-4688-981a-cb16c1fd1d36", "exec": [ "" ], @@ -23900,7 +33110,6 @@ { "listen": "test", "script": { - "id": "8b3596b9-1489-444b-8494-6cb2ffad7893", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23924,13 +33133,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles/count", + "raw": "http://{{datagateway-api}}/rules/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles", + "rules", "count" ], "query": [ @@ -23945,12 +33154,11 @@ "response": [] }, { - "name": "Find One RelatedDatafiles", + "name": "Find One Rule", "event": [ { "listen": "prerequest", "script": { - "id": "0d25b2cc-0fc1-4321-9510-67b02583297e", "exec": [ "" ], @@ -23960,7 +33168,6 @@ { "listen": "test", "script": { - "id": "2f9e8204-41fd-43ef-8690-d76e18f5ef50", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -23984,13 +33191,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/relateddatafiles/findone", + "raw": "http://{{datagateway-api}}/rules/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "relateddatafiles", + "rules", "findone" ], "query": [ @@ -24024,20 +33231,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Rule", + "name": "Sample", "item": [ { - "name": "Rules By Filter", + "name": "Samples By Filter", "event": [ { "listen": "test", "script": { - "id": "ef263efe-7777-4b44-9e6e-ae7d2ef74db6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24061,13 +33265,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/rules", + "raw": "http://{{datagateway-api}}/samples", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules" + "samples" ] } }, @@ -24127,12 +33331,11 @@ ] }, { - "name": "Update Rules", + "name": "Update Samples", "event": [ { "listen": "test", "script": { - "id": "6cb833a8-3034-458a-b68d-632fe0851a9c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24157,7 +33360,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"crudFlags\": \"C\"\r\n}", + "raw": "{\r\n \"name\": \"Sample of name\"\r\n}", "options": { "raw": { "language": "json" @@ -24165,13 +33368,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/rules", + "raw": "http://{{datagateway-api}}/samples", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules" + "samples" ] } }, @@ -24231,12 +33434,11 @@ ] }, { - "name": "Create Rules", + "name": "Create Samples", "event": [ { "listen": "test", "script": { - "id": "1471c292-609d-4fd5-baba-20a0fd67d36e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24262,7 +33464,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"crudFlags\": \"CR\",\r\n \"what\": \"Investigation\",\r\n \"grouping\": 6\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Example Sample...\",\r\n \"investigation\": 43,\r\n \"type\": 4\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -24270,25 +33472,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/rules", + "raw": "http://{{datagateway-api}}/samples", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules" + "samples" ] } }, "response": [] }, { - "name": "Count Rules", + "name": "Count Samples", "event": [ { "listen": "prerequest", "script": { - "id": "f36bb586-4341-4c36-883e-caa3e9058ce5", "exec": [ "" ], @@ -24298,7 +33499,6 @@ { "listen": "test", "script": { - "id": "1187458b-a3ce-4eaf-a252-b5a4431f282c", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24322,13 +33522,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/rules/count", + "raw": "http://{{datagateway-api}}/samples/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules", + "samples", "count" ], "query": [ @@ -24343,12 +33543,11 @@ "response": [] }, { - "name": "Find One Rule", + "name": "Find One Sample", "event": [ { "listen": "prerequest", "script": { - "id": "ba2732cf-1e44-4a89-8f6e-f91b47d3c368", "exec": [ "" ], @@ -24358,7 +33557,6 @@ { "listen": "test", "script": { - "id": "3467ba68-a166-408c-a13d-4e7c451228e1", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24382,13 +33580,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/rules/findone", + "raw": "http://{{datagateway-api}}/samples/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "rules", + "samples", "findone" ], "query": [ @@ -24422,20 +33620,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Sample", + "name": "SampleParameter", "item": [ { - "name": "Samples By Filter", + "name": "SampleParameters By Filter", "event": [ { "listen": "test", "script": { - "id": "39626d66-6675-4578-b3ba-8cea6191f47f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24459,13 +33654,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/samples", + "raw": "http://{{datagateway-api}}/sampleparameters", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples" + "sampleparameters" ] } }, @@ -24525,12 +33720,11 @@ ] }, { - "name": "Update Samples", + "name": "Update SampleParameters", "event": [ { "listen": "test", "script": { - "id": "0ef33b0b-6c7c-4832-8848-e376d7f550ae", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24555,7 +33749,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Sample of name\"\r\n}", + "raw": "{\r\n \"error\": 345657.0\r\n}", "options": { "raw": { "language": "json" @@ -24563,13 +33757,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/samples", + "raw": "http://{{datagateway-api}}/sampleparameters", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples" + "sampleparameters" ] } }, @@ -24629,12 +33823,11 @@ ] }, { - "name": "Create Samples", + "name": "Create SampleParameters", "event": [ { "listen": "test", "script": { - "id": "8bc6bf1d-37ca-4124-9447-d361ce24ede2", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24660,7 +33853,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Example Sample...\",\r\n \"investigation\": 43,\r\n \"type\": 4\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"stringValue\": \"value 2\",\r\n \"sample\": 4,\r\n \"type\": 2\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -24668,25 +33861,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/samples", + "raw": "http://{{datagateway-api}}/sampleparameters", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples" + "sampleparameters" ] } }, "response": [] }, { - "name": "Count Samples", + "name": "Count SampleParameters", "event": [ { "listen": "prerequest", "script": { - "id": "b94f01c2-64c2-4732-a9c3-5b552fc1a4be", "exec": [ "" ], @@ -24696,7 +33888,6 @@ { "listen": "test", "script": { - "id": "3d618b59-83b3-425e-82f7-d33585b15d47", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24707,26 +33898,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/samples/count", + "raw": "http://{{datagateway-api}}/sampleparameters/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples", + "sampleparameters", "count" ], "query": [ @@ -24741,12 +33922,11 @@ "response": [] }, { - "name": "Find One Sample", + "name": "Find One SampleParameter", "event": [ { "listen": "prerequest", "script": { - "id": "cb317aea-311b-45ce-89a2-32db131f2bdb", "exec": [ "" ], @@ -24756,7 +33936,6 @@ { "listen": "test", "script": { - "id": "d3a1d351-ffb5-4d67-a1a7-715ac5919bb3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24767,26 +33946,16 @@ } ], "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/samples/findone", + "raw": "http://{{datagateway-api}}/sampleparameters/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "samples", + "sampleparameters", "findone" ], "query": [ @@ -24820,20 +33989,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "SampleParameter", + "name": "SampleType", "item": [ { - "name": "SampleParameters By Filter", + "name": "SampleTypes By Filter", "event": [ { "listen": "test", "script": { - "id": "a4a31b81-691d-4bd4-a4e4-31244721d146", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24857,13 +34023,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampleparameters", + "raw": "http://{{datagateway-api}}/sampletypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters" + "sampletypes" ] } }, @@ -24923,12 +34089,11 @@ ] }, { - "name": "Update SampleParameters", + "name": "Update SampleTypes", "event": [ { "listen": "test", "script": { - "id": "894e2c76-18f2-4d45-a281-1c8d6f01371b", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -24953,7 +34118,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"error\": 345657.0\r\n}", + "raw": "{\r\n \"name\": \"Name of sample type\",\r\n \"safetyInformation\": \"Health and safety and all that...\"\r\n}", "options": { "raw": { "language": "json" @@ -24961,13 +34126,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/sampleparameters", + "raw": "http://{{datagateway-api}}/sampletypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters" + "sampletypes" ] } }, @@ -25027,12 +34192,11 @@ ] }, { - "name": "Create SampleParameters", + "name": "Create SampleTypes", "event": [ { "listen": "test", "script": { - "id": "c6dc06d9-687f-4868-9d31-2dddb5b52351", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25058,7 +34222,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"stringValue\": \"value 2\",\r\n \"sample\": 4,\r\n \"type\": 2\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Example Sample Typ2e...\",\r\n \"molecularFormula\": \"C3H5O2D4G5\",\r\n \"facility\": 1\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -25066,25 +34230,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/sampleparameters", + "raw": "http://{{datagateway-api}}/sampletypes", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters" + "sampletypes" ] } }, "response": [] }, { - "name": "Count SampleParameters", + "name": "Count SampleTypes", "event": [ { "listen": "prerequest", "script": { - "id": "603847a3-2726-48d1-9884-a2c9508769a5", "exec": [ "" ], @@ -25094,7 +34257,6 @@ { "listen": "test", "script": { - "id": "742fe3e3-0480-4827-af0a-1321c3431e46", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25105,16 +34267,26 @@ } ], "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampleparameters/count", + "raw": "http://{{datagateway-api}}/sampletypes/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters", + "sampletypes", "count" ], "query": [ @@ -25129,12 +34301,11 @@ "response": [] }, { - "name": "Find One SampleParameter", + "name": "Find One SampleType", "event": [ { "listen": "prerequest", "script": { - "id": "e77f8c9c-40a7-46ab-9b81-bdf1862c4347", "exec": [ "" ], @@ -25144,7 +34315,6 @@ { "listen": "test", "script": { - "id": "14506129-7c10-4d4f-b089-86f41479418d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25155,16 +34325,26 @@ } ], "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampleparameters/findone", + "raw": "http://{{datagateway-api}}/sampletypes/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampleparameters", + "sampletypes", "findone" ], "query": [ @@ -25198,20 +34378,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "SampleType", + "name": "Shift", "item": [ { - "name": "SampleTypes By Filter", + "name": "Shifts By Filter", "event": [ { "listen": "test", "script": { - "id": "89c1a932-1337-4ba3-a4b3-b3f74d0b19d6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25235,13 +34412,14 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampletypes", + "raw": "http://{{datagateway-api}}/shifts/", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes" + "shifts", + "" ] } }, @@ -25297,16 +34475,67 @@ ], "cookie": [], "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" + }, + { + "name": "Shifts By ID", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/shifts/102", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "102" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "395" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Wed, 22 Jul 2020 10:18:03 GMT" + } + ], + "cookie": [], + "body": "{\n \"ID\": 102,\n \"COMMENT\": \"Answer since heart message. Happy mission ok play dog character organization. Theory be region character along artist best.\",\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2003-01-05 13:20:58\",\n \"ENDDATE\": \"2027-01-10 00:00:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2011-05-06 16:20:45\",\n \"STARTDATE\": \"2027-02-07 00:00:00\",\n \"INVESTIGATION_ID\": 108\n}" } ] }, { - "name": "Update SampleTypes", + "name": "Update Shifts", "event": [ { "listen": "test", "script": { - "id": "d4daca52-f2f1-444e-84e0-c5baca698b73", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25331,7 +34560,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"name\": \"Name of sample type\",\r\n \"safetyInformation\": \"Health and safety and all that...\"\r\n}", + "raw": "{\r\n \"comment\": \"my test comment2222\"\r\n}", "options": { "raw": { "language": "json" @@ -25339,13 +34568,14 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/sampletypes", + "raw": "http://{{datagateway-api}}/shifts/", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes" + "shifts", + "" ] } }, @@ -25405,12 +34635,11 @@ ] }, { - "name": "Create SampleTypes", + "name": "Create Shifts", "event": [ { "listen": "test", "script": { - "id": "b5364e76-2f93-48e8-8ef4-8288b9bf3997", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25436,7 +34665,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Example Sample Typ2e...\",\r\n \"molecularFormula\": \"C3H5O2D4G5\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"comment\": \"Example shift comments..1.\",\r\n \"startDate\": \"2019-02-20 20:20:20\",\r\n \"endDate\": \"2020-02-02 02:02:02\",\r\n \"investigation\": 7\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -25444,85 +34673,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/sampletypes", - "protocol": "http", - "host": [ - "{{datagateway-api}}" - ], - "path": [ - "sampletypes" - ] - } - }, - "response": [] - }, - { - "name": "Count SampleTypes", - "event": [ - { - "listen": "prerequest", - "script": { - "id": "40e833a2-b7c5-47a8-b355-cf9b65357761", - "exec": [ - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "id": "72319441-ee1f-41b5-a81b-ba37eb842c45", - "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{sessionID}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "http://{{datagateway-api}}/sampletypes/count", + "raw": "http://{{datagateway-api}}/shifts", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes", - "count" - ], - "query": [ - { - "key": "where", - "value": "{\"id\": {\"in\": [2]}}", - "disabled": true - } + "shifts" ] } }, "response": [] }, { - "name": "Find One SampleType", + "name": "Count Shifts", "event": [ { "listen": "prerequest", "script": { - "id": "f1fe4e37-0121-4b92-b48d-011dd732ba29", "exec": [ "" ], @@ -25532,7 +34700,6 @@ { "listen": "test", "script": { - "id": "fc8e1c39-1691-4f10-a20c-504dd6f0983f", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25556,13 +34723,71 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/sampletypes/findone", + "raw": "http://{{datagateway-api}}/shifts/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "sampletypes", + "shifts", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Shift", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status: 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/shifts/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", "findone" ], "query": [ @@ -25596,20 +34821,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Shift", + "name": "Study", "item": [ { - "name": "Shifts By Filter", + "name": "Studies By Filter", "event": [ { "listen": "test", "script": { - "id": "8feafa2d-a31f-4a7f-a095-5b05d2eb8339", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25633,14 +34855,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/shifts/", + "raw": "http://{{datagateway-api}}/studies", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", - "" + "studies" ] } }, @@ -25696,68 +34917,15 @@ ], "cookie": [], "body": "{\n \"ID\": 4,\n \"CREATE_ID\": \"simple/root\",\n \"CREATE_TIME\": \"2020-06-02 10:46:13\",\n \"EMAIL\": \"elisa.hills@durganprice.com\",\n \"FULLNAME\": \"Erna Marvin II\",\n \"MOD_ID\": \"simple/root\",\n \"MOD_TIME\": \"2020-06-02 10:46:13\",\n \"NAME\": \"db/user11\",\n \"ORCIDID\": null\n}" - }, - { - "name": "Shifts By ID", - "originalRequest": { - "method": "GET", - "header": [], - "url": { - "raw": "http://{{datagateway-api}}/shifts/102", - "protocol": "http", - "host": [ - "{{datagateway-api}}" - ], - "path": [ - "shifts", - "102" - ], - "query": [ - { - "key": "include", - "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", - "disabled": true - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Content-Length", - "value": "395" - }, - { - "key": "Access-Control-Allow-Origin", - "value": "*" - }, - { - "key": "Server", - "value": "Werkzeug/0.16.0 Python/3.6.8" - }, - { - "key": "Date", - "value": "Wed, 22 Jul 2020 10:18:03 GMT" - } - ], - "cookie": [], - "body": "{\n \"ID\": 102,\n \"COMMENT\": \"Answer since heart message. Happy mission ok play dog character organization. Theory be region character along artist best.\",\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2003-01-05 13:20:58\",\n \"ENDDATE\": \"2027-01-10 00:00:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2011-05-06 16:20:45\",\n \"STARTDATE\": \"2027-02-07 00:00:00\",\n \"INVESTIGATION_ID\": 108\n}" } ] }, { - "name": "Update Shifts", + "name": "Update Studies", "event": [ { "listen": "test", "script": { - "id": "c0cdf903-65a2-4a2c-9012-39889c0eff23", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25782,7 +34950,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"comment\": \"my test comment2222\"\r\n}", + "raw": "{\r\n \"status\": \"COMPLETE\"\r\n}", "options": { "raw": { "language": "json" @@ -25790,14 +34958,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/shifts/", + "raw": "http://{{datagateway-api}}/studies", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", - "" + "studies" ] } }, @@ -25857,12 +35024,11 @@ ] }, { - "name": "Create Shifts", + "name": "Create Studies", "event": [ { "listen": "test", "script": { - "id": "48452bfa-78da-452c-8c7d-b85eca2da8e1", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25888,7 +35054,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"comment\": \"Example shift comments..1.\",\r\n \"startDate\": \"2019-02-20 20:20:20\",\r\n \"endDate\": \"2020-02-02 02:02:02\",\r\n \"investigation\": 7\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"name\": \"Example Study Record\",\r\n \"status\": \"IN_PROGRESS\",\r\n \"user\": 51\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -25896,25 +35062,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/shifts", + "raw": "http://{{datagateway-api}}/studies", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts" + "studies" ] } }, "response": [] }, { - "name": "Count Shifts", + "name": "Count Studies", "event": [ { "listen": "prerequest", "script": { - "id": "bb81fe3d-94a3-4f1a-a6a8-07bb2b377470", "exec": [ "" ], @@ -25924,7 +35089,6 @@ { "listen": "test", "script": { - "id": "72311f1c-7ce7-4cd3-86a0-5bba2a93ca03", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -25948,13 +35112,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/shifts/count", + "raw": "http://{{datagateway-api}}/studies/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", + "studies", "count" ], "query": [ @@ -25969,12 +35133,11 @@ "response": [] }, { - "name": "Find One Shift", + "name": "Find One Study", "event": [ { "listen": "prerequest", "script": { - "id": "e092bfef-9986-4390-a21e-1574178be1dc", "exec": [ "" ], @@ -25984,7 +35147,6 @@ { "listen": "test", "script": { - "id": "077ac65f-d593-4a91-90f8-a59b35c0d645", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26008,13 +35170,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/shifts/findone", + "raw": "http://{{datagateway-api}}/studies/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "shifts", + "studies", "findone" ], "query": [ @@ -26048,20 +35210,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "Study", + "name": "StudyInvestigation", "item": [ { - "name": "Studies By Filter", + "name": "StudyInvestigations By Filter", "event": [ { "listen": "test", "script": { - "id": "3ea7431d-2277-488c-b2e8-aaa18cf11140", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26085,13 +35244,32 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studies", + "raw": "http://{{datagateway-api}}/studyinvestigations?limit=2&include=\"investigation\"&distinct=\"investigation.id\"", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies" + "studyinvestigations" + ], + "query": [ + { + "key": "limit", + "value": "2" + }, + { + "key": "include", + "value": "\"investigation\"" + }, + { + "key": "order", + "value": "\"investigation.title desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"investigation.id\"" + } ] } }, @@ -26151,15 +35329,14 @@ ] }, { - "name": "Update Studies", + "name": "Update StudyInvestigations", "event": [ { "listen": "test", "script": { - "id": "4ea561e5-c536-42fa-86f4-c6aa4faa8611", "exec": [ - "pm.test(\"Status: 200\", function () {\r", - " pm.response.to.have.status(200);\r", + "pm.test(\"Status: 400\", function () {\r", + " pm.response.to.have.status(400);\r", "});" ], "type": "text/javascript" @@ -26181,7 +35358,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"status\": \"COMPLETE\"\r\n}", + "raw": "{\r\n \"createId\": \"simple/root\"\r\n}", "options": { "raw": { "language": "json" @@ -26189,13 +35366,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/studies", + "raw": "http://{{datagateway-api}}/studyinvestigations", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies" + "studyinvestigations" ] } }, @@ -26255,12 +35432,11 @@ ] }, { - "name": "Create Studies", + "name": "Create StudyInvestigations", "event": [ { "listen": "test", "script": { - "id": "baf1615c-50be-40a1-a409-b3b1954568d3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26286,7 +35462,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"name\": \"Example Study Record\",\r\n \"status\": \"IN_PROGRESS\",\r\n \"user\": 51\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"study\": 4,\r\n \"investigation\": 16\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -26294,25 +35470,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/studies", + "raw": "http://{{datagateway-api}}/studyinvestigations", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies" + "studyinvestigations" ] } }, "response": [] }, { - "name": "Count Studies", + "name": "Count StudyInvestigations", "event": [ { "listen": "prerequest", "script": { - "id": "7eaa6cee-1c8b-41a1-ad01-64b187ed95e9", "exec": [ "" ], @@ -26322,7 +35497,6 @@ { "listen": "test", "script": { - "id": "5798aec8-d9f1-445d-86b9-4958cb527024", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26346,13 +35520,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studies/count", + "raw": "http://{{datagateway-api}}/studyinvestigations/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies", + "studyinvestigations", "count" ], "query": [ @@ -26367,12 +35541,11 @@ "response": [] }, { - "name": "Find One Study", + "name": "Find One StudyInvestigation", "event": [ { "listen": "prerequest", "script": { - "id": "17d0ca0e-970e-4921-9fc8-9d1abc0c9a4e", "exec": [ "" ], @@ -26382,7 +35555,6 @@ { "listen": "test", "script": { - "id": "69e5da30-901e-4754-a1da-4fa605bdfb97", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26406,13 +35578,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studies/findone", + "raw": "http://{{datagateway-api}}/studyinvestigations/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studies", + "studyinvestigations", "findone" ], "query": [ @@ -26446,20 +35618,17 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { - "name": "StudyInvestigation", + "name": "Technique", "item": [ { - "name": "StudyInvestigations By Filter", + "name": "Techniques By Filter", "event": [ { "listen": "test", "script": { - "id": "0fd1eb9f-7d20-4957-831c-6d2084d40ce3", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26483,22 +35652,24 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations?limit=2&include=\"investigation\"&distinct=\"investigation.id\"", + "raw": "http://{{datagateway-api}}/techniques", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations" + "techniques" ], "query": [ { "key": "limit", - "value": "2" + "value": "2", + "disabled": true }, { "key": "include", - "value": "\"investigation\"" + "value": "\"investigation\"", + "disabled": true }, { "key": "order", @@ -26507,7 +35678,8 @@ }, { "key": "distinct", - "value": "\"investigation.id\"" + "value": "\"investigation.id\"", + "disabled": true } ] } @@ -26568,12 +35740,11 @@ ] }, { - "name": "Update StudyInvestigations", + "name": "Update Techniques", "event": [ { "listen": "test", "script": { - "id": "1471db18-7687-4d14-aa1d-e072daf0cf7a", "exec": [ "pm.test(\"Status: 400\", function () {\r", " pm.response.to.have.status(400);\r", @@ -26606,13 +35777,13 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations", + "raw": "http://{{datagateway-api}}/techniques", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations" + "techniques" ] } }, @@ -26672,12 +35843,11 @@ ] }, { - "name": "Create StudyInvestigations", + "name": "Create Techniques", "event": [ { "listen": "test", "script": { - "id": "341d3e6f-863f-4726-b338-129ee254988d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26703,7 +35873,7 @@ "header": [], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"study\": 4,\r\n \"investigation\": 16\r\n }\r\n]\r\n", + "raw": "[\r\n {\r\n \"pid\": \"accelerator\",\r\n \"description\": \"an accelerator...\",\r\n \"name\":\"Mysterious accelerator..\"\r\n }\r\n]\r\n", "options": { "raw": { "language": "json" @@ -26711,25 +35881,24 @@ } }, "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations", + "raw": "http://{{datagateway-api}}/techniques", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations" + "techniques" ] } }, "response": [] }, { - "name": "Count StudyInvestigations", + "name": "Count Techniques", "event": [ { "listen": "prerequest", "script": { - "id": "91159127-6a75-4ad8-8b19-551c9d1b8986", "exec": [ "" ], @@ -26739,7 +35908,6 @@ { "listen": "test", "script": { - "id": "ce4e3b69-8eaf-4a7f-b8f7-6164cafd9948", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26763,13 +35931,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations/count", + "raw": "http://{{datagateway-api}}/techniques/count", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations", + "techniques", "count" ], "query": [ @@ -26784,12 +35952,11 @@ "response": [] }, { - "name": "Find One StudyInvestigation", + "name": "Find One Technique", "event": [ { "listen": "prerequest", "script": { - "id": "3980666f-35e3-4979-af35-a8fa9f038dae", "exec": [ "" ], @@ -26799,7 +35966,6 @@ { "listen": "test", "script": { - "id": "2dce257c-7dbd-418b-b20e-5907fcf7f4ef", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -26823,13 +35989,13 @@ "method": "GET", "header": [], "url": { - "raw": "http://{{datagateway-api}}/studyinvestigations/findone", + "raw": "http://{{datagateway-api}}/techniques/findone", "protocol": "http", "host": [ "{{datagateway-api}}" ], "path": [ - "studyinvestigations", + "techniques", "findone" ], "query": [ @@ -26842,11 +36008,6 @@ "key": "distinct", "value": "\"id\"", "disabled": true - }, - { - "key": "include", - "value": "\"investigationUsers\"", - "disabled": true } ] } @@ -26863,9 +36024,7 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { "name": "User", @@ -26876,7 +36035,6 @@ { "listen": "test", "script": { - "id": "b61ebbce-a0f9-4340-8619-501747de2085", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -27443,7 +36601,6 @@ { "listen": "test", "script": { - "id": "6f706c4e-e1c4-4d9a-9683-215e29a13602", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -27547,7 +36704,6 @@ { "listen": "test", "script": { - "id": "abeb7fe8-b1c3-417c-a8f5-d6caf2c08c12", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -27651,7 +36807,6 @@ { "listen": "prerequest", "script": { - "id": "8a8dfa4f-d001-4ad5-9708-a175196b4894", "exec": [ "" ], @@ -27661,7 +36816,6 @@ { "listen": "test", "script": { - "id": "dc6f082f-0e11-4fbc-8e8e-baed77665957", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -27721,7 +36875,6 @@ { "listen": "prerequest", "script": { - "id": "c95a56b2-7e0a-466e-a1d9-003fb77b2a1e", "exec": [ "" ], @@ -27731,7 +36884,6 @@ { "listen": "test", "script": { - "id": "f0c4fefe-495c-4fb9-a5e4-480999fdf019", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -27795,9 +36947,7 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } }, { "name": "UserGroup", @@ -27808,7 +36958,6 @@ { "listen": "test", "script": { - "id": "2416d6ac-7f9c-4fa3-8449-553197f31198", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -27927,7 +37076,6 @@ { "listen": "test", "script": { - "id": "3ef3fd72-4afc-465c-bc09-330fe8f0d31d", "exec": [ "pm.test(\"Status: 400\", function () {\r", " pm.response.to.have.status(400);\r", @@ -28031,7 +37179,6 @@ { "listen": "test", "script": { - "id": "e08b992b-6730-4be8-b141-c2c345e3acf1", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28083,7 +37230,6 @@ { "listen": "prerequest", "script": { - "id": "a09457fe-c153-42d7-bda2-dde558a62efd", "exec": [ "" ], @@ -28093,7 +37239,6 @@ { "listen": "test", "script": { - "id": "c61a69a3-efa0-4ebe-a5d7-5583cf404b28", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28133,7 +37278,6 @@ { "listen": "prerequest", "script": { - "id": "abfbe2b9-f7e4-430f-83f8-c459c99fae57", "exec": [ "" ], @@ -28143,7 +37287,6 @@ { "listen": "test", "script": { - "id": "9ac6ddf6-d9fb-46a3-8e12-ca07d4795f63", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28197,9 +37340,7 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {}, - "_postman_isSubFolder": true + } } ], "auth": { @@ -28216,7 +37357,6 @@ { "listen": "prerequest", "script": { - "id": "363939d6-3879-4976-8db6-d61dbdbc5bc7", "type": "text/javascript", "exec": [ "" @@ -28226,15 +37366,13 @@ { "listen": "test", "script": { - "id": "3fe41aa6-ae42-4ac1-8f7e-6f50d66f6b50", "type": "text/javascript", "exec": [ "" ] } } - ], - "protocolProfileBehavior": {} + ] }, { "name": "ISIS Specific Endpoints", @@ -28377,7 +37515,6 @@ { "listen": "test", "script": { - "id": "42ceb325-d791-46af-a86b-993295b2778d", "type": "text/javascript", "exec": [ "pm.test(\"Status: 200\", function () {", @@ -28386,8 +37523,7 @@ ] } } - ], - "protocolProfileBehavior": {} + ] }, { "name": "Session Related Requests", @@ -28398,7 +37534,6 @@ { "listen": "test", "script": { - "id": "780a3c06-5364-4ee8-ba72-c1ae7feba34c", "exec": [ "var jsonData = JSON.parse(responseBody);\r", "pm.collectionVariables.set(\"sessionID\", jsonData.sessionID);" @@ -28422,10 +37557,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"username\": \"\",\n\t\"password\": \"\",\n\t\"mechanism\": \"anon\"\n}", - "options": { - "raw": {} - } + "raw": "{\n\t\"username\": \"\",\n\t\"password\": \"\",\n\t\"mechanism\": \"anon\"\n}" }, "url": { "raw": "http://{{datagateway-api}}/sessions", @@ -28446,7 +37578,6 @@ { "listen": "test", "script": { - "id": "9c88bbb2-0bb9-498e-b9ec-36081d1d3b81", "exec": [ "var jsonData = JSON.parse(responseBody);\r", "pm.collectionVariables.set(\"sessionID\", jsonData.sessionID);" @@ -28470,10 +37601,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"username\": \"root\",\n\t\"password\": \"pw\",\n\t\"mechanism\": \"simple\"\n}", - "options": { - "raw": {} - } + "raw": "{\n\t\"username\": \"root\",\n\t\"password\": \"pw\",\n\t\"mechanism\": \"simple\"\n}" }, "url": { "raw": "http://{{datagateway-api}}/sessions", @@ -28494,7 +37622,6 @@ { "listen": "test", "script": { - "id": "4541c28e-62e1-4857-8bef-401fbaf14f34", "exec": [ "var jsonData = JSON.parse(responseBody);\r", "pm.collectionVariables.set(\"sessionID\", jsonData.sessionID);" @@ -28518,10 +37645,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"username\": \"user\",\n\t\"password\": \"password\",\n\t\"mechanism\": \"simple\"\n}", - "options": { - "raw": {} - } + "raw": "{\n\t\"username\": \"user\",\n\t\"password\": \"password\",\n\t\"mechanism\": \"simple\"\n}" }, "url": { "raw": "http://{{datagateway-api}}/sessions", @@ -28542,7 +37666,6 @@ { "listen": "test", "script": { - "id": "25ed5999-bf6e-4a32-b3cb-0eadbbb5d686", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28584,7 +37707,6 @@ { "listen": "test", "script": { - "id": "32ae580c-43d5-4944-87af-ba28534b2a0e", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28659,8 +37781,7 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {} + } }, { "name": "Frequently Used Requests", @@ -28671,7 +37792,6 @@ { "listen": "test", "script": { - "id": "7535173d-abc2-44ef-90e9-e55249712a19", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28732,7 +37852,6 @@ { "listen": "test", "script": { - "id": "491752ea-23ca-4d1e-af28-d039c11438be", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -28802,7 +37921,6 @@ { "listen": "test", "script": { - "id": "fcecf8ad-0a2d-4394-b581-3e5e0e813339", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -29370,7 +38488,6 @@ { "listen": "test", "script": { - "id": "70a782ee-dcd2-4bed-8ff9-6fd0a263832d", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -29466,7 +38583,6 @@ { "listen": "prerequest", "script": { - "id": "dbec6c07-bb9e-4b7a-be3f-2373cdec108d", "exec": [ "" ], @@ -29476,7 +38592,6 @@ { "listen": "test", "script": { - "id": "5ab71e36-3524-4300-8282-8c91823154ba", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -29536,7 +38651,6 @@ { "listen": "prerequest", "script": { - "id": "5074f3eb-f544-4ae7-b958-b48fab971cc8", "exec": [ "" ], @@ -29546,7 +38660,6 @@ { "listen": "test", "script": { - "id": "bbf35b0d-8b09-4fd9-a266-305cb568d4a6", "exec": [ "pm.test(\"Status: 200\", function () {\r", " pm.response.to.have.status(200);\r", @@ -29686,8 +38799,7 @@ "type": "string" } ] - }, - "protocolProfileBehavior": {} + } } ], "auth": { @@ -29704,7 +38816,6 @@ { "listen": "prerequest", "script": { - "id": "48f83c28-f764-42a1-b608-9094717473b4", "type": "text/javascript", "exec": [ "" @@ -29714,7 +38825,6 @@ { "listen": "test", "script": { - "id": "ec1dad29-81ee-4f72-9508-a13f6ec37713", "type": "text/javascript", "exec": [ "" @@ -29724,15 +38834,12 @@ ], "variable": [ { - "id": "c15d3eab-5ffb-4f88-b173-a2873f7f72b8", "key": "datagateway-api", "value": "127.0.0.1:5000" }, { - "id": "9bfb70bc-0840-43ad-9f59-65a4db7c64f7", "key": "sessionID", "value": "" } - ], - "protocolProfileBehavior": {} + ] }