diff --git a/postman_collection_icat.json b/postman_collection_icat.json new file mode 100644 index 00000000..fb7e3a94 --- /dev/null +++ b/postman_collection_icat.json @@ -0,0 +1,29738 @@ +{ + "info": { + "_postman_id": "c54f3f84-4e41-44cb-93a1-434f3d91d65e", + "name": "DataGateway API", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Entity By ID", + "item": [ + { + "name": "Application", + "item": [ + { + "name": "Applications By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "581fab56-0244-467d-9d8b-347984f874a4", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications", + "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": "Applications By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "61874106-d513-43b9-a042-b4ae9858609b", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications", + "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": "Applications By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "2081b649-7909-4eee-91e1-2edcc7345536", + "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}}/applications/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "applications", + "4" + ], + "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}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c40d7ea6-e9c0-4446-bd68-fcf0419da4be", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "0160f32e-3874-4e39-95c4-f8828f64264b", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DataCollection", + "item": [ + { + "name": "DataCollections By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "dd2d459e-9a74-49f3-9f55-b4b2d2e2668b", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections", + "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": "DataCollections By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "afe083ac-3f9c-4788-81a7-9ea3259062ad", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections", + "4" + ], + "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": "DataCollections By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "15a203db-a2f0-43a3-ac35-2d538a5229c5", + "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}}/datacollections/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollections", + "4" + ], + "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}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "4ef6f11c-534e-4b11-8cc2-6607a4c3b5f5", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "e653ff6d-6cb8-40e8-ac18-130794404c33", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DataCollectionDatafile", + "item": [ + { + "name": "DataCollectionDatafiles By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "57f9d8d0-86c6-427a-9cb5-5d7c07d77da9", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles", + "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": "DataCollectionDatafiles By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "db0525bd-01c2-4ee1-bb98-46d4d4202505", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles", + "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": "DataCollectionDatafiles By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "054d8f44-6935-43dc-aae2-0d858cfc0f94", + "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}}/datacollectiondatafiles/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatafiles", + "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" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "1a2013f6-cc3e-415e-8e24-ae1957a2507c", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "183ad857-27de-44fa-9859-8891c31e776c", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DataCollectionDataset", + "item": [ + { + "name": "DataCollectionDatasets By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "10e0a1e1-692c-458e-bdb2-673602c79108", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets", + "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": "DataCollectionDatasets By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "fc53db1b-f27d-4729-9d69-6ee944abc820", + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets", + "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": "DataCollectionDatasets By ID", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "1d639bb9-e315-4aae-b796-f15ea802e6ec", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "5a5683b1-9e8f-46eb-ba4f-5650201a1465", + "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}}/datacollectiondatasets/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectiondatasets", + "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" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "219522a2-e144-42cf-9f04-68366fafac0a", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "fa7e892e-6d90-40a5-97cb-99525a6e8b7a", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DataCollectionParameter", + "item": [ + { + "name": "DataCollectionParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "dfaa65f5-c5b3-4806-bc39-40544f19798b", + "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/100", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters", + "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": "DataCollectionParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "d07156c2-cc6c-4cba-b8fa-a0cd9e373d61", + "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 \"dateTimeValue\": \"2013-06-01 00:00:00\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datacollectionparameters/100", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters", + "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": "DataCollectionParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "23ff5093-0371-455b-b393-e66cc2380e41", + "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}}/datacollectionparameters/100", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datacollectionparameters", + "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" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "1b121fbd-a105-4685-9d21-984f1fbaffc1", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "f735cc70-86c7-4971-9e4f-a85a59ddd359", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Datafile", + "item": [ + { + "name": "Datafiles 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafiles/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles", + "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": "Datafiles 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", + "});" + ], + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles", + "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": "DataFiles 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafiles/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafiles", + "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" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "6eba0093-9b17-4169-bdac-bf1e8ab6bc35", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "99ddcb07-9436-42e1-a425-69cbf546cba1", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DatafileFormat", + "item": [ + { + "name": "DatafileFormats 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileformats/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats", + "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": "DatafileFormats 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", + "});" + ], + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats", + "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": "DatafileFormats 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileformats/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileformats", + "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" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c2f4f35d-5bc6-4b0d-883a-665159c9bce0", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "19225532-50cc-43d1-b903-efc8b60994f7", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DatafileParameter", + "item": [ + { + "name": "DatafileParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters", + "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": "DatafileParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"rangeBottom\": 8.0\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters", + "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": "DatafileParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datafileparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datafileparameters", + "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" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "9e027802-b0be-40db-a7ac-decbe55676ea", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "6d9f6cd0-2f3d-43f8-bc27-b11be6504d14", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Dataset", + "item": [ + { + "name": "Datasets 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasets/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets", + "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": "Datasets 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", + "});" + ], + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets", + "4" + ], + "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": "Datasets 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasets/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasets", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DatasetParameter", + "item": [ + { + "name": "DatasetParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters", + "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": "DatasetParameters 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", + "});" + ], + "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/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters", + "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": "DatasetParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasetparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasetparameters", + "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" + } + ] + }, + "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", + "item": [ + { + "name": "DatasetTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datasettypes/3", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes", + "3" + ] + } + }, + "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": "DatasetTypes 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", + "});" + ], + "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/3", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes", + "3" + ] + } + }, + "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": "DatasetTypes By ID", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c9e90a9f-f542-42c5-ab70-b98cbd10af17", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "0970f7a7-a16c-405e-83c1-374a475fca42", + "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}}/datasettypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "datasettypes", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Facility", + "item": [ + { + "name": "Facilities 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/facilities/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities", + "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": "Facilities 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"daysUntilRelease\": 1829\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/facilities/1", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities", + "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": "Facilities By ID", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "5f8dc47c-7fb7-4815-af68-0ec7f2bd8912", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "fac44a30-8ad2-4074-b9a7-68d631093d4d", + "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}}/facilities/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "FacilityCycle", + "item": [ + { + "name": "FacilityCycles 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/facilitycycles/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles", + "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": "FacilityCycles 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"New Facility Cycle Name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/facilitycycles/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles", + "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": "FacilityCycles By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "cace0f3d-f437-4072-a9ae-c0ff660b1cf3", + "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}}/facilitycycles/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Grouping", + "item": [ + { + "name": "Groupings 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/groupings/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings", + "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": "Groupings 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\": \"Updated Grouping Name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/groupings/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings", + "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": "Groupings By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "38f0294b-cda4-412a-b050-f72bf195f6ac", + "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}}/groupings/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Instrument", + "item": [ + { + "name": "Instruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "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": "Instruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"fullName\": \"Full Name of an instrument\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/instruments/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "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": "Instruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments/6", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "6" + ], + "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}" + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InstrumentScientist", + "item": [ + { + "name": "InstrumentScientists 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instrumentscientists/6", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists", + "6" + ] + } + }, + "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": "InstrumentScientists 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/instrumentscientists/6", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists", + "6" + ] + } + }, + "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": "InstrumentScientists 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instrumentscientists/6", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists", + "6" + ] + } + }, + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Investigation", + "item": [ + { + "name": "Investigations 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations", + "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": "Investigations 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"summary\": \"Short summary regarding an investigaferegretion...\"\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations", + "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": "Investigations 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigations/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationGroup", + "item": [ + { + "name": "InvestigationGroups 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationgroups/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups", + "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": "InvestigationGroups 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"role\": \"Role of investigation group\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationgroups/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups", + "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": "InvestigationGroups 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationgroups/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationInstrument", + "item": [ + { + "name": "InvestigationInstruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationinstruments/44", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments", + "44" + ] + } + }, + "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": "InvestigationInstruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"modId\": \"simple/root\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationinstruments/44", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments", + "44" + ] + } + }, + "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": "InvestigationInstruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationinstruments/44", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments", + "44" + ] + } + }, + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationParameter", + "item": [ + { + "name": "InvestigationParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters", + "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": "InvestigationParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"stringValue\": \"NewStringValue\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters", + "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": "InvestigationParameters By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "d7ef6e21-6560-4f4b-b23c-275f001d583b", + "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}}/investigationparameters/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationType", + "item": [ + { + "name": "InvestigationTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationtypes/3", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes", + "3" + ] + } + }, + "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": "InvestigationTypes 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", + "});" + ], + "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 investigation type\",\r\n \"description\": \"description of investigation type\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationtypes/3", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes", + "3" + ] + } + }, + "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": "InvestigationTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationtypes/3", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes", + "3" + ] + } + }, + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationUser", + "item": [ + { + "name": "InvestigationUsers 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationusers/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers", + "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": "InvestigationUsers 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"role\": \"Role of investigation user\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationusers/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers", + "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": "InvestigationUsers 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationusers/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Job", + "item": [ + { + "name": "Jobs 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/jobs/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs", + "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": "Jobs 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"arguments\": \"String arguments updated...\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/jobs/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs", + "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": "Jobs 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/jobs/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Keyword", + "item": [ + { + "name": "Keywords 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/keywords/28", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords", + "28" + ] + } + }, + "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": "Keywords 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", + "});" + ], + "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 keyword updated.\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/keywords/28", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords", + "28" + ] + } + }, + "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": "Keywords 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/keywords/28", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords", + "28" + ] + } + }, + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ParameterType", + "item": [ + { + "name": "ParameterTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/parametertypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes", + "4" + ], + "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": "ParameterTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"valueType\": \"STRING\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/parametertypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes", + "4" + ], + "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": "ParameterTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/parametertypes/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "PermissibleStringValue", + "item": [ + { + "name": "PermissibleStringValues 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues", + "8" + ] + } + }, + "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": "PermissibleStringValues 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"value\": \"VALUE OF PERMISSIBLESTRINGVALUE\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues", + "8" + ] + } + }, + "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": "PermissibleStringValues 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/permissiblestringvalues/8", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues", + "8" + ] + } + }, + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "PublicStep", + "item": [ + { + "name": "PublicSteps 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/publicsteps/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps", + "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": "PublicSteps 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"field\": \"Field no more than 32 characters attempt....\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/publicsteps/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps", + "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": "PublicSteps 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/publicsteps/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Publication", + "item": [ + { + "name": "Publications 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/publications/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications", + "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": "Publications 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"repositoryId\": \"Repo ID string of the publication\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/publications/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications", + "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": "Publications 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/publications/4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "RelatedDatafile", + "item": [ + { + "name": "RelatedDatafiles 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", + "});" + ], + "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": { + "id": "2201dbc4-8394-4da1-a769-37a38348f6ef", + "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": { + "id": "370a4861-892d-4fb9-8cec-db5b4268064a", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Rule", + "item": [ + { + "name": "Rules 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", + "});" + ], + "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": { + "id": "83992c46-75b2-4e39-a365-883691cdd5b4", + "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": { + "id": "8afab651-d975-4edc-9d0a-186ee459dc36", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Sample", + "item": [ + { + "name": "Samples 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", + "});" + ], + "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": { + "id": "0475dcfa-dd0d-4249-97d0-547e98ee8331", + "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": { + "id": "aa558e71-5c9a-4cab-8d37-8c2322226f47", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "SampleParameter", + "item": [ + { + "name": "SampleParameters 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", + "});" + ], + "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": { + "id": "f4eb90a6-8422-4ca2-98c4-818333fe7468", + "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": { + "id": "9a8c554f-5fa2-46b0-8c92-2e0118cf195b", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "SampleType", + "item": [ + { + "name": "SampleTypes 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", + "});" + ], + "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": { + "id": "c3d38f76-50d9-4656-9be6-afdb68a98411", + "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": { + "id": "1fcb0d62-6ddd-4e63-8f0d-add7623d5042", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Shift", + "item": [ + { + "name": "Shifts 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", + "});" + ], + "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": { + "id": "c15bc241-6af6-4027-b6bb-ca47c5d4ef82", + "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": { + "id": "58cd39a9-1e6f-4fdc-ac5c-8bd41f4273ef", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Study", + "item": [ + { + "name": "Studies 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", + "});" + ], + "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": { + "id": "7082ee2b-051c-4a7c-8875-55127beb3f27", + "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": { + "id": "3e1f2b14-3445-4f8b-8f4e-288cd3eaa217", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "StudyInvestigation", + "item": [ + { + "name": "StudyInvestigations 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", + "});" + ], + "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": { + "id": "79417bee-3740-4441-bec2-92996d7c0c71", + "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": { + "id": "de3a3bd2-6076-45df-80d8-ca7579ea4de9", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "User", + "item": [ + { + "name": "Users 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", + "});" + ], + "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": { + "id": "546f67a4-17ce-47c1-98df-908654ae2edc", + "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": { + "id": "73d00114-532a-4f31-ac78-a1c96b0b3b5d", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "UserGroup", + "item": [ + { + "name": "UserGroups 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", + "});" + ], + "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": { + "id": "e6136916-33e7-480c-8d06-a707cf124645", + "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": { + "id": "0abe7cc9-8f72-4cb6-a654-5f8df929a13a", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "protocolProfileBehavior": {} + }, + { + "name": "Other Entity Requests", + "item": [ + { + "name": "Application", + "item": [ + { + "name": "Applications By Filter", + "event": [ + { + "listen": "test", + "script": { + "id": "5c4b9c1c-9339-459b-a135-e93866490349", + "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": { + "id": "5760d09b-d76b-4f49-9a36-a4de94b7aac2", + "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": { + "id": "cfaeb805-20b6-43c1-9486-73b5443ae119", + "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": { + "id": "73fe0ad4-655b-4dff-896b-64d8da572d4b", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "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 + } + ] + } + }, + "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": [ + { + "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": { + "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", + "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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/datacollections?where={\"id\":{\"gt\":995}}", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "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": { + "id": "46a007a1-4859-459c-b682-67d4a695f6d4", + "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": { + "id": "766e9c38-db92-4992-a93c-c8a64580a9a4", + "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": { + "id": "0ad0cfc3-bf7a-482d-9ec7-e41219f28506", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "f5ac5dcb-04d5-4c66-ae0c-a495f5ff8dc5", + "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": { + "id": "eec95f70-e09e-4bd9-b66f-39f5881c67f2", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "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": { + "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": { + "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", + "item": [ + { + "name": "DataCollectionDatafiles 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", + "});" + ], + "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": { + "id": "c6bf9f34-d01b-4a1e-9e15-ed17dbe02559", + "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": { + "id": "c0a30f3f-57a1-4459-a94f-73827ad0937f", + "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": { + "id": "ff0eb49b-31bd-4f4c-bc82-24290448d840", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "f796a432-57be-4bd9-8eae-6cc7a8b60bd9", + "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": { + "id": "3b1d3053-3fb6-4f80-b516-125458a8f408", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "d0996967-2846-4e1b-b99a-318ae624c894", + "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": { + "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", + "item": [ + { + "name": "DataCollectionDatasets 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", + "});" + ], + "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": { + "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", + "});" + ], + "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": { + "id": "de3b3b9a-c2c0-4c24-9cc3-db6af0f89f89", + "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": { + "id": "5333399c-7de7-4fa7-a157-99ccdaf32c8e", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "88cff8ec-8afb-4a8f-b06a-d646ec0d26c6", + "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": { + "id": "a1fcc384-1dc1-415c-bb64-4280972fda42", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "3ee8f416-f868-456a-a9f7-f23a38939070", + "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": { + "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", + "item": [ + { + "name": "DataCollectionParameters 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", + "});" + ], + "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": { + "id": "640bf430-c453-456e-a818-8e6a2034dbdc", + "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": { + "id": "47ee8cc6-24f2-4e27-9e22-ffa557b2185f", + "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": { + "id": "b769d4e6-8cba-46e8-af45-93aa71c13154", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "6d8f7f4a-c025-4026-b3b3-78a3b4f3e30a", + "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": { + "id": "f3755899-37d9-44fd-aa06-0d98d73d4e4f", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "dfe7d35c-0ebd-446e-8952-d8e59398ef5b", + "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": { + "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", + "item": [ + { + "name": "Datafiles 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", + "});" + ], + "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": { + "id": "5065cf2c-7f6f-469a-988c-59472058f45c", + "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": { + "id": "e9bd9eef-2a8f-4623-b00f-f7df475ebc85", + "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": { + "id": "58bfb182-0891-448d-a3d2-c1257cbe9357", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "ce0d0d21-7035-4fc1-b7e3-976223e518b5", + "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": { + "id": "4b97c14b-deaf-4ee8-ac79-25943e585c45", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "bf3ba53d-d269-4349-bec4-136497a48abd", + "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": { + "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", + "item": [ + { + "name": "DatafileFormats 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", + "});" + ], + "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": { + "id": "8d2fcd8d-4106-48f4-ba45-0e5d36d5ff3b", + "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": { + "id": "55bc6ba9-1933-4db0-8dea-84cff0a9411b", + "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": { + "id": "8be7fd05-b458-4a26-b26f-779d0a17c259", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "8f5e08bb-7b33-4c7f-928f-f7479d976f99", + "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": { + "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", + "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": { + "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", + "item": [ + { + "name": "DatafileParameters 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", + "});" + ], + "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": { + "id": "e7f0b0a6-3586-47d2-929f-2a5097933006", + "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": { + "id": "94d6bbde-bcea-46b7-a82a-ef652e2ad1df", + "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": { + "id": "24aca046-0f36-4ee0-8341-0f44c1598b3c", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "6db2acce-05f6-4746-919a-92837d2e8e14", + "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": { + "id": "43786f44-54ef-4193-a293-62b9f414da0f", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "395664e4-2459-40c2-ae0f-17af30b259fb", + "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": { + "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", + "item": [ + { + "name": "Datasets 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", + "});" + ], + "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": { + "id": "bd7aa45b-99dd-40b3-831c-19062002f432", + "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": { + "id": "73a23589-5c2e-487d-84f0-e098e8515944", + "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": { + "id": "3ac859ec-9c22-4bb6-b944-7efec0a43e85", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "df748ca9-8cf8-4b7d-a3a4-d4211084841d", + "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": { + "id": "f86ec9b4-1e94-46b8-ba78-7b11de9084e3", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "e89434eb-13d9-48b9-8cfa-1a79a39ec9bf", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "DatasetParameter", + "item": [ + { + "name": "DatasetParameters 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", + "});" + ], + "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": { + "id": "2f7a01ce-1d55-4e0b-98bb-bd2325e6a702", + "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": { + "id": "eb863db4-5018-4079-8a7e-d07357cc624b", + "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": { + "id": "a6ca2171-035d-47db-aa4e-842b9b4ec882", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "6c9cc124-cfb9-4674-8d1f-7de4d8c23f9a", + "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": { + "id": "9de28764-4168-4af2-9d14-d8a4a4967854", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "b90c607d-28bb-4829-97f5-d9ea5127acc6", + "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": { + "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", + "item": [ + { + "name": "DatasetTypes 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", + "});" + ], + "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": { + "id": "23a9ac21-4d2b-4e64-b422-fa05f012396d", + "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": { + "id": "d4e37829-72e4-448f-b842-f1305b5e464d", + "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": { + "id": "14594ed1-4c23-4862-a66e-1e942115c25f", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "0d364d54-3e6f-4b9d-b563-62f7fe436628", + "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\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One DatasetType", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "eb1edab1-c94f-4e21-80fe-45c75dd7016e", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "932ac173-8529-47b1-a085-14f412f67e71", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Facility", + "item": [ + { + "name": "Facilities 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/facilities", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities" + ] + } + }, + "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 Facilities", + "event": [ + { + "listen": "test", + "script": { + "id": "06c1cff9-fc83-4631-97f6-37801f3d5875", + "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 \"daysUntilRelease\": 1825\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/facilities", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities" + ] + } + }, + "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 Facilities", + "event": [ + { + "listen": "test", + "script": { + "id": "88e632f8-d44f-499f-89f7-e4a24ff9402f", + "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 Test Facility123\",\r\n \"daysUntilRelease\": 500,\r\n \"fullName\": \"My Development Test Facility\"\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/facilities", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities" + ] + } + }, + "response": [] + }, + { + "name": "Count Facilities", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "56ec9ad2-36d7-42e5-9b01-19954ee7f222", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "31d2d349-c37a-474d-a5a8-9235c0839b44", + "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": "c853c212-bebd-4318-8a6c-161fe680f79e", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "ed9f2f5c-bf98-4006-825e-3ce786371f0b", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilities", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "FacilityCycle", + "item": [ + { + "name": "FacilityCycles 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/facilitycycles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles" + ] + } + }, + "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 FacilityCycles", + "event": [ + { + "listen": "test", + "script": { + "id": "bc16b278-9bef-4895-974e-762b7f8ad23e", + "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\": \"New Facility Cycle Name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/facilitycycles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles" + ] + } + }, + "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 FacilityCycles", + "event": [ + { + "listen": "test", + "script": { + "id": "bfcdab26-ac17-46fd-9f29-6ef36345be0e", + "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 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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/facilitycycles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles" + ] + } + }, + "response": [] + }, + { + "name": "Count FacilityCycles", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "e3c239a4-c35e-4846-a7dc-ad724e7eebbe", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "6f288156-6450-4462-bc80-7a4fb265c5a6", + "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}}/facilitycycles/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One FacilityCycles", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "dbd352b2-2b8f-43e9-b43d-da3e7b1317df", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "cfb3aebf-ea6d-4b64-8c98-631c8a1529b5", + "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}}/facilitycycles/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "facilitycycles", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Grouping", + "item": [ + { + "name": "Groupings 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/groupings", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings" + ] + } + }, + "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 Groupings", + "event": [ + { + "listen": "test", + "script": { + "id": "d3d211cf-372d-486d-9860-69dbb04f48f5", + "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\": \"Updated Grouping Name\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/groupings", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings" + ] + } + }, + "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 Groupings", + "event": [ + { + "listen": "test", + "script": { + "id": "93dd7c8c-79b7-4d48-8134-f2b19e93ffeb", + "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 Grouping1\"\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/groupings", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings" + ] + } + }, + "response": [] + }, + { + "name": "Count Groupings", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "1ff6cf75-7de4-4285-98a5-9c06d428ee41", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "e7a33b89-8c10-483e-92aa-d005cd203a29", + "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}}/groupings/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Grouping", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "db0cd568-a9bb-4de0-9e44-086a3e3a6ae1", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "bab99e89-4688-442b-98bf-7740baf9efc9", + "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}}/groupings/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "groupings", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Instrument", + "item": [ + { + "name": "Instruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments" + ] + } + }, + "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 Instruments", + "event": [ + { + "listen": "test", + "script": { + "id": "dbfcc499-b1ca-4e6b-ae8d-ef7aadc954f3", + "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 \"fullName\": \"Full Name of an instrument\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/instruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments" + ] + } + }, + "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 Instruments", + "event": [ + { + "listen": "test", + "script": { + "id": "84080a3b-e8e8-4ccd-8b4e-2f71989720df", + "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 Scientific Instrumen1t\",\r\n \"url\": \"mynewscientificinstrument.com\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/instruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments" + ] + } + }, + "response": [] + }, + { + "name": "Count Instruments", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "cbe1e262-59b9-4cd8-bded-c811b2fca209", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "a74790fd-3f81-46d1-9c5d-f686b7ff0119", + "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}}/instruments/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Instrument", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "552d4953-39e4-4cb2-ad14-d3e34b2d7778", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "bd8c0f70-cfd6-45d2-98f5-73234e9549b8", + "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}}/instruments/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InstrumentScientist", + "item": [ + { + "name": "InstrumentScientists 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instrumentscientists", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists" + ] + } + }, + "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 InstrumentScientists", + "event": [ + { + "listen": "test", + "script": { + "id": "59766661-cb28-4fa8-bbce-981562ef9787", + "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 \"modId\": \"simple/root\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/instrumentscientists", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists" + ] + } + }, + "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 InstrumentScientists", + "event": [ + { + "listen": "test", + "script": { + "id": "3334156d-0030-4605-9f4c-cc9539c83e93", + "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 \"user\": 456,\r\n \"instrument\": 2\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/instrumentscientists", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists" + ] + } + }, + "response": [] + }, + { + "name": "Count InstrumentScientists", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "2b2696d1-075e-4845-b767-254768b49410", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "ab5be46d-f619-4424-b5d1-bf2654cd8815", + "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}}/instrumentscientists/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One InstrumentScientist", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "5bef5930-097c-4d00-b5e7-2c8fae8b5842", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "bc83eabd-fbb8-40a9-b32a-9bb4ac666c0c", + "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}}/instrumentscientists/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instrumentscientists", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Investigation", + "item": [ + { + "name": "Investigations 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigations?where={\"id\": {\"eq\":8}}", + "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}}" + } + ] + } + }, + "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 Investigations", + "event": [ + { + "listen": "test", + "script": { + "id": "55a87c42-e7ea-45a0-90c2-bd82ffae1469", + "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 \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations" + ] + } + }, + "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 Investigations", + "event": [ + { + "listen": "test", + "script": { + "id": "be26e821-f74f-49af-adb5-ae098a60a0de", + "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 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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations" + ] + } + }, + "response": [] + }, + { + "name": "Count Investigations", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "65f4c99e-504a-4cd1-a346-de90bbcee3b5", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "890cfd70-053a-4a5f-8e3b-255b6e445c7b", + "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}}/investigations/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Investigation", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "9f1fae33-748a-4ab7-bce7-633b40d3ef14", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "50535c60-8135-49ab-9db5-1461baa8d491", + "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}}/investigations/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationGroup", + "item": [ + { + "name": "InvestigationGroups 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationgroups", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups" + ] + } + }, + "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 InvestigationGroups", + "event": [ + { + "listen": "test", + "script": { + "id": "d8ede072-7d3d-45ef-b3bb-e5c60f66ee67", + "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 \"role\": \"Role of investigation group\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationgroups", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups" + ] + } + }, + "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 InvestigationGroups", + "event": [ + { + "listen": "test", + "script": { + "id": "6e2abee4-9d41-4472-9626-e4ed3db715a6", + "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 \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationgroups", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups" + ] + } + }, + "response": [] + }, + { + "name": "Count InvestigationGroups", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "d3ccbd59-e9e1-48a4-833e-3304830d0b2c", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "e50bd595-018c-4dc4-bd97-ef88921907aa", + "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}}/investigationgroups/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One InvestigationGroup", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "9b48f880-8201-4edc-8378-d333c64434f4", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "e046f4fe-373b-40c2-85d4-17cefaba2c68", + "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}}/investigationgroups/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationgroups", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationInstrument", + "item": [ + { + "name": "InvestigationInstruments 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "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\"", + "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\"" + } + ] + } + }, + "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 InvestigationInstruments", + "event": [ + { + "listen": "test", + "script": { + "id": "9ed2c15a-98ed-4ea3-a601-2726c90c49e9", + "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 \"modId\": \"simple/root\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationinstruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments" + ] + } + }, + "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 InvestigationInstruments", + "event": [ + { + "listen": "test", + "script": { + "id": "8e78eabf-9f8b-4f02-8ec7-9c7120900423", + "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 \"investigation\": 5,\r\n \"instrument\": 8\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationinstruments", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments" + ] + } + }, + "response": [] + }, + { + "name": "Count InvestigationInstruments", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "cec4ed3c-8ab4-4b14-8c30-34c0bcd1beea", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "0207b662-8bff-4e05-b98b-7631030cb0d0", + "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}}/investigationinstruments/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One InvestigationInstrument", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "84c29ef9-a24c-4868-a19e-fdcbcaabf15f", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "93475fa0-5a44-4d85-af13-2eca93b008d3", + "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}}/investigationinstruments/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationinstruments", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationParameter", + "item": [ + { + "name": "InvestigationParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters" + ] + } + }, + "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 InvestigationParameters", + "event": [ + { + "listen": "test", + "script": { + "id": "aef4addf-40bd-4aa9-bba4-f903961cf8cf", + "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\": \"NewStringValue\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters" + ] + } + }, + "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 InvestigationParameters", + "event": [ + { + "listen": "test", + "script": { + "id": "0fb46ae3-3d0e-4e31-82fe-de15f03c587d", + "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\": \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters" + ] + } + }, + "response": [] + }, + { + "name": "Count InvestigationParameters", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "4f0ca397-4bfd-4fea-ad5f-40500b851c59", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "c2f8de5a-f663-475a-bb04-4db7f16ae841", + "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}}/investigationparameters/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One InvestigationParameters", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "44f770bd-d302-4050-9952-e11f2a1b4a09", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "a80bcf71-b092-4dc1-870d-bc21edc4b312", + "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}}/investigationparameters/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationparameters", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationType", + "item": [ + { + "name": "InvestigationTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationtypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes" + ] + } + }, + "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 InvestigationTypes", + "event": [ + { + "listen": "test", + "script": { + "id": "075ca318-7cd3-4e50-9fe1-9ae46088cedf", + "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 investigation type\",\r\n \"description\": \"description of investigation type\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationtypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes" + ] + } + }, + "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 InvestigationTypes", + "event": [ + { + "listen": "test", + "script": { + "id": "45019517-71ea-4b7d-b291-6d6a4dffe893", + "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\": \"Example Investigation Typ1e\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationtypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes" + ] + } + }, + "response": [] + }, + { + "name": "Count InvestigationTypes", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "56a74ba6-c593-4b74-b990-1f74007302b2", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "064c4a9a-33c8-4b69-952c-90590ceb6eb3", + "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}}/investigationtypes/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One InvestigationType", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "644ba2d0-41ea-49ae-aaa5-a56f6eef3b1d", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "b60a2073-221e-450a-abfd-b1b8f5492528", + "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}}/investigationtypes/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationtypes", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "InvestigationUser", + "item": [ + { + "name": "InvestigationUsers 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/investigationusers", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers" + ] + } + }, + "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 InvestigationUsers", + "event": [ + { + "listen": "test", + "script": { + "id": "2500f7af-916a-46d6-b67f-677ff4fc1b29", + "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 \"role\": \"Role of investigation user\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationusers", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers" + ] + } + }, + "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 InvestigationUsers", + "event": [ + { + "listen": "test", + "script": { + "id": "0e27907d-6a55-4179-8371-b8095685fb5e", + "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 \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/investigationusers", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers" + ] + } + }, + "response": [] + }, + { + "name": "Count InvestigationUsers", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "aafd5aa6-6de2-457c-8577-a1ea544c35d0", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "4f16bbf0-4e34-4ea9-94eb-c3b1c332264e", + "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}}/investigationusers/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One InvestigationUser", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "80e734d1-1ab4-40bf-b187-ee9634eb220b", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "07b83945-196e-4387-8d45-44f32b0c2cda", + "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}}/investigationusers/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigationusers", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Job", + "item": [ + { + "name": "Jobs 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/jobs", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs" + ] + } + }, + "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 Jobs", + "event": [ + { + "listen": "test", + "script": { + "id": "dc1a4521-d827-4a21-b868-a918c18db51a", + "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 \"arguments\": \"String arguments updated...\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/jobs", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs" + ] + } + }, + "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 Jobs", + "event": [ + { + "listen": "test", + "script": { + "id": "f28e5c33-0906-411e-928e-026f2677e941", + "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 \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/jobs", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs" + ] + } + }, + "response": [] + }, + { + "name": "Count Jobs", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "9a96fab9-c3d8-4ae1-a794-19ffb6a3d90d", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "3a9019cd-72ab-4250-a05f-868b47d01005", + "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}}/jobs/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Job", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c07c028f-491d-4564-9e25-547a1ec41791", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "09106705-2d80-4449-851d-05d0e3f077e0", + "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}}/jobs/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "jobs", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Keyword", + "item": [ + { + "name": "Keywords 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/keywords", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords" + ] + } + }, + "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 Keywords", + "event": [ + { + "listen": "test", + "script": { + "id": "4bcb28d4-4102-46b0-9c40-e22d39718e11", + "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 keyword updated.\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/keywords", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords" + ] + } + }, + "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 Keywords", + "event": [ + { + "listen": "test", + "script": { + "id": "efd396d2-dd5d-48c0-a1f3-8226b0cbd3b7", + "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\": \"Example Keyword..\",\r\n \"investigation\": 6\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/keywords", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords" + ] + } + }, + "response": [] + }, + { + "name": "Count Keywords", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "1d4b438e-a9d9-4f49-869f-50b8c8e536bc", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "fa53a464-7c5d-4816-9771-305e9ac74b8c", + "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}}/keywords/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Keyword", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "baae86eb-4eac-47b3-8ec4-2a93fa2ab308", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "c262f1ee-f39f-4e6e-9d92-67d77bfc4af5", + "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}}/keywords/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "keywords", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "ParameterType", + "item": [ + { + "name": "ParameterTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/parametertypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes" + ] + } + }, + "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 ParameterTypes", + "event": [ + { + "listen": "test", + "script": { + "id": "36f6e0ba-e709-40e9-97c1-4049d9245fd9", + "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 \"valueType\": \"STRING\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/parametertypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes" + ] + } + }, + "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 ParameterTypes", + "event": [ + { + "listen": "test", + "script": { + "id": "1d993a30-7dce-41f4-9850-60265ed2f01a", + "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\": \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/parametertypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes" + ] + } + }, + "response": [] + }, + { + "name": "Count ParameterTypes", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "a8325b67-1164-40bb-b82d-8206de04090d", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "96dd2e56-ec2a-41d3-8599-ab82ef5e55c9", + "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}}/parametertypes/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One ParameterType", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "3ee2e4d8-cfae-4199-af38-80f9e428b2e3", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "823dfd77-8a1a-489c-825e-48d386f21cc9", + "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}}/parametertypes/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "parametertypes", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "PermissibleStringValue", + "item": [ + { + "name": "PermissibleStringValues 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/permissiblestringvalues", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues" + ] + } + }, + "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 PermissibleStringValues", + "event": [ + { + "listen": "test", + "script": { + "id": "f321d099-37a7-4c7f-9b23-83361eeca6d3", + "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 \"value\": \"VALUE OF PERMISSIBLESTRINGVALUE\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/permissiblestringvalues", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues" + ] + } + }, + "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 PermissibleStringValues", + "event": [ + { + "listen": "test", + "script": { + "id": "be6803ab-5dc8-4b97-8cb5-4d2eefe13111", + "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 \"value\": \"Value of string1\",\r\n \"type\": 4\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/permissiblestringvalues", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues" + ] + } + }, + "response": [] + }, + { + "name": "Count PermissibleStringValues", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c8ceb3f3-22cb-4146-b4a2-96ff9ff19c0a", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "85138f10-9216-4f15-91b8-1b6d7f898066", + "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}}/permissiblestringvalues/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One PermissibleStringValue", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "9a278807-64b8-43e8-a5c3-2778f4f83205", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "ea5b1921-09f7-47bf-b997-3bba107c899a", + "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}}/permissiblestringvalues/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "permissiblestringvalues", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "PublicStep", + "item": [ + { + "name": "PublicSteps 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/publicsteps", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps" + ] + } + }, + "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 PublicSteps", + "event": [ + { + "listen": "test", + "script": { + "id": "4b5f25c7-9d66-4649-8276-6f38aec93613", + "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 \"field\": \"Field no more than 32 characters attempt....\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/publicsteps", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps" + ] + } + }, + "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 PublicSteps", + "event": [ + { + "listen": "test", + "script": { + "id": "fbe69fe1-8edd-4cce-81ce-164932a12d46", + "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 \"field\": \"grouping\",\r\n \"origin\": \"Rule\"\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/publicsteps", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps" + ] + } + }, + "response": [] + }, + { + "name": "Count PublicSteps", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "e6ed4bb8-8174-40b7-b4e6-7f1b1577b4c0", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "46e8d9c7-eed0-4a22-a528-4288d9fbde9f", + "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}}/publicsteps/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One PublicSteps", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "6c230821-c37d-437d-9ceb-dc0fe6957ef0", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "e6522e4e-087f-486d-aeee-8d32652a2f28", + "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}}/publicsteps/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publicsteps", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Publication", + "item": [ + { + "name": "Publications 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/publications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications" + ] + } + }, + "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 Publications", + "event": [ + { + "listen": "test", + "script": { + "id": "553a8050-fb86-47a8-8f93-37a907a02738", + "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 \"repositoryId\": \"Repo ID string of the publication\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/publications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications" + ] + } + }, + "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 Publications", + "event": [ + { + "listen": "test", + "script": { + "id": "d8d0a1f9-a868-4f4f-8e3d-e8e96fa1458f", + "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\": \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/publications", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications" + ] + } + }, + "response": [] + }, + { + "name": "Count Publications", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "93dcad6a-a2d5-4659-9af3-a015aede8ff6", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "db492e68-47d3-47da-9d38-58972d179eed", + "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}}/publications/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Publication", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "39fae62f-ad7c-410d-8ea6-6423ac1680fa", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "8162ac12-f1d6-4c90-b6b7-5f8982d2c1a0", + "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}}/publications/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "publications", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "RelatedDatafile", + "item": [ + { + "name": "RelatedDatafiles 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/relateddatafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles" + ] + } + }, + "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 RelatedDatafiles", + "event": [ + { + "listen": "test", + "script": { + "id": "84f14087-8291-48ac-abaa-75a134873d9e", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles" + ] + } + }, + "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 RelatedDatafiles", + "event": [ + { + "listen": "test", + "script": { + "id": "faf6ce26-fb58-4200-9bf3-d3bb8db1dd28", + "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 \"relation\": \"COPY\",\r\n \"sourceDatafile\": 5,\r\n \"destDatafile\": 7\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/relateddatafiles", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles" + ] + } + }, + "response": [] + }, + { + "name": "Count RelatedDatafiles", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "a7bef93c-4800-4688-981a-cb16c1fd1d36", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "8b3596b9-1489-444b-8494-6cb2ffad7893", + "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/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One RelatedDatafiles", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "0d25b2cc-0fc1-4321-9510-67b02583297e", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "2f9e8204-41fd-43ef-8690-d76e18f5ef50", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "relateddatafiles", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Rule", + "item": [ + { + "name": "Rules 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/rules", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules" + ] + } + }, + "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 Rules", + "event": [ + { + "listen": "test", + "script": { + "id": "6cb833a8-3034-458a-b68d-632fe0851a9c", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules" + ] + } + }, + "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 Rules", + "event": [ + { + "listen": "test", + "script": { + "id": "1471c292-609d-4fd5-baba-20a0fd67d36e", + "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 \"crudFlags\": \"CR\",\r\n \"what\": \"Investigation\",\r\n \"grouping\": 6\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/rules", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules" + ] + } + }, + "response": [] + }, + { + "name": "Count Rules", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "f36bb586-4341-4c36-883e-caa3e9058ce5", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "1187458b-a3ce-4eaf-a252-b5a4431f282c", + "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/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Rule", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "ba2732cf-1e44-4a89-8f6e-f91b47d3c368", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "3467ba68-a166-408c-a13d-4e7c451228e1", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "rules", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Sample", + "item": [ + { + "name": "Samples 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/samples", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples" + ] + } + }, + "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 Samples", + "event": [ + { + "listen": "test", + "script": { + "id": "0ef33b0b-6c7c-4832-8848-e376d7f550ae", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples" + ] + } + }, + "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 Samples", + "event": [ + { + "listen": "test", + "script": { + "id": "8bc6bf1d-37ca-4124-9447-d361ce24ede2", + "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\": \"Example Sample...\",\r\n \"investigation\": 43,\r\n \"type\": 4\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/samples", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples" + ] + } + }, + "response": [] + }, + { + "name": "Count Samples", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "b94f01c2-64c2-4732-a9c3-5b552fc1a4be", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "3d618b59-83b3-425e-82f7-d33585b15d47", + "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/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Sample", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "cb317aea-311b-45ce-89a2-32db131f2bdb", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "d3a1d351-ffb5-4d67-a1a7-715ac5919bb3", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "samples", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "SampleParameter", + "item": [ + { + "name": "SampleParameters 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sampleparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters" + ] + } + }, + "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 SampleParameters", + "event": [ + { + "listen": "test", + "script": { + "id": "894e2c76-18f2-4d45-a281-1c8d6f01371b", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters" + ] + } + }, + "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 SampleParameters", + "event": [ + { + "listen": "test", + "script": { + "id": "c6dc06d9-687f-4868-9d31-2dddb5b52351", + "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 \"sample\": 4,\r\n \"type\": 2\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/sampleparameters", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters" + ] + } + }, + "response": [] + }, + { + "name": "Count SampleParameters", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "603847a3-2726-48d1-9884-a2c9508769a5", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "742fe3e3-0480-4827-af0a-1321c3431e46", + "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}}/sampleparameters/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One SampleParameter", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "e77f8c9c-40a7-46ab-9b81-bdf1862c4347", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "14506129-7c10-4d4f-b089-86f41479418d", + "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}}/sampleparameters/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampleparameters", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "SampleType", + "item": [ + { + "name": "SampleTypes 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sampletypes", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes" + ] + } + }, + "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 SampleTypes", + "event": [ + { + "listen": "test", + "script": { + "id": "d4daca52-f2f1-444e-84e0-c5baca698b73", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes" + ] + } + }, + "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 SampleTypes", + "event": [ + { + "listen": "test", + "script": { + "id": "b5364e76-2f93-48e8-8ef4-8288b9bf3997", + "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\": \"Example Sample Typ2e...\",\r\n \"molecularFormula\": \"C3H5O2D4G5\",\r\n \"facility\": 1\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One SampleType", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "f1fe4e37-0121-4b92-b48d-011dd732ba29", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "fc8e1c39-1691-4f10-a20c-504dd6f0983f", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sampletypes", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Shift", + "item": [ + { + "name": "Shifts 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/shifts/", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "" + ] + } + }, + "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": "Update Shifts", + "event": [ + { + "listen": "test", + "script": { + "id": "c0cdf903-65a2-4a2c-9012-39889c0eff23", + "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/", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "" + ] + } + }, + "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 Shifts", + "event": [ + { + "listen": "test", + "script": { + "id": "48452bfa-78da-452c-8c7d-b85eca2da8e1", + "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 \"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" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/shifts", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts" + ] + } + }, + "response": [] + }, + { + "name": "Count Shifts", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "bb81fe3d-94a3-4f1a-a6a8-07bb2b377470", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "72311f1c-7ce7-4cd3-86a0-5bba2a93ca03", + "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/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "shifts", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Shift", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "e092bfef-9986-4390-a21e-1574178be1dc", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "077ac65f-d593-4a91-90f8-a59b35c0d645", + "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": [ + { + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "Study", + "item": [ + { + "name": "Studies 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/studies", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies" + ] + } + }, + "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 Studies", + "event": [ + { + "listen": "test", + "script": { + "id": "4ea561e5-c536-42fa-86f4-c6aa4faa8611", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies" + ] + } + }, + "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 Studies", + "event": [ + { + "listen": "test", + "script": { + "id": "baf1615c-50be-40a1-a409-b3b1954568d3", + "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\": \"Example Study Record\",\r\n \"status\": \"IN_PROGRESS\",\r\n \"user\": 51\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/studies", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies" + ] + } + }, + "response": [] + }, + { + "name": "Count Studies", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "7eaa6cee-1c8b-41a1-ad01-64b187ed95e9", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "5798aec8-d9f1-445d-86b9-4958cb527024", + "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/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Study", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "17d0ca0e-970e-4921-9fc8-9d1abc0c9a4e", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "69e5da30-901e-4754-a1da-4fa605bdfb97", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studies", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "StudyInvestigation", + "item": [ + { + "name": "StudyInvestigations 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", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/studyinvestigations?limit=2&include=\"investigation\"&distinct=\"investigation.id\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations" + ], + "query": [ + { + "key": "limit", + "value": "2" + }, + { + "key": "include", + "value": "\"investigation\"" + }, + { + "key": "order", + "value": "\"investigation.title desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"investigation.id\"" + } + ] + } + }, + "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 StudyInvestigations", + "event": [ + { + "listen": "test", + "script": { + "id": "1471db18-7687-4d14-aa1d-e072daf0cf7a", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations" + ] + } + }, + "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 StudyInvestigations", + "event": [ + { + "listen": "test", + "script": { + "id": "341d3e6f-863f-4726-b338-129ee254988d", + "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 \"study\": 4,\r\n \"investigation\": 16\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/studyinvestigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations" + ] + } + }, + "response": [] + }, + { + "name": "Count StudyInvestigations", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "91159127-6a75-4ad8-8b19-551c9d1b8986", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "ce4e3b69-8eaf-4a7f-b8f7-6164cafd9948", + "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/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One StudyInvestigation", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "3980666f-35e3-4979-af35-a8fa9f038dae", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "2dce257c-7dbd-418b-b20e-5907fcf7f4ef", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "studyinvestigations", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "User", + "item": [ + { + "name": "Users By Filter", + "event": [ + { + "listen": "test", + "script": { + "id": "b61ebbce-a0f9-4340-8619-501747de2085", + "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?where={\"id\": {\"in\": [1, 2, 3, 4, 5]}}", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [1, 2, 3, 4, 5]}}" + }, + { + "key": "include", + "value": "[\"userGroups\", {\"investigationUsers\":[\"investigation\"]}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"investigationUsers\":{\"investigation\": \"datasets\"}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", \"studies\", {\"investigationUsers\":{\"investigation\": \"datasets\"}}, \"instrumentScientists\"]", + "disabled": true + }, + { + "key": "include", + "value": "[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":[\"INVESTIGATION\"]}", + "disabled": true + }, + { + "key": "order", + "value": "\"userGroups.id desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"name\", \"fullName\", \"modTime\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"userGroups.id\": {\"eq\": 50}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"userGroups.id\", \"userGroups.modTime\", \"userGroups.user.id\", \"id\"]", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"investigationUsers.investigation.name\"", + "disabled": true + } + ] + } + }, + "response": [ + { + "name": "Users By Filter", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?distinct=\"NAME\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [492, 3]}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"ID desc\"", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "distinct", + "value": "\"NAME\"" + }, + { + "key": "where", + "value": "{\"id\": {\"like\": 4}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"name asc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"orcidId desc\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "20374" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Mon, 24 Aug 2020 12:18:53 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"NAME\": \"Aaron311\"\n },\n {\n \"NAME\": \"Aaron374\"\n },\n {\n \"NAME\": \"Aaron438\"\n },\n {\n \"NAME\": \"Adam133\"\n },\n {\n \"NAME\": \"Adam196\"\n },\n {\n \"NAME\": \"Adam428\"\n },\n {\n \"NAME\": \"Adam491\"\n },\n {\n \"NAME\": \"Adriana19\"\n },\n {\n \"NAME\": \"Adriana82\"\n },\n {\n \"NAME\": \"Alexandra135\"\n },\n {\n \"NAME\": \"Alexandra198\"\n },\n {\n \"NAME\": \"Alicia175\"\n },\n {\n \"NAME\": \"Alicia238\"\n },\n {\n \"NAME\": \"Alison113\"\n },\n {\n \"NAME\": \"Alison50\"\n },\n {\n \"NAME\": \"Alyssa420\"\n },\n {\n \"NAME\": \"Alyssa483\"\n },\n {\n \"NAME\": \"Amanda259\"\n },\n {\n \"NAME\": \"Amanda322\"\n },\n {\n \"NAME\": \"Amy160\"\n },\n {\n \"NAME\": \"Amy223\"\n },\n {\n \"NAME\": \"Andrea392\"\n },\n {\n \"NAME\": \"Andrea435\"\n },\n {\n \"NAME\": \"Andrea455\"\n },\n {\n \"NAME\": \"Andrea498\"\n },\n {\n \"NAME\": \"Andrew147\"\n },\n {\n \"NAME\": \"Andrew151\"\n },\n {\n \"NAME\": \"Andrew167\"\n },\n {\n \"NAME\": \"Andrew210\"\n },\n {\n \"NAME\": \"Andrew214\"\n },\n {\n \"NAME\": \"Andrew230\"\n },\n {\n \"NAME\": \"Andrew390\"\n },\n {\n \"NAME\": \"Andrew453\"\n },\n {\n \"NAME\": \"Angel34\"\n },\n {\n \"NAME\": \"Angel97\"\n },\n {\n \"NAME\": \"Angela399\"\n },\n {\n \"NAME\": \"Angela462\"\n },\n {\n \"NAME\": \"Anna303\"\n },\n {\n \"NAME\": \"Anna366\"\n },\n {\n \"NAME\": \"Anne172\"\n },\n {\n \"NAME\": \"Anne235\"\n },\n {\n \"NAME\": \"Anthony395\"\n },\n {\n \"NAME\": \"Anthony458\"\n },\n {\n \"NAME\": \"April271\"\n },\n {\n \"NAME\": \"April334\"\n },\n {\n \"NAME\": \"Ashley159\"\n },\n {\n \"NAME\": \"Ashley222\"\n },\n {\n \"NAME\": \"Bailey400\"\n },\n {\n \"NAME\": \"Bailey463\"\n },\n {\n \"NAME\": \"Barbara115\"\n },\n {\n \"NAME\": \"Barbara385\"\n },\n {\n \"NAME\": \"Barbara448\"\n },\n {\n \"NAME\": \"Barbara52\"\n },\n {\n \"NAME\": \"Benjamin15\"\n },\n {\n \"NAME\": \"Benjamin78\"\n },\n {\n \"NAME\": \"Beverly143\"\n },\n {\n \"NAME\": \"Beverly206\"\n },\n {\n \"NAME\": \"Brandon396\"\n },\n {\n \"NAME\": \"Brandon459\"\n },\n {\n \"NAME\": \"Brandy121\"\n },\n {\n \"NAME\": \"Brandy58\"\n },\n {\n \"NAME\": \"Brenda144\"\n },\n {\n \"NAME\": \"Brenda207\"\n },\n {\n \"NAME\": \"Brittany295\"\n },\n {\n \"NAME\": \"Brittany358\"\n },\n {\n \"NAME\": \"Bryan171\"\n },\n {\n \"NAME\": \"Bryan234\"\n },\n {\n \"NAME\": \"Carl1\"\n },\n {\n \"NAME\": \"Carl64\"\n },\n {\n \"NAME\": \"Carla110\"\n },\n {\n \"NAME\": \"Carla47\"\n },\n {\n \"NAME\": \"Carlos169\"\n },\n {\n \"NAME\": \"Carlos232\"\n },\n {\n \"NAME\": \"Carol284\"\n },\n {\n \"NAME\": \"Carol347\"\n },\n {\n \"NAME\": \"Casey148\"\n },\n {\n \"NAME\": \"Casey211\"\n },\n {\n \"NAME\": \"Catherine275\"\n },\n {\n \"NAME\": \"Catherine338\"\n },\n {\n \"NAME\": \"Catherine406\"\n },\n {\n \"NAME\": \"Catherine469\"\n },\n {\n \"NAME\": \"Charlotte150\"\n },\n {\n \"NAME\": \"Charlotte213\"\n },\n {\n \"NAME\": \"Christina381\"\n },\n {\n \"NAME\": \"Christina444\"\n },\n {\n \"NAME\": \"Christopher11\"\n },\n {\n \"NAME\": \"Christopher124\"\n },\n {\n \"NAME\": \"Christopher156\"\n },\n {\n \"NAME\": \"Christopher186\"\n },\n {\n \"NAME\": \"Christopher188\"\n },\n {\n \"NAME\": \"Christopher219\"\n },\n {\n \"NAME\": \"Christopher249\"\n },\n {\n \"NAME\": \"Christopher251\"\n },\n {\n \"NAME\": \"Christopher262\"\n },\n {\n \"NAME\": \"Christopher29\"\n },\n {\n \"NAME\": \"Christopher325\"\n },\n {\n \"NAME\": \"Christopher6\"\n },\n {\n \"NAME\": \"Christopher61\"\n },\n {\n \"NAME\": \"Christopher69\"\n },\n {\n \"NAME\": \"Christopher74\"\n },\n {\n \"NAME\": \"Christopher92\"\n },\n {\n \"NAME\": \"Colleen283\"\n },\n {\n \"NAME\": \"Colleen346\"\n },\n {\n \"NAME\": \"Curtis14\"\n },\n {\n \"NAME\": \"Curtis77\"\n },\n {\n \"NAME\": \"Dana154\"\n },\n {\n \"NAME\": \"Dana217\"\n },\n {\n \"NAME\": \"Daniel20\"\n },\n {\n \"NAME\": \"Daniel267\"\n },\n {\n \"NAME\": \"Daniel296\"\n },\n {\n \"NAME\": \"Daniel330\"\n },\n {\n \"NAME\": \"Daniel359\"\n },\n {\n \"NAME\": \"Daniel83\"\n },\n {\n \"NAME\": \"Darryl436\"\n },\n {\n \"NAME\": \"Darryl499\"\n },\n {\n \"NAME\": \"David383\"\n },\n {\n \"NAME\": \"David386\"\n },\n {\n \"NAME\": \"David418\"\n },\n {\n \"NAME\": \"David429\"\n },\n {\n \"NAME\": \"David446\"\n },\n {\n \"NAME\": \"David449\"\n },\n {\n \"NAME\": \"David481\"\n },\n {\n \"NAME\": \"David492\"\n },\n {\n \"NAME\": \"Dawn297\"\n },\n {\n \"NAME\": \"Dawn360\"\n },\n {\n \"NAME\": \"Debbie162\"\n },\n {\n \"NAME\": \"Debbie225\"\n },\n {\n \"NAME\": \"Denise117\"\n },\n {\n \"NAME\": \"Denise54\"\n },\n {\n \"NAME\": \"Dennis161\"\n },\n {\n \"NAME\": \"Dennis224\"\n },\n {\n \"NAME\": \"Dennis402\"\n },\n {\n \"NAME\": \"Dennis465\"\n },\n {\n \"NAME\": \"Derek111\"\n },\n {\n \"NAME\": \"Derek48\"\n },\n {\n \"NAME\": \"Desiree404\"\n },\n {\n \"NAME\": \"Desiree467\"\n },\n {\n \"NAME\": \"Diane24\"\n },\n {\n \"NAME\": \"Diane87\"\n },\n {\n \"NAME\": \"Douglas178\"\n },\n {\n \"NAME\": \"Douglas241\"\n },\n {\n \"NAME\": \"Dustin7\"\n },\n {\n \"NAME\": \"Dustin70\"\n },\n {\n \"NAME\": \"Eric391\"\n },\n {\n \"NAME\": \"Eric454\"\n },\n {\n \"NAME\": \"Erica4\"\n },\n {\n \"NAME\": \"Erica67\"\n },\n {\n \"NAME\": \"Erik183\"\n },\n {\n \"NAME\": \"Erik246\"\n },\n {\n \"NAME\": \"Erin112\"\n },\n {\n \"NAME\": \"Erin268\"\n },\n {\n \"NAME\": \"Erin331\"\n },\n {\n \"NAME\": \"Erin49\"\n },\n {\n \"NAME\": \"Francisco71\"\n },\n {\n \"NAME\": \"Francisco8\"\n },\n {\n \"NAME\": \"Frank138\"\n },\n {\n \"NAME\": \"Frank201\"\n },\n {\n \"NAME\": \"Frank25\"\n },\n {\n \"NAME\": \"Frank88\"\n },\n {\n \"NAME\": \"Garrett157\"\n },\n {\n \"NAME\": \"Garrett220\"\n },\n {\n \"NAME\": \"George16\"\n },\n {\n \"NAME\": \"George306\"\n },\n {\n \"NAME\": \"George369\"\n },\n {\n \"NAME\": \"George79\"\n },\n {\n \"NAME\": \"Gerald164\"\n },\n {\n \"NAME\": \"Gerald227\"\n },\n {\n \"NAME\": \"Gregory274\"\n },\n {\n \"NAME\": \"Gregory337\"\n },\n {\n \"NAME\": \"Gregory426\"\n },\n {\n \"NAME\": \"Gregory489\"\n },\n {\n \"NAME\": \"Howard256\"\n },\n {\n \"NAME\": \"Howard319\"\n },\n {\n \"NAME\": \"Jacob181\"\n },\n {\n \"NAME\": \"Jacob244\"\n },\n {\n \"NAME\": \"Jacqueline440\"\n },\n {\n \"NAME\": \"James10\"\n },\n {\n \"NAME\": \"James109\"\n },\n {\n \"NAME\": \"James12\"\n },\n {\n \"NAME\": \"James155\"\n },\n {\n \"NAME\": \"James218\"\n },\n {\n \"NAME\": \"James382\"\n },\n {\n \"NAME\": \"James412\"\n },\n {\n \"NAME\": \"James417\"\n },\n {\n \"NAME\": \"James445\"\n },\n {\n \"NAME\": \"James46\"\n },\n {\n \"NAME\": \"James475\"\n },\n {\n \"NAME\": \"James480\"\n },\n {\n \"NAME\": \"James73\"\n },\n {\n \"NAME\": \"James75\"\n },\n {\n \"NAME\": \"Jared128\"\n },\n {\n \"NAME\": \"Jared191\"\n },\n {\n \"NAME\": \"Jason103\"\n },\n {\n \"NAME\": \"Jason40\"\n },\n {\n \"NAME\": \"Jeffrey264\"\n },\n {\n \"NAME\": \"Jeffrey327\"\n },\n {\n \"NAME\": \"Jennifer185\"\n },\n {\n \"NAME\": \"Jennifer248\"\n },\n {\n \"NAME\": \"Jeremy141\"\n },\n {\n \"NAME\": \"Jeremy204\"\n },\n {\n \"NAME\": \"Jeremy414\"\n },\n {\n \"NAME\": \"Jeremy477\"\n },\n {\n \"NAME\": \"Jerry257\"\n },\n {\n \"NAME\": \"Jerry320\"\n },\n {\n \"NAME\": \"Jessica305\"\n },\n {\n \"NAME\": \"Jessica368\"\n },\n {\n \"NAME\": \"Jessica433\"\n },\n {\n \"NAME\": \"Jessica496\"\n },\n {\n \"NAME\": \"Joe269\"\n },\n {\n \"NAME\": \"Joe332\"\n },\n {\n \"NAME\": \"John187\"\n },\n {\n \"NAME\": \"John189\"\n },\n {\n \"NAME\": \"John250\"\n },\n {\n \"NAME\": \"John252\"\n },\n {\n \"NAME\": \"John30\"\n },\n {\n \"NAME\": \"John300\"\n },\n {\n \"NAME\": \"John308\"\n },\n {\n \"NAME\": \"John32\"\n },\n {\n \"NAME\": \"John363\"\n },\n {\n \"NAME\": \"John371\"\n },\n {\n \"NAME\": \"John397\"\n },\n {\n \"NAME\": \"John434\"\n },\n {\n \"NAME\": \"John460\"\n },\n {\n \"NAME\": \"John497\"\n },\n {\n \"NAME\": \"John93\"\n },\n {\n \"NAME\": \"John95\"\n },\n {\n \"NAME\": \"Johnny279\"\n },\n {\n \"NAME\": \"Johnny342\"\n },\n {\n \"NAME\": \"Jonathan100\"\n },\n {\n \"NAME\": \"Jonathan17\"\n },\n {\n \"NAME\": \"Jonathan260\"\n },\n {\n \"NAME\": \"Jonathan323\"\n },\n {\n \"NAME\": \"Jonathan37\"\n },\n {\n \"NAME\": \"Jonathan415\"\n },\n {\n \"NAME\": \"Jonathan478\"\n },\n {\n \"NAME\": \"Jonathan80\"\n },\n {\n \"NAME\": \"Joseph163\"\n },\n {\n \"NAME\": \"Joseph165\"\n },\n {\n \"NAME\": \"Joseph226\"\n },\n {\n \"NAME\": \"Joseph228\"\n },\n {\n \"NAME\": \"Joseph411\"\n },\n {\n \"NAME\": \"Joseph432\"\n },\n {\n \"NAME\": \"Joseph474\"\n },\n {\n \"NAME\": \"Joseph495\"\n },\n {\n \"NAME\": \"Julie27\"\n },\n {\n \"NAME\": \"Julie90\"\n },\n {\n \"NAME\": \"Justin389\"\n },\n {\n \"NAME\": \"Justin452\"\n },\n {\n \"NAME\": \"Kaitlyn106\"\n },\n {\n \"NAME\": \"Kaitlyn43\"\n },\n {\n \"NAME\": \"Karen280\"\n },\n {\n \"NAME\": \"Karen343\"\n },\n {\n \"NAME\": \"Karen407\"\n },\n {\n \"NAME\": \"Karen425\"\n },\n {\n \"NAME\": \"Karen470\"\n },\n {\n \"NAME\": \"Karen488\"\n },\n {\n \"NAME\": \"Katherine119\"\n },\n {\n \"NAME\": \"Katherine22\"\n },\n {\n \"NAME\": \"Katherine56\"\n },\n {\n \"NAME\": \"Katherine85\"\n },\n {\n \"NAME\": \"Kelly302\"\n },\n {\n \"NAME\": \"Kelly365\"\n },\n {\n \"NAME\": \"Kevin134\"\n },\n {\n \"NAME\": \"Kevin197\"\n },\n {\n \"NAME\": \"Kim380\"\n },\n {\n \"NAME\": \"Kim443\"\n },\n {\n \"NAME\": \"Kimberly23\"\n },\n {\n \"NAME\": \"Kimberly26\"\n },\n {\n \"NAME\": \"Kimberly86\"\n },\n {\n \"NAME\": \"Kimberly89\"\n },\n {\n \"NAME\": \"Kristen315\"\n },\n {\n \"NAME\": \"Kristen378\"\n },\n {\n \"NAME\": \"Kristy423\"\n },\n {\n \"NAME\": \"Kristy486\"\n },\n {\n \"NAME\": \"Kyle388\"\n },\n {\n \"NAME\": \"Kyle451\"\n },\n {\n \"NAME\": \"Leah21\"\n },\n {\n \"NAME\": \"Leah84\"\n },\n {\n \"NAME\": \"Linda142\"\n },\n {\n \"NAME\": \"Linda205\"\n },\n {\n \"NAME\": \"Lindsey127\"\n },\n {\n \"NAME\": \"Lindsey190\"\n },\n {\n \"NAME\": \"Lisa136\"\n },\n {\n \"NAME\": \"Lisa179\"\n },\n {\n \"NAME\": \"Lisa199\"\n },\n {\n \"NAME\": \"Lisa242\"\n },\n {\n \"NAME\": \"Lisa276\"\n },\n {\n \"NAME\": \"Lisa339\"\n },\n {\n \"NAME\": \"Lisa398\"\n },\n {\n \"NAME\": \"Lisa461\"\n },\n {\n \"NAME\": \"Logan35\"\n },\n {\n \"NAME\": \"Logan98\"\n },\n {\n \"NAME\": \"Loretta3\"\n },\n {\n \"NAME\": \"Loretta66\"\n },\n {\n \"NAME\": \"Madison137\"\n },\n {\n \"NAME\": \"Madison200\"\n },\n {\n \"NAME\": \"Maria285\"\n },\n {\n \"NAME\": \"Maria348\"\n },\n {\n \"NAME\": \"Maria405\"\n },\n {\n \"NAME\": \"Maria468\"\n },\n {\n \"NAME\": \"Marie108\"\n },\n {\n \"NAME\": \"Marie45\"\n },\n {\n \"NAME\": \"Marissa401\"\n },\n {\n \"NAME\": \"Marissa464\"\n },\n {\n \"NAME\": \"Mark263\"\n },\n {\n \"NAME\": \"Mark326\"\n },\n {\n \"NAME\": \"Mary430\"\n },\n {\n \"NAME\": \"Mary493\"\n },\n {\n \"NAME\": \"Matthew18\"\n },\n {\n \"NAME\": \"Matthew293\"\n },\n {\n \"NAME\": \"Matthew356\"\n },\n {\n \"NAME\": \"Matthew379\"\n },\n {\n \"NAME\": \"Matthew409\"\n },\n {\n \"NAME\": \"Matthew437\"\n },\n {\n \"NAME\": \"Matthew442\"\n },\n {\n \"NAME\": \"Matthew472\"\n },\n {\n \"NAME\": \"Matthew81\"\n },\n {\n \"NAME\": \"Megan291\"\n },\n {\n \"NAME\": \"Megan354\"\n },\n {\n \"NAME\": \"Megan387\"\n },\n {\n \"NAME\": \"Megan450\"\n },\n {\n \"NAME\": \"Melissa422\"\n },\n {\n \"NAME\": \"Melissa485\"\n },\n {\n \"NAME\": \"Michael122\"\n },\n {\n \"NAME\": \"Michael123\"\n },\n {\n \"NAME\": \"Michael168\"\n },\n {\n \"NAME\": \"Michael174\"\n },\n {\n \"NAME\": \"Michael231\"\n },\n {\n \"NAME\": \"Michael237\"\n },\n {\n \"NAME\": \"Michael410\"\n },\n {\n \"NAME\": \"Michael473\"\n },\n {\n \"NAME\": \"Michael59\"\n },\n {\n \"NAME\": \"Michael60\"\n },\n {\n \"NAME\": \"Micheal139\"\n },\n {\n \"NAME\": \"Micheal202\"\n },\n {\n \"NAME\": \"Michelle129\"\n },\n {\n \"NAME\": \"Michelle170\"\n },\n {\n \"NAME\": \"Michelle192\"\n },\n {\n \"NAME\": \"Michelle233\"\n },\n {\n \"NAME\": \"Michelle254\"\n },\n {\n \"NAME\": \"Michelle317\"\n },\n {\n \"NAME\": \"Michelle419\"\n },\n {\n \"NAME\": \"Michelle482\"\n },\n {\n \"NAME\": \"Miguel104\"\n },\n {\n \"NAME\": \"Miguel41\"\n },\n {\n \"NAME\": \"Monica393\"\n },\n {\n \"NAME\": \"Monica456\"\n },\n {\n \"NAME\": \"Nancy114\"\n },\n {\n \"NAME\": \"Nancy51\"\n },\n {\n \"NAME\": \"Natalie266\"\n },\n {\n \"NAME\": \"Natalie329\"\n },\n {\n \"NAME\": \"Natasha153\"\n },\n {\n \"NAME\": \"Natasha216\"\n },\n {\n \"NAME\": \"Nicholas255\"\n },\n {\n \"NAME\": \"Nicholas318\"\n },\n {\n \"NAME\": \"Nicholas33\"\n },\n {\n \"NAME\": \"Nicholas96\"\n },\n {\n \"NAME\": \"Norma258\"\n },\n {\n \"NAME\": \"Norma321\"\n },\n {\n \"NAME\": \"Olivia31\"\n },\n {\n \"NAME\": \"Olivia94\"\n },\n {\n \"NAME\": \"Pamela265\"\n },\n {\n \"NAME\": \"Pamela328\"\n },\n {\n \"NAME\": \"Patrick273\"\n },\n {\n \"NAME\": \"Patrick281\"\n },\n {\n \"NAME\": \"Patrick336\"\n },\n {\n \"NAME\": \"Patrick344\"\n },\n {\n \"NAME\": \"Peter184\"\n },\n {\n \"NAME\": \"Peter247\"\n },\n {\n \"NAME\": \"Phyllis441\"\n },\n {\n \"NAME\": \"Rachel173\"\n },\n {\n \"NAME\": \"Rachel236\"\n },\n {\n \"NAME\": \"Raymond394\"\n },\n {\n \"NAME\": \"Raymond457\"\n },\n {\n \"NAME\": \"Rebecca101\"\n },\n {\n \"NAME\": \"Rebecca38\"\n },\n {\n \"NAME\": \"Ricardo158\"\n },\n {\n \"NAME\": \"Ricardo221\"\n },\n {\n \"NAME\": \"Richard290\"\n },\n {\n \"NAME\": \"Richard353\"\n },\n {\n \"NAME\": \"Ricky288\"\n },\n {\n \"NAME\": \"Ricky351\"\n },\n {\n \"NAME\": \"Rita309\"\n },\n {\n \"NAME\": \"Rita372\"\n },\n {\n \"NAME\": \"Robert431\"\n },\n {\n \"NAME\": \"Robert494\"\n },\n {\n \"NAME\": \"Robert5\"\n },\n {\n \"NAME\": \"Robert68\"\n },\n {\n \"NAME\": \"Robin307\"\n },\n {\n \"NAME\": \"Robin370\"\n },\n {\n \"NAME\": \"Ruth286\"\n },\n {\n \"NAME\": \"Ruth349\"\n },\n {\n \"NAME\": \"Ryan272\"\n },\n {\n \"NAME\": \"Ryan335\"\n },\n {\n \"NAME\": \"Ryan72\"\n },\n {\n \"NAME\": \"Ryan9\"\n },\n {\n \"NAME\": \"Samantha304\"\n },\n {\n \"NAME\": \"Samantha367\"\n },\n {\n \"NAME\": \"Samuel120\"\n },\n {\n \"NAME\": \"Samuel28\"\n },\n {\n \"NAME\": \"Samuel416\"\n },\n {\n \"NAME\": \"Samuel479\"\n },\n {\n \"NAME\": \"Samuel57\"\n },\n {\n \"NAME\": \"Samuel91\"\n },\n {\n \"NAME\": \"Sandra126\"\n },\n {\n \"NAME\": \"Sandra313\"\n },\n {\n \"NAME\": \"Sandra376\"\n },\n {\n \"NAME\": \"Sandra63\"\n },\n {\n \"NAME\": \"Sarah298\"\n },\n {\n \"NAME\": \"Sarah314\"\n },\n {\n \"NAME\": \"Sarah361\"\n },\n {\n \"NAME\": \"Sarah377\"\n },\n {\n \"NAME\": \"Sarah408\"\n },\n {\n \"NAME\": \"Sarah471\"\n },\n {\n \"NAME\": \"Savannah130\"\n },\n {\n \"NAME\": \"Savannah193\"\n },\n {\n \"NAME\": \"Scott413\"\n },\n {\n \"NAME\": \"Scott476\"\n },\n {\n \"NAME\": \"Shane253\"\n },\n {\n \"NAME\": \"Shane316\"\n },\n {\n \"NAME\": \"Shannon107\"\n },\n {\n \"NAME\": \"Shannon278\"\n },\n {\n \"NAME\": \"Shannon341\"\n },\n {\n \"NAME\": \"Shannon384\"\n },\n {\n \"NAME\": \"Shannon44\"\n },\n {\n \"NAME\": \"Shannon447\"\n },\n {\n \"NAME\": \"Shelly36\"\n },\n {\n \"NAME\": \"Shelly99\"\n },\n {\n \"NAME\": \"Sherry289\"\n },\n {\n \"NAME\": \"Sherry352\"\n },\n {\n \"NAME\": \"Sierra261\"\n },\n {\n \"NAME\": \"Sierra324\"\n },\n {\n \"NAME\": \"Stephanie145\"\n },\n {\n \"NAME\": \"Stephanie208\"\n },\n {\n \"NAME\": \"Stephanie403\"\n },\n {\n \"NAME\": \"Stephanie466\"\n },\n {\n \"NAME\": \"Stephen177\"\n },\n {\n \"NAME\": \"Stephen240\"\n },\n {\n \"NAME\": \"Stephen427\"\n },\n {\n \"NAME\": \"Stephen490\"\n },\n {\n \"NAME\": \"Steven176\"\n },\n {\n \"NAME\": \"Steven239\"\n },\n {\n \"NAME\": \"Steven270\"\n },\n {\n \"NAME\": \"Steven301\"\n },\n {\n \"NAME\": \"Steven312\"\n },\n {\n \"NAME\": \"Steven333\"\n },\n {\n \"NAME\": \"Steven364\"\n },\n {\n \"NAME\": \"Steven375\"\n },\n {\n \"NAME\": \"Susan116\"\n },\n {\n \"NAME\": \"Susan140\"\n },\n {\n \"NAME\": \"Susan203\"\n },\n {\n \"NAME\": \"Susan53\"\n },\n {\n \"NAME\": \"Tamara146\"\n },\n {\n \"NAME\": \"Tamara209\"\n },\n {\n \"NAME\": \"Tammie125\"\n },\n {\n \"NAME\": \"Tammie62\"\n },\n {\n \"NAME\": \"Taylor287\"\n },\n {\n \"NAME\": \"Taylor350\"\n },\n {\n \"NAME\": \"Theresa182\"\n },\n {\n \"NAME\": \"Theresa245\"\n },\n {\n \"NAME\": \"Thomas105\"\n },\n {\n \"NAME\": \"Thomas149\"\n },\n {\n \"NAME\": \"Thomas166\"\n },\n {\n \"NAME\": \"Thomas212\"\n },\n {\n \"NAME\": \"Thomas229\"\n },\n {\n \"NAME\": \"Thomas42\"\n },\n {\n \"NAME\": \"Tiffany13\"\n },\n {\n \"NAME\": \"Tiffany76\"\n },\n {\n \"NAME\": \"Timothy294\"\n },\n {\n \"NAME\": \"Timothy299\"\n },\n {\n \"NAME\": \"Timothy357\"\n },\n {\n \"NAME\": \"Timothy362\"\n },\n {\n \"NAME\": \"Tina180\"\n },\n {\n \"NAME\": \"Tina243\"\n },\n {\n \"NAME\": \"Tina277\"\n },\n {\n \"NAME\": \"Tina310\"\n },\n {\n \"NAME\": \"Tina340\"\n },\n {\n \"NAME\": \"Tina373\"\n },\n {\n \"NAME\": \"Todd421\"\n },\n {\n \"NAME\": \"Todd484\"\n },\n {\n \"NAME\": \"Tonya102\"\n },\n {\n \"NAME\": \"Tonya39\"\n },\n {\n \"NAME\": \"Travis132\"\n },\n {\n \"NAME\": \"Travis195\"\n },\n {\n \"NAME\": \"Vanessa282\"\n },\n {\n \"NAME\": \"Vanessa345\"\n },\n {\n \"NAME\": \"Victor292\"\n },\n {\n \"NAME\": \"Victor355\"\n },\n {\n \"NAME\": \"Victoria424\"\n },\n {\n \"NAME\": \"Victoria487\"\n },\n {\n \"NAME\": \"Whitney118\"\n },\n {\n \"NAME\": \"Whitney2\"\n },\n {\n \"NAME\": \"Whitney55\"\n },\n {\n \"NAME\": \"Whitney65\"\n },\n {\n \"NAME\": \"Zachary131\"\n },\n {\n \"NAME\": \"Zachary152\"\n },\n {\n \"NAME\": \"Zachary194\"\n },\n {\n \"NAME\": \"Zachary215\"\n }\n]" + }, + { + "name": "Users By Filter", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?distinct=\"NAME\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [492, 3]}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"ID desc\"", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "distinct", + "value": "\"NAME\"" + }, + { + "key": "where", + "value": "{\"id\": {\"like\": 4}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"name asc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"orcidId desc\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "20374" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Mon, 24 Aug 2020 12:18:53 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"NAME\": \"Aaron311\"\n },\n {\n \"NAME\": \"Aaron374\"\n },\n {\n \"NAME\": \"Aaron438\"\n },\n {\n \"NAME\": \"Adam133\"\n },\n {\n \"NAME\": \"Adam196\"\n },\n {\n \"NAME\": \"Adam428\"\n },\n {\n \"NAME\": \"Adam491\"\n },\n {\n \"NAME\": \"Adriana19\"\n },\n {\n \"NAME\": \"Adriana82\"\n },\n {\n \"NAME\": \"Alexandra135\"\n },\n {\n \"NAME\": \"Alexandra198\"\n },\n {\n \"NAME\": \"Alicia175\"\n },\n {\n \"NAME\": \"Alicia238\"\n },\n {\n \"NAME\": \"Alison113\"\n },\n {\n \"NAME\": \"Alison50\"\n },\n {\n \"NAME\": \"Alyssa420\"\n },\n {\n \"NAME\": \"Alyssa483\"\n },\n {\n \"NAME\": \"Amanda259\"\n },\n {\n \"NAME\": \"Amanda322\"\n },\n {\n \"NAME\": \"Amy160\"\n },\n {\n \"NAME\": \"Amy223\"\n },\n {\n \"NAME\": \"Andrea392\"\n },\n {\n \"NAME\": \"Andrea435\"\n },\n {\n \"NAME\": \"Andrea455\"\n },\n {\n \"NAME\": \"Andrea498\"\n },\n {\n \"NAME\": \"Andrew147\"\n },\n {\n \"NAME\": \"Andrew151\"\n },\n {\n \"NAME\": \"Andrew167\"\n },\n {\n \"NAME\": \"Andrew210\"\n },\n {\n \"NAME\": \"Andrew214\"\n },\n {\n \"NAME\": \"Andrew230\"\n },\n {\n \"NAME\": \"Andrew390\"\n },\n {\n \"NAME\": \"Andrew453\"\n },\n {\n \"NAME\": \"Angel34\"\n },\n {\n \"NAME\": \"Angel97\"\n },\n {\n \"NAME\": \"Angela399\"\n },\n {\n \"NAME\": \"Angela462\"\n },\n {\n \"NAME\": \"Anna303\"\n },\n {\n \"NAME\": \"Anna366\"\n },\n {\n \"NAME\": \"Anne172\"\n },\n {\n \"NAME\": \"Anne235\"\n },\n {\n \"NAME\": \"Anthony395\"\n },\n {\n \"NAME\": \"Anthony458\"\n },\n {\n \"NAME\": \"April271\"\n },\n {\n \"NAME\": \"April334\"\n },\n {\n \"NAME\": \"Ashley159\"\n },\n {\n \"NAME\": \"Ashley222\"\n },\n {\n \"NAME\": \"Bailey400\"\n },\n {\n \"NAME\": \"Bailey463\"\n },\n {\n \"NAME\": \"Barbara115\"\n },\n {\n \"NAME\": \"Barbara385\"\n },\n {\n \"NAME\": \"Barbara448\"\n },\n {\n \"NAME\": \"Barbara52\"\n },\n {\n \"NAME\": \"Benjamin15\"\n },\n {\n \"NAME\": \"Benjamin78\"\n },\n {\n \"NAME\": \"Beverly143\"\n },\n {\n \"NAME\": \"Beverly206\"\n },\n {\n \"NAME\": \"Brandon396\"\n },\n {\n \"NAME\": \"Brandon459\"\n },\n {\n \"NAME\": \"Brandy121\"\n },\n {\n \"NAME\": \"Brandy58\"\n },\n {\n \"NAME\": \"Brenda144\"\n },\n {\n \"NAME\": \"Brenda207\"\n },\n {\n \"NAME\": \"Brittany295\"\n },\n {\n \"NAME\": \"Brittany358\"\n },\n {\n \"NAME\": \"Bryan171\"\n },\n {\n \"NAME\": \"Bryan234\"\n },\n {\n \"NAME\": \"Carl1\"\n },\n {\n \"NAME\": \"Carl64\"\n },\n {\n \"NAME\": \"Carla110\"\n },\n {\n \"NAME\": \"Carla47\"\n },\n {\n \"NAME\": \"Carlos169\"\n },\n {\n \"NAME\": \"Carlos232\"\n },\n {\n \"NAME\": \"Carol284\"\n },\n {\n \"NAME\": \"Carol347\"\n },\n {\n \"NAME\": \"Casey148\"\n },\n {\n \"NAME\": \"Casey211\"\n },\n {\n \"NAME\": \"Catherine275\"\n },\n {\n \"NAME\": \"Catherine338\"\n },\n {\n \"NAME\": \"Catherine406\"\n },\n {\n \"NAME\": \"Catherine469\"\n },\n {\n \"NAME\": \"Charlotte150\"\n },\n {\n \"NAME\": \"Charlotte213\"\n },\n {\n \"NAME\": \"Christina381\"\n },\n {\n \"NAME\": \"Christina444\"\n },\n {\n \"NAME\": \"Christopher11\"\n },\n {\n \"NAME\": \"Christopher124\"\n },\n {\n \"NAME\": \"Christopher156\"\n },\n {\n \"NAME\": \"Christopher186\"\n },\n {\n \"NAME\": \"Christopher188\"\n },\n {\n \"NAME\": \"Christopher219\"\n },\n {\n \"NAME\": \"Christopher249\"\n },\n {\n \"NAME\": \"Christopher251\"\n },\n {\n \"NAME\": \"Christopher262\"\n },\n {\n \"NAME\": \"Christopher29\"\n },\n {\n \"NAME\": \"Christopher325\"\n },\n {\n \"NAME\": \"Christopher6\"\n },\n {\n \"NAME\": \"Christopher61\"\n },\n {\n \"NAME\": \"Christopher69\"\n },\n {\n \"NAME\": \"Christopher74\"\n },\n {\n \"NAME\": \"Christopher92\"\n },\n {\n \"NAME\": \"Colleen283\"\n },\n {\n \"NAME\": \"Colleen346\"\n },\n {\n \"NAME\": \"Curtis14\"\n },\n {\n \"NAME\": \"Curtis77\"\n },\n {\n \"NAME\": \"Dana154\"\n },\n {\n \"NAME\": \"Dana217\"\n },\n {\n \"NAME\": \"Daniel20\"\n },\n {\n \"NAME\": \"Daniel267\"\n },\n {\n \"NAME\": \"Daniel296\"\n },\n {\n \"NAME\": \"Daniel330\"\n },\n {\n \"NAME\": \"Daniel359\"\n },\n {\n \"NAME\": \"Daniel83\"\n },\n {\n \"NAME\": \"Darryl436\"\n },\n {\n \"NAME\": \"Darryl499\"\n },\n {\n \"NAME\": \"David383\"\n },\n {\n \"NAME\": \"David386\"\n },\n {\n \"NAME\": \"David418\"\n },\n {\n \"NAME\": \"David429\"\n },\n {\n \"NAME\": \"David446\"\n },\n {\n \"NAME\": \"David449\"\n },\n {\n \"NAME\": \"David481\"\n },\n {\n \"NAME\": \"David492\"\n },\n {\n \"NAME\": \"Dawn297\"\n },\n {\n \"NAME\": \"Dawn360\"\n },\n {\n \"NAME\": \"Debbie162\"\n },\n {\n \"NAME\": \"Debbie225\"\n },\n {\n \"NAME\": \"Denise117\"\n },\n {\n \"NAME\": \"Denise54\"\n },\n {\n \"NAME\": \"Dennis161\"\n },\n {\n \"NAME\": \"Dennis224\"\n },\n {\n \"NAME\": \"Dennis402\"\n },\n {\n \"NAME\": \"Dennis465\"\n },\n {\n \"NAME\": \"Derek111\"\n },\n {\n \"NAME\": \"Derek48\"\n },\n {\n \"NAME\": \"Desiree404\"\n },\n {\n \"NAME\": \"Desiree467\"\n },\n {\n \"NAME\": \"Diane24\"\n },\n {\n \"NAME\": \"Diane87\"\n },\n {\n \"NAME\": \"Douglas178\"\n },\n {\n \"NAME\": \"Douglas241\"\n },\n {\n \"NAME\": \"Dustin7\"\n },\n {\n \"NAME\": \"Dustin70\"\n },\n {\n \"NAME\": \"Eric391\"\n },\n {\n \"NAME\": \"Eric454\"\n },\n {\n \"NAME\": \"Erica4\"\n },\n {\n \"NAME\": \"Erica67\"\n },\n {\n \"NAME\": \"Erik183\"\n },\n {\n \"NAME\": \"Erik246\"\n },\n {\n \"NAME\": \"Erin112\"\n },\n {\n \"NAME\": \"Erin268\"\n },\n {\n \"NAME\": \"Erin331\"\n },\n {\n \"NAME\": \"Erin49\"\n },\n {\n \"NAME\": \"Francisco71\"\n },\n {\n \"NAME\": \"Francisco8\"\n },\n {\n \"NAME\": \"Frank138\"\n },\n {\n \"NAME\": \"Frank201\"\n },\n {\n \"NAME\": \"Frank25\"\n },\n {\n \"NAME\": \"Frank88\"\n },\n {\n \"NAME\": \"Garrett157\"\n },\n {\n \"NAME\": \"Garrett220\"\n },\n {\n \"NAME\": \"George16\"\n },\n {\n \"NAME\": \"George306\"\n },\n {\n \"NAME\": \"George369\"\n },\n {\n \"NAME\": \"George79\"\n },\n {\n \"NAME\": \"Gerald164\"\n },\n {\n \"NAME\": \"Gerald227\"\n },\n {\n \"NAME\": \"Gregory274\"\n },\n {\n \"NAME\": \"Gregory337\"\n },\n {\n \"NAME\": \"Gregory426\"\n },\n {\n \"NAME\": \"Gregory489\"\n },\n {\n \"NAME\": \"Howard256\"\n },\n {\n \"NAME\": \"Howard319\"\n },\n {\n \"NAME\": \"Jacob181\"\n },\n {\n \"NAME\": \"Jacob244\"\n },\n {\n \"NAME\": \"Jacqueline440\"\n },\n {\n \"NAME\": \"James10\"\n },\n {\n \"NAME\": \"James109\"\n },\n {\n \"NAME\": \"James12\"\n },\n {\n \"NAME\": \"James155\"\n },\n {\n \"NAME\": \"James218\"\n },\n {\n \"NAME\": \"James382\"\n },\n {\n \"NAME\": \"James412\"\n },\n {\n \"NAME\": \"James417\"\n },\n {\n \"NAME\": \"James445\"\n },\n {\n \"NAME\": \"James46\"\n },\n {\n \"NAME\": \"James475\"\n },\n {\n \"NAME\": \"James480\"\n },\n {\n \"NAME\": \"James73\"\n },\n {\n \"NAME\": \"James75\"\n },\n {\n \"NAME\": \"Jared128\"\n },\n {\n \"NAME\": \"Jared191\"\n },\n {\n \"NAME\": \"Jason103\"\n },\n {\n \"NAME\": \"Jason40\"\n },\n {\n \"NAME\": \"Jeffrey264\"\n },\n {\n \"NAME\": \"Jeffrey327\"\n },\n {\n \"NAME\": \"Jennifer185\"\n },\n {\n \"NAME\": \"Jennifer248\"\n },\n {\n \"NAME\": \"Jeremy141\"\n },\n {\n \"NAME\": \"Jeremy204\"\n },\n {\n \"NAME\": \"Jeremy414\"\n },\n {\n \"NAME\": \"Jeremy477\"\n },\n {\n \"NAME\": \"Jerry257\"\n },\n {\n \"NAME\": \"Jerry320\"\n },\n {\n \"NAME\": \"Jessica305\"\n },\n {\n \"NAME\": \"Jessica368\"\n },\n {\n \"NAME\": \"Jessica433\"\n },\n {\n \"NAME\": \"Jessica496\"\n },\n {\n \"NAME\": \"Joe269\"\n },\n {\n \"NAME\": \"Joe332\"\n },\n {\n \"NAME\": \"John187\"\n },\n {\n \"NAME\": \"John189\"\n },\n {\n \"NAME\": \"John250\"\n },\n {\n \"NAME\": \"John252\"\n },\n {\n \"NAME\": \"John30\"\n },\n {\n \"NAME\": \"John300\"\n },\n {\n \"NAME\": \"John308\"\n },\n {\n \"NAME\": \"John32\"\n },\n {\n \"NAME\": \"John363\"\n },\n {\n \"NAME\": \"John371\"\n },\n {\n \"NAME\": \"John397\"\n },\n {\n \"NAME\": \"John434\"\n },\n {\n \"NAME\": \"John460\"\n },\n {\n \"NAME\": \"John497\"\n },\n {\n \"NAME\": \"John93\"\n },\n {\n \"NAME\": \"John95\"\n },\n {\n \"NAME\": \"Johnny279\"\n },\n {\n \"NAME\": \"Johnny342\"\n },\n {\n \"NAME\": \"Jonathan100\"\n },\n {\n \"NAME\": \"Jonathan17\"\n },\n {\n \"NAME\": \"Jonathan260\"\n },\n {\n \"NAME\": \"Jonathan323\"\n },\n {\n \"NAME\": \"Jonathan37\"\n },\n {\n \"NAME\": \"Jonathan415\"\n },\n {\n \"NAME\": \"Jonathan478\"\n },\n {\n \"NAME\": \"Jonathan80\"\n },\n {\n \"NAME\": \"Joseph163\"\n },\n {\n \"NAME\": \"Joseph165\"\n },\n {\n \"NAME\": \"Joseph226\"\n },\n {\n \"NAME\": \"Joseph228\"\n },\n {\n \"NAME\": \"Joseph411\"\n },\n {\n \"NAME\": \"Joseph432\"\n },\n {\n \"NAME\": \"Joseph474\"\n },\n {\n \"NAME\": \"Joseph495\"\n },\n {\n \"NAME\": \"Julie27\"\n },\n {\n \"NAME\": \"Julie90\"\n },\n {\n \"NAME\": \"Justin389\"\n },\n {\n \"NAME\": \"Justin452\"\n },\n {\n \"NAME\": \"Kaitlyn106\"\n },\n {\n \"NAME\": \"Kaitlyn43\"\n },\n {\n \"NAME\": \"Karen280\"\n },\n {\n \"NAME\": \"Karen343\"\n },\n {\n \"NAME\": \"Karen407\"\n },\n {\n \"NAME\": \"Karen425\"\n },\n {\n \"NAME\": \"Karen470\"\n },\n {\n \"NAME\": \"Karen488\"\n },\n {\n \"NAME\": \"Katherine119\"\n },\n {\n \"NAME\": \"Katherine22\"\n },\n {\n \"NAME\": \"Katherine56\"\n },\n {\n \"NAME\": \"Katherine85\"\n },\n {\n \"NAME\": \"Kelly302\"\n },\n {\n \"NAME\": \"Kelly365\"\n },\n {\n \"NAME\": \"Kevin134\"\n },\n {\n \"NAME\": \"Kevin197\"\n },\n {\n \"NAME\": \"Kim380\"\n },\n {\n \"NAME\": \"Kim443\"\n },\n {\n \"NAME\": \"Kimberly23\"\n },\n {\n \"NAME\": \"Kimberly26\"\n },\n {\n \"NAME\": \"Kimberly86\"\n },\n {\n \"NAME\": \"Kimberly89\"\n },\n {\n \"NAME\": \"Kristen315\"\n },\n {\n \"NAME\": \"Kristen378\"\n },\n {\n \"NAME\": \"Kristy423\"\n },\n {\n \"NAME\": \"Kristy486\"\n },\n {\n \"NAME\": \"Kyle388\"\n },\n {\n \"NAME\": \"Kyle451\"\n },\n {\n \"NAME\": \"Leah21\"\n },\n {\n \"NAME\": \"Leah84\"\n },\n {\n \"NAME\": \"Linda142\"\n },\n {\n \"NAME\": \"Linda205\"\n },\n {\n \"NAME\": \"Lindsey127\"\n },\n {\n \"NAME\": \"Lindsey190\"\n },\n {\n \"NAME\": \"Lisa136\"\n },\n {\n \"NAME\": \"Lisa179\"\n },\n {\n \"NAME\": \"Lisa199\"\n },\n {\n \"NAME\": \"Lisa242\"\n },\n {\n \"NAME\": \"Lisa276\"\n },\n {\n \"NAME\": \"Lisa339\"\n },\n {\n \"NAME\": \"Lisa398\"\n },\n {\n \"NAME\": \"Lisa461\"\n },\n {\n \"NAME\": \"Logan35\"\n },\n {\n \"NAME\": \"Logan98\"\n },\n {\n \"NAME\": \"Loretta3\"\n },\n {\n \"NAME\": \"Loretta66\"\n },\n {\n \"NAME\": \"Madison137\"\n },\n {\n \"NAME\": \"Madison200\"\n },\n {\n \"NAME\": \"Maria285\"\n },\n {\n \"NAME\": \"Maria348\"\n },\n {\n \"NAME\": \"Maria405\"\n },\n {\n \"NAME\": \"Maria468\"\n },\n {\n \"NAME\": \"Marie108\"\n },\n {\n \"NAME\": \"Marie45\"\n },\n {\n \"NAME\": \"Marissa401\"\n },\n {\n \"NAME\": \"Marissa464\"\n },\n {\n \"NAME\": \"Mark263\"\n },\n {\n \"NAME\": \"Mark326\"\n },\n {\n \"NAME\": \"Mary430\"\n },\n {\n \"NAME\": \"Mary493\"\n },\n {\n \"NAME\": \"Matthew18\"\n },\n {\n \"NAME\": \"Matthew293\"\n },\n {\n \"NAME\": \"Matthew356\"\n },\n {\n \"NAME\": \"Matthew379\"\n },\n {\n \"NAME\": \"Matthew409\"\n },\n {\n \"NAME\": \"Matthew437\"\n },\n {\n \"NAME\": \"Matthew442\"\n },\n {\n \"NAME\": \"Matthew472\"\n },\n {\n \"NAME\": \"Matthew81\"\n },\n {\n \"NAME\": \"Megan291\"\n },\n {\n \"NAME\": \"Megan354\"\n },\n {\n \"NAME\": \"Megan387\"\n },\n {\n \"NAME\": \"Megan450\"\n },\n {\n \"NAME\": \"Melissa422\"\n },\n {\n \"NAME\": \"Melissa485\"\n },\n {\n \"NAME\": \"Michael122\"\n },\n {\n \"NAME\": \"Michael123\"\n },\n {\n \"NAME\": \"Michael168\"\n },\n {\n \"NAME\": \"Michael174\"\n },\n {\n \"NAME\": \"Michael231\"\n },\n {\n \"NAME\": \"Michael237\"\n },\n {\n \"NAME\": \"Michael410\"\n },\n {\n \"NAME\": \"Michael473\"\n },\n {\n \"NAME\": \"Michael59\"\n },\n {\n \"NAME\": \"Michael60\"\n },\n {\n \"NAME\": \"Micheal139\"\n },\n {\n \"NAME\": \"Micheal202\"\n },\n {\n \"NAME\": \"Michelle129\"\n },\n {\n \"NAME\": \"Michelle170\"\n },\n {\n \"NAME\": \"Michelle192\"\n },\n {\n \"NAME\": \"Michelle233\"\n },\n {\n \"NAME\": \"Michelle254\"\n },\n {\n \"NAME\": \"Michelle317\"\n },\n {\n \"NAME\": \"Michelle419\"\n },\n {\n \"NAME\": \"Michelle482\"\n },\n {\n \"NAME\": \"Miguel104\"\n },\n {\n \"NAME\": \"Miguel41\"\n },\n {\n \"NAME\": \"Monica393\"\n },\n {\n \"NAME\": \"Monica456\"\n },\n {\n \"NAME\": \"Nancy114\"\n },\n {\n \"NAME\": \"Nancy51\"\n },\n {\n \"NAME\": \"Natalie266\"\n },\n {\n \"NAME\": \"Natalie329\"\n },\n {\n \"NAME\": \"Natasha153\"\n },\n {\n \"NAME\": \"Natasha216\"\n },\n {\n \"NAME\": \"Nicholas255\"\n },\n {\n \"NAME\": \"Nicholas318\"\n },\n {\n \"NAME\": \"Nicholas33\"\n },\n {\n \"NAME\": \"Nicholas96\"\n },\n {\n \"NAME\": \"Norma258\"\n },\n {\n \"NAME\": \"Norma321\"\n },\n {\n \"NAME\": \"Olivia31\"\n },\n {\n \"NAME\": \"Olivia94\"\n },\n {\n \"NAME\": \"Pamela265\"\n },\n {\n \"NAME\": \"Pamela328\"\n },\n {\n \"NAME\": \"Patrick273\"\n },\n {\n \"NAME\": \"Patrick281\"\n },\n {\n \"NAME\": \"Patrick336\"\n },\n {\n \"NAME\": \"Patrick344\"\n },\n {\n \"NAME\": \"Peter184\"\n },\n {\n \"NAME\": \"Peter247\"\n },\n {\n \"NAME\": \"Phyllis441\"\n },\n {\n \"NAME\": \"Rachel173\"\n },\n {\n \"NAME\": \"Rachel236\"\n },\n {\n \"NAME\": \"Raymond394\"\n },\n {\n \"NAME\": \"Raymond457\"\n },\n {\n \"NAME\": \"Rebecca101\"\n },\n {\n \"NAME\": \"Rebecca38\"\n },\n {\n \"NAME\": \"Ricardo158\"\n },\n {\n \"NAME\": \"Ricardo221\"\n },\n {\n \"NAME\": \"Richard290\"\n },\n {\n \"NAME\": \"Richard353\"\n },\n {\n \"NAME\": \"Ricky288\"\n },\n {\n \"NAME\": \"Ricky351\"\n },\n {\n \"NAME\": \"Rita309\"\n },\n {\n \"NAME\": \"Rita372\"\n },\n {\n \"NAME\": \"Robert431\"\n },\n {\n \"NAME\": \"Robert494\"\n },\n {\n \"NAME\": \"Robert5\"\n },\n {\n \"NAME\": \"Robert68\"\n },\n {\n \"NAME\": \"Robin307\"\n },\n {\n \"NAME\": \"Robin370\"\n },\n {\n \"NAME\": \"Ruth286\"\n },\n {\n \"NAME\": \"Ruth349\"\n },\n {\n \"NAME\": \"Ryan272\"\n },\n {\n \"NAME\": \"Ryan335\"\n },\n {\n \"NAME\": \"Ryan72\"\n },\n {\n \"NAME\": \"Ryan9\"\n },\n {\n \"NAME\": \"Samantha304\"\n },\n {\n \"NAME\": \"Samantha367\"\n },\n {\n \"NAME\": \"Samuel120\"\n },\n {\n \"NAME\": \"Samuel28\"\n },\n {\n \"NAME\": \"Samuel416\"\n },\n {\n \"NAME\": \"Samuel479\"\n },\n {\n \"NAME\": \"Samuel57\"\n },\n {\n \"NAME\": \"Samuel91\"\n },\n {\n \"NAME\": \"Sandra126\"\n },\n {\n \"NAME\": \"Sandra313\"\n },\n {\n \"NAME\": \"Sandra376\"\n },\n {\n \"NAME\": \"Sandra63\"\n },\n {\n \"NAME\": \"Sarah298\"\n },\n {\n \"NAME\": \"Sarah314\"\n },\n {\n \"NAME\": \"Sarah361\"\n },\n {\n \"NAME\": \"Sarah377\"\n },\n {\n \"NAME\": \"Sarah408\"\n },\n {\n \"NAME\": \"Sarah471\"\n },\n {\n \"NAME\": \"Savannah130\"\n },\n {\n \"NAME\": \"Savannah193\"\n },\n {\n \"NAME\": \"Scott413\"\n },\n {\n \"NAME\": \"Scott476\"\n },\n {\n \"NAME\": \"Shane253\"\n },\n {\n \"NAME\": \"Shane316\"\n },\n {\n \"NAME\": \"Shannon107\"\n },\n {\n \"NAME\": \"Shannon278\"\n },\n {\n \"NAME\": \"Shannon341\"\n },\n {\n \"NAME\": \"Shannon384\"\n },\n {\n \"NAME\": \"Shannon44\"\n },\n {\n \"NAME\": \"Shannon447\"\n },\n {\n \"NAME\": \"Shelly36\"\n },\n {\n \"NAME\": \"Shelly99\"\n },\n {\n \"NAME\": \"Sherry289\"\n },\n {\n \"NAME\": \"Sherry352\"\n },\n {\n \"NAME\": \"Sierra261\"\n },\n {\n \"NAME\": \"Sierra324\"\n },\n {\n \"NAME\": \"Stephanie145\"\n },\n {\n \"NAME\": \"Stephanie208\"\n },\n {\n \"NAME\": \"Stephanie403\"\n },\n {\n \"NAME\": \"Stephanie466\"\n },\n {\n \"NAME\": \"Stephen177\"\n },\n {\n \"NAME\": \"Stephen240\"\n },\n {\n \"NAME\": \"Stephen427\"\n },\n {\n \"NAME\": \"Stephen490\"\n },\n {\n \"NAME\": \"Steven176\"\n },\n {\n \"NAME\": \"Steven239\"\n },\n {\n \"NAME\": \"Steven270\"\n },\n {\n \"NAME\": \"Steven301\"\n },\n {\n \"NAME\": \"Steven312\"\n },\n {\n \"NAME\": \"Steven333\"\n },\n {\n \"NAME\": \"Steven364\"\n },\n {\n \"NAME\": \"Steven375\"\n },\n {\n \"NAME\": \"Susan116\"\n },\n {\n \"NAME\": \"Susan140\"\n },\n {\n \"NAME\": \"Susan203\"\n },\n {\n \"NAME\": \"Susan53\"\n },\n {\n \"NAME\": \"Tamara146\"\n },\n {\n \"NAME\": \"Tamara209\"\n },\n {\n \"NAME\": \"Tammie125\"\n },\n {\n \"NAME\": \"Tammie62\"\n },\n {\n \"NAME\": \"Taylor287\"\n },\n {\n \"NAME\": \"Taylor350\"\n },\n {\n \"NAME\": \"Theresa182\"\n },\n {\n \"NAME\": \"Theresa245\"\n },\n {\n \"NAME\": \"Thomas105\"\n },\n {\n \"NAME\": \"Thomas149\"\n },\n {\n \"NAME\": \"Thomas166\"\n },\n {\n \"NAME\": \"Thomas212\"\n },\n {\n \"NAME\": \"Thomas229\"\n },\n {\n \"NAME\": \"Thomas42\"\n },\n {\n \"NAME\": \"Tiffany13\"\n },\n {\n \"NAME\": \"Tiffany76\"\n },\n {\n \"NAME\": \"Timothy294\"\n },\n {\n \"NAME\": \"Timothy299\"\n },\n {\n \"NAME\": \"Timothy357\"\n },\n {\n \"NAME\": \"Timothy362\"\n },\n {\n \"NAME\": \"Tina180\"\n },\n {\n \"NAME\": \"Tina243\"\n },\n {\n \"NAME\": \"Tina277\"\n },\n {\n \"NAME\": \"Tina310\"\n },\n {\n \"NAME\": \"Tina340\"\n },\n {\n \"NAME\": \"Tina373\"\n },\n {\n \"NAME\": \"Todd421\"\n },\n {\n \"NAME\": \"Todd484\"\n },\n {\n \"NAME\": \"Tonya102\"\n },\n {\n \"NAME\": \"Tonya39\"\n },\n {\n \"NAME\": \"Travis132\"\n },\n {\n \"NAME\": \"Travis195\"\n },\n {\n \"NAME\": \"Vanessa282\"\n },\n {\n \"NAME\": \"Vanessa345\"\n },\n {\n \"NAME\": \"Victor292\"\n },\n {\n \"NAME\": \"Victor355\"\n },\n {\n \"NAME\": \"Victoria424\"\n },\n {\n \"NAME\": \"Victoria487\"\n },\n {\n \"NAME\": \"Whitney118\"\n },\n {\n \"NAME\": \"Whitney2\"\n },\n {\n \"NAME\": \"Whitney55\"\n },\n {\n \"NAME\": \"Whitney65\"\n },\n {\n \"NAME\": \"Zachary131\"\n },\n {\n \"NAME\": \"Zachary152\"\n },\n {\n \"NAME\": \"Zachary194\"\n },\n {\n \"NAME\": \"Zachary215\"\n }\n]" + }, + { + "name": "Users By Filter - Distinct, no included fields", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?distinct=\"id\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"userGroups.id\": {\"in\": [44,23]}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", {\"investigationUsers\":[\"investigation\"]}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"investigationUsers\":{\"investigation\": \"datasets\"}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", \"studies\", {\"investigationUsers\":{\"investigation\": \"datasets\"}}, \"instrumentScientists\"]", + "disabled": true + }, + { + "key": "include", + "value": "[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":[\"INVESTIGATION\"]}", + "disabled": true + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"name\", \"fullName\", \"orcidId\", \"modTime\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"userGroups.id\": {\"eq\": 50}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"" + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "15333" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 15 Sep 2020 10:33:56 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n },\n {\n \"id\": 5\n },\n {\n \"id\": 6\n },\n {\n \"id\": 7\n },\n {\n \"id\": 8\n },\n {\n \"id\": 9\n },\n {\n \"id\": 10\n },\n {\n \"id\": 11\n },\n {\n \"id\": 12\n },\n {\n \"id\": 13\n },\n {\n \"id\": 14\n },\n {\n \"id\": 15\n },\n {\n \"id\": 16\n },\n {\n \"id\": 17\n },\n {\n \"id\": 18\n },\n {\n \"id\": 19\n },\n {\n \"id\": 20\n },\n {\n \"id\": 21\n },\n {\n \"id\": 22\n },\n {\n \"id\": 23\n },\n {\n \"id\": 24\n },\n {\n \"id\": 25\n },\n {\n \"id\": 26\n },\n {\n \"id\": 27\n },\n {\n \"id\": 28\n },\n {\n \"id\": 29\n },\n {\n \"id\": 30\n },\n {\n \"id\": 31\n },\n {\n \"id\": 32\n },\n {\n \"id\": 33\n },\n {\n \"id\": 34\n },\n {\n \"id\": 35\n },\n {\n \"id\": 36\n },\n {\n \"id\": 37\n },\n {\n \"id\": 38\n },\n {\n \"id\": 39\n },\n {\n \"id\": 40\n },\n {\n \"id\": 41\n },\n {\n \"id\": 42\n },\n {\n \"id\": 43\n },\n {\n \"id\": 44\n },\n {\n \"id\": 45\n },\n {\n \"id\": 46\n },\n {\n \"id\": 47\n },\n {\n \"id\": 48\n },\n {\n \"id\": 49\n },\n {\n \"id\": 50\n },\n {\n \"id\": 51\n },\n {\n \"id\": 52\n },\n {\n \"id\": 53\n },\n {\n \"id\": 54\n },\n {\n \"id\": 55\n },\n {\n \"id\": 56\n },\n {\n \"id\": 57\n },\n {\n \"id\": 58\n },\n {\n \"id\": 59\n },\n {\n \"id\": 60\n },\n {\n \"id\": 61\n },\n {\n \"id\": 62\n },\n {\n \"id\": 63\n },\n {\n \"id\": 64\n },\n {\n \"id\": 65\n },\n {\n \"id\": 66\n },\n {\n \"id\": 67\n },\n {\n \"id\": 68\n },\n {\n \"id\": 69\n },\n {\n \"id\": 70\n },\n {\n \"id\": 71\n },\n {\n \"id\": 72\n },\n {\n \"id\": 73\n },\n {\n \"id\": 74\n },\n {\n \"id\": 75\n },\n {\n \"id\": 76\n },\n {\n \"id\": 77\n },\n {\n \"id\": 78\n },\n {\n \"id\": 79\n },\n {\n \"id\": 80\n },\n {\n \"id\": 81\n },\n {\n \"id\": 82\n },\n {\n \"id\": 83\n },\n {\n \"id\": 84\n },\n {\n \"id\": 85\n },\n {\n \"id\": 86\n },\n {\n \"id\": 87\n },\n {\n \"id\": 88\n },\n {\n \"id\": 89\n },\n {\n \"id\": 90\n },\n {\n \"id\": 91\n },\n {\n \"id\": 92\n },\n {\n \"id\": 93\n },\n {\n \"id\": 94\n },\n {\n \"id\": 95\n },\n {\n \"id\": 96\n },\n {\n \"id\": 97\n },\n {\n \"id\": 98\n },\n {\n \"id\": 99\n },\n {\n \"id\": 100\n },\n {\n \"id\": 101\n },\n {\n \"id\": 102\n },\n {\n \"id\": 103\n },\n {\n \"id\": 104\n },\n {\n \"id\": 105\n },\n {\n \"id\": 106\n },\n {\n \"id\": 107\n },\n {\n \"id\": 108\n },\n {\n \"id\": 109\n },\n {\n \"id\": 110\n },\n {\n \"id\": 111\n },\n {\n \"id\": 112\n },\n {\n \"id\": 113\n },\n {\n \"id\": 114\n },\n {\n \"id\": 115\n },\n {\n \"id\": 116\n },\n {\n \"id\": 117\n },\n {\n \"id\": 118\n },\n {\n \"id\": 119\n },\n {\n \"id\": 120\n },\n {\n \"id\": 121\n },\n {\n \"id\": 122\n },\n {\n \"id\": 123\n },\n {\n \"id\": 124\n },\n {\n \"id\": 125\n },\n {\n \"id\": 126\n },\n {\n \"id\": 127\n },\n {\n \"id\": 128\n },\n {\n \"id\": 129\n },\n {\n \"id\": 130\n },\n {\n \"id\": 131\n },\n {\n \"id\": 132\n },\n {\n \"id\": 133\n },\n {\n \"id\": 134\n },\n {\n \"id\": 135\n },\n {\n \"id\": 136\n },\n {\n \"id\": 137\n },\n {\n \"id\": 138\n },\n {\n \"id\": 139\n },\n {\n \"id\": 140\n },\n {\n \"id\": 141\n },\n {\n \"id\": 142\n },\n {\n \"id\": 143\n },\n {\n \"id\": 144\n },\n {\n \"id\": 145\n },\n {\n \"id\": 146\n },\n {\n \"id\": 147\n },\n {\n \"id\": 148\n },\n {\n \"id\": 149\n },\n {\n \"id\": 150\n },\n {\n \"id\": 151\n },\n {\n \"id\": 152\n },\n {\n \"id\": 153\n },\n {\n \"id\": 154\n },\n {\n \"id\": 155\n },\n {\n \"id\": 156\n },\n {\n \"id\": 157\n },\n {\n \"id\": 158\n },\n {\n \"id\": 159\n },\n {\n \"id\": 160\n },\n {\n \"id\": 161\n },\n {\n \"id\": 162\n },\n {\n \"id\": 163\n },\n {\n \"id\": 164\n },\n {\n \"id\": 165\n },\n {\n \"id\": 166\n },\n {\n \"id\": 167\n },\n {\n \"id\": 168\n },\n {\n \"id\": 169\n },\n {\n \"id\": 170\n },\n {\n \"id\": 171\n },\n {\n \"id\": 172\n },\n {\n \"id\": 173\n },\n {\n \"id\": 174\n },\n {\n \"id\": 175\n },\n {\n \"id\": 176\n },\n {\n \"id\": 177\n },\n {\n \"id\": 178\n },\n {\n \"id\": 179\n },\n {\n \"id\": 180\n },\n {\n \"id\": 181\n },\n {\n \"id\": 182\n },\n {\n \"id\": 183\n },\n {\n \"id\": 184\n },\n {\n \"id\": 185\n },\n {\n \"id\": 186\n },\n {\n \"id\": 187\n },\n {\n \"id\": 188\n },\n {\n \"id\": 189\n },\n {\n \"id\": 190\n },\n {\n \"id\": 191\n },\n {\n \"id\": 192\n },\n {\n \"id\": 193\n },\n {\n \"id\": 194\n },\n {\n \"id\": 195\n },\n {\n \"id\": 196\n },\n {\n \"id\": 197\n },\n {\n \"id\": 198\n },\n {\n \"id\": 199\n },\n {\n \"id\": 200\n },\n {\n \"id\": 201\n },\n {\n \"id\": 202\n },\n {\n \"id\": 203\n },\n {\n \"id\": 204\n },\n {\n \"id\": 205\n },\n {\n \"id\": 206\n },\n {\n \"id\": 207\n },\n {\n \"id\": 208\n },\n {\n \"id\": 209\n },\n {\n \"id\": 210\n },\n {\n \"id\": 211\n },\n {\n \"id\": 212\n },\n {\n \"id\": 213\n },\n {\n \"id\": 214\n },\n {\n \"id\": 215\n },\n {\n \"id\": 216\n },\n {\n \"id\": 217\n },\n {\n \"id\": 218\n },\n {\n \"id\": 219\n },\n {\n \"id\": 220\n },\n {\n \"id\": 221\n },\n {\n \"id\": 222\n },\n {\n \"id\": 223\n },\n {\n \"id\": 224\n },\n {\n \"id\": 225\n },\n {\n \"id\": 226\n },\n {\n \"id\": 227\n },\n {\n \"id\": 228\n },\n {\n \"id\": 229\n },\n {\n \"id\": 230\n },\n {\n \"id\": 231\n },\n {\n \"id\": 232\n },\n {\n \"id\": 233\n },\n {\n \"id\": 234\n },\n {\n \"id\": 235\n },\n {\n \"id\": 236\n },\n {\n \"id\": 237\n },\n {\n \"id\": 238\n },\n {\n \"id\": 239\n },\n {\n \"id\": 240\n },\n {\n \"id\": 241\n },\n {\n \"id\": 242\n },\n {\n \"id\": 243\n },\n {\n \"id\": 244\n },\n {\n \"id\": 245\n },\n {\n \"id\": 246\n },\n {\n \"id\": 247\n },\n {\n \"id\": 248\n },\n {\n \"id\": 249\n },\n {\n \"id\": 250\n },\n {\n \"id\": 251\n },\n {\n \"id\": 252\n },\n {\n \"id\": 253\n },\n {\n \"id\": 254\n },\n {\n \"id\": 255\n },\n {\n \"id\": 256\n },\n {\n \"id\": 257\n },\n {\n \"id\": 258\n },\n {\n \"id\": 259\n },\n {\n \"id\": 260\n },\n {\n \"id\": 261\n },\n {\n \"id\": 262\n },\n {\n \"id\": 263\n },\n {\n \"id\": 264\n },\n {\n \"id\": 265\n },\n {\n \"id\": 266\n },\n {\n \"id\": 267\n },\n {\n \"id\": 268\n },\n {\n \"id\": 269\n },\n {\n \"id\": 270\n },\n {\n \"id\": 271\n },\n {\n \"id\": 272\n },\n {\n \"id\": 273\n },\n {\n \"id\": 274\n },\n {\n \"id\": 275\n },\n {\n \"id\": 276\n },\n {\n \"id\": 277\n },\n {\n \"id\": 278\n },\n {\n \"id\": 279\n },\n {\n \"id\": 280\n },\n {\n \"id\": 281\n },\n {\n \"id\": 282\n },\n {\n \"id\": 283\n },\n {\n \"id\": 284\n },\n {\n \"id\": 285\n },\n {\n \"id\": 286\n },\n {\n \"id\": 287\n },\n {\n \"id\": 288\n },\n {\n \"id\": 289\n },\n {\n \"id\": 290\n },\n {\n \"id\": 291\n },\n {\n \"id\": 292\n },\n {\n \"id\": 293\n },\n {\n \"id\": 294\n },\n {\n \"id\": 295\n },\n {\n \"id\": 296\n },\n {\n \"id\": 297\n },\n {\n \"id\": 298\n },\n {\n \"id\": 299\n },\n {\n \"id\": 300\n },\n {\n \"id\": 301\n },\n {\n \"id\": 302\n },\n {\n \"id\": 303\n },\n {\n \"id\": 304\n },\n {\n \"id\": 305\n },\n {\n \"id\": 306\n },\n {\n \"id\": 307\n },\n {\n \"id\": 308\n },\n {\n \"id\": 309\n },\n {\n \"id\": 310\n },\n {\n \"id\": 311\n },\n {\n \"id\": 312\n },\n {\n \"id\": 313\n },\n {\n \"id\": 314\n },\n {\n \"id\": 315\n },\n {\n \"id\": 316\n },\n {\n \"id\": 317\n },\n {\n \"id\": 318\n },\n {\n \"id\": 319\n },\n {\n \"id\": 320\n },\n {\n \"id\": 321\n },\n {\n \"id\": 322\n },\n {\n \"id\": 323\n },\n {\n \"id\": 324\n },\n {\n \"id\": 325\n },\n {\n \"id\": 326\n },\n {\n \"id\": 327\n },\n {\n \"id\": 328\n },\n {\n \"id\": 329\n },\n {\n \"id\": 330\n },\n {\n \"id\": 331\n },\n {\n \"id\": 332\n },\n {\n \"id\": 333\n },\n {\n \"id\": 334\n },\n {\n \"id\": 335\n },\n {\n \"id\": 336\n },\n {\n \"id\": 337\n },\n {\n \"id\": 338\n },\n {\n \"id\": 339\n },\n {\n \"id\": 340\n },\n {\n \"id\": 341\n },\n {\n \"id\": 342\n },\n {\n \"id\": 343\n },\n {\n \"id\": 344\n },\n {\n \"id\": 345\n },\n {\n \"id\": 346\n },\n {\n \"id\": 347\n },\n {\n \"id\": 348\n },\n {\n \"id\": 349\n },\n {\n \"id\": 350\n },\n {\n \"id\": 351\n },\n {\n \"id\": 352\n },\n {\n \"id\": 353\n },\n {\n \"id\": 354\n },\n {\n \"id\": 355\n },\n {\n \"id\": 356\n },\n {\n \"id\": 357\n },\n {\n \"id\": 358\n },\n {\n \"id\": 359\n },\n {\n \"id\": 360\n },\n {\n \"id\": 361\n },\n {\n \"id\": 362\n },\n {\n \"id\": 363\n },\n {\n \"id\": 364\n },\n {\n \"id\": 365\n },\n {\n \"id\": 366\n },\n {\n \"id\": 367\n },\n {\n \"id\": 368\n },\n {\n \"id\": 369\n },\n {\n \"id\": 370\n },\n {\n \"id\": 371\n },\n {\n \"id\": 372\n },\n {\n \"id\": 373\n },\n {\n \"id\": 374\n },\n {\n \"id\": 375\n },\n {\n \"id\": 376\n },\n {\n \"id\": 377\n },\n {\n \"id\": 378\n },\n {\n \"id\": 379\n },\n {\n \"id\": 380\n },\n {\n \"id\": 381\n },\n {\n \"id\": 382\n },\n {\n \"id\": 383\n },\n {\n \"id\": 384\n },\n {\n \"id\": 385\n },\n {\n \"id\": 386\n },\n {\n \"id\": 387\n },\n {\n \"id\": 388\n },\n {\n \"id\": 389\n },\n {\n \"id\": 390\n },\n {\n \"id\": 391\n },\n {\n \"id\": 392\n },\n {\n \"id\": 393\n },\n {\n \"id\": 394\n },\n {\n \"id\": 395\n },\n {\n \"id\": 396\n },\n {\n \"id\": 397\n },\n {\n \"id\": 398\n },\n {\n \"id\": 399\n },\n {\n \"id\": 400\n },\n {\n \"id\": 401\n },\n {\n \"id\": 402\n },\n {\n \"id\": 403\n },\n {\n \"id\": 404\n },\n {\n \"id\": 405\n },\n {\n \"id\": 406\n },\n {\n \"id\": 407\n },\n {\n \"id\": 408\n },\n {\n \"id\": 409\n },\n {\n \"id\": 410\n },\n {\n \"id\": 411\n },\n {\n \"id\": 412\n },\n {\n \"id\": 413\n },\n {\n \"id\": 414\n },\n {\n \"id\": 415\n },\n {\n \"id\": 416\n },\n {\n \"id\": 417\n },\n {\n \"id\": 418\n },\n {\n \"id\": 419\n },\n {\n \"id\": 420\n },\n {\n \"id\": 421\n },\n {\n \"id\": 422\n },\n {\n \"id\": 423\n },\n {\n \"id\": 424\n },\n {\n \"id\": 425\n },\n {\n \"id\": 426\n },\n {\n \"id\": 427\n },\n {\n \"id\": 428\n },\n {\n \"id\": 429\n },\n {\n \"id\": 430\n },\n {\n \"id\": 431\n },\n {\n \"id\": 432\n },\n {\n \"id\": 433\n },\n {\n \"id\": 434\n },\n {\n \"id\": 435\n },\n {\n \"id\": 436\n },\n {\n \"id\": 437\n },\n {\n \"id\": 438\n },\n {\n \"id\": 439\n },\n {\n \"id\": 440\n },\n {\n \"id\": 441\n },\n {\n \"id\": 442\n },\n {\n \"id\": 443\n },\n {\n \"id\": 444\n },\n {\n \"id\": 445\n },\n {\n \"id\": 446\n },\n {\n \"id\": 447\n },\n {\n \"id\": 448\n },\n {\n \"id\": 449\n },\n {\n \"id\": 450\n },\n {\n \"id\": 451\n },\n {\n \"id\": 452\n },\n {\n \"id\": 453\n },\n {\n \"id\": 454\n },\n {\n \"id\": 455\n },\n {\n \"id\": 456\n },\n {\n \"id\": 457\n },\n {\n \"id\": 458\n },\n {\n \"id\": 459\n },\n {\n \"id\": 460\n },\n {\n \"id\": 461\n },\n {\n \"id\": 462\n },\n {\n \"id\": 463\n },\n {\n \"id\": 464\n },\n {\n \"id\": 465\n },\n {\n \"id\": 466\n },\n {\n \"id\": 467\n },\n {\n \"id\": 468\n },\n {\n \"id\": 469\n },\n {\n \"id\": 470\n },\n {\n \"id\": 471\n },\n {\n \"id\": 472\n },\n {\n \"id\": 473\n },\n {\n \"id\": 474\n },\n {\n \"id\": 475\n },\n {\n \"id\": 476\n },\n {\n \"id\": 477\n },\n {\n \"id\": 478\n },\n {\n \"id\": 479\n },\n {\n \"id\": 480\n },\n {\n \"id\": 481\n },\n {\n \"id\": 482\n },\n {\n \"id\": 483\n },\n {\n \"id\": 484\n },\n {\n \"id\": 485\n },\n {\n \"id\": 486\n },\n {\n \"id\": 487\n },\n {\n \"id\": 488\n },\n {\n \"id\": 489\n },\n {\n \"id\": 490\n },\n {\n \"id\": 491\n },\n {\n \"id\": 492\n },\n {\n \"id\": 493\n },\n {\n \"id\": 494\n },\n {\n \"id\": 495\n },\n {\n \"id\": 496\n },\n {\n \"id\": 498\n },\n {\n \"id\": 499\n }\n]" + }, + { + "name": "Users By Filter - DB Include Filter", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?include=[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]&limit=2&skip=4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"ID\": {\"in\": [49,23]}}", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + }, + { + "key": "include", + "value": "[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]" + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "limit", + "value": "2" + }, + { + "key": "skip", + "value": "4" + }, + { + "key": "distinct", + "value": "[\"name\", \"fullName\", \"orcidId\", \"modTime\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"eq\": 6}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"name asc\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "4521" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Wed, 02 Sep 2020 14:35:19 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"ID\": 5,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2007-07-28 18:17:48\",\n \"EMAIL\": \"ljames@tapia.biz\",\n \"FULLNAME\": \"Rachel Herman\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2014-09-07 20:48:44\",\n \"NAME\": \"Loretta3\",\n \"ORCIDID\": \"5437\",\n \"USERGROUP\": [\n {\n \"ID\": 11,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2003-08-28 02:17:38\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2003-04-20 18:29:09\",\n \"GROUP_ID\": 7,\n \"USER_ID\": 5\n }\n ]\n },\n {\n \"ID\": 6,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2007-07-28 18:17:48\",\n \"EMAIL\": \"ljames@tapia.biz\",\n \"FULLNAME\": \"Rachel Herman\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2014-09-07 20:48:44\",\n \"NAME\": \"Loretta66\",\n \"ORCIDID\": \"15966\",\n \"USERGROUP\": [\n {\n \"ID\": 13,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2011-02-27 11:47:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2016-08-25 00:53:55\",\n \"GROUP_ID\": 4,\n \"USER_ID\": 6\n }\n ],\n \"INVESTIGATIONUSER\": [\n {\n \"ID\": 36,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2011-03-06 18:05:52\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2003-03-09 01:58:15\",\n \"ROLE\": \"CI\",\n \"INVESTIGATION_ID\": 33,\n \"USER_ID\": 6,\n \"INVESTIGATION\": {\n \"ID\": 33,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2016-12-12 08:53:47\",\n \"DOI\": \"1-148-83222-X\",\n \"ENDDATE\": \"2008-05-04 00:00:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2005-01-04 07:22:59\",\n \"NAME\": \"INVESTIGATION 32\",\n \"RELEASEDATE\": \"2008-01-26 00:00:00\",\n \"STARTDATE\": \"2008-02-02 00:00:00\",\n \"SUMMARY\": \"Contain sea lose. Threat available well fish expert. Involve begin father.\",\n \"TITLE\": \"Trouble it write available low market open them. Maintain letter adult study child individual example. Behind appear throughout mother statement campaign month.\",\n \"VISIT_ID\": \"29\",\n \"FACILITY_ID\": 1,\n \"TYPE_ID\": 1,\n \"DATASET\": [\n {\n \"ID\": 135,\n \"COMPLETE\": false,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2012-06-07 21:26:39\",\n \"DESCRIPTION\": \"Respond opportunity record seek home. Yard anything get next page tree hundred. Feeling enter many treat kind community manage.\",\n \"DOI\": \"1-342-36668-9\",\n \"END_DATE\": null,\n \"LOCATION\": \"/agent/near.wav\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2018-10-27 14:59:23\",\n \"NAME\": \"DATASET 153\",\n \"STARTDATE\": \"2038-01-15 00:00:00\",\n \"INVESTIGATION_ID\": 33,\n \"SAMPLE_ID\": 33,\n \"TYPE_ID\": 1\n },\n {\n \"ID\": 14,\n \"COMPLETE\": true,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2019-05-06 07:27:24\",\n \"DESCRIPTION\": \"Eat young business more similar important write local. Keep man despite kitchen positive. Store material all effort drug decade.\",\n \"DOI\": \"1-925475-68-9\",\n \"END_DATE\": null,\n \"LOCATION\": \"/full/song.png\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2002-02-24 04:37:23\",\n \"NAME\": \"DATASET 33\",\n \"STARTDATE\": \"2008-02-15 00:00:00\",\n \"INVESTIGATION_ID\": 33,\n \"SAMPLE_ID\": 33,\n \"TYPE_ID\": 3\n }\n ]\n }\n }\n ]\n }\n]" + } + ] + }, + { + "name": "Update Users", + "event": [ + { + "listen": "test", + "script": { + "id": "6f706c4e-e1c4-4d9a-9683-215e29a13602", + "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 \"id\": 8,\r\n \"name\": \"new ngfhamel23D43\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/users", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ] + } + }, + "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 Users", + "event": [ + { + "listen": "test", + "script": { + "id": "abeb7fe8-b1c3-417c-a8f5-d6caf2c08c12", + "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": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n\t\"name\": \"new name123\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/users", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ] + } + }, + "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": "Count Users", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "8a8dfa4f-d001-4ad5-9708-a175196b4894", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "dc6f082f-0e11-4fbc-8e8e-baed77665957", + "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}}/users/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "4", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One User", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c95a56b2-7e0a-466e-a1d9-003fb77b2a1e", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "f0c4fefe-495c-4fb9-a5e4-480999fdf019", + "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/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "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" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, + { + "name": "UserGroup", + "item": [ + { + "name": "UserGroups By Filter", + "event": [ + { + "listen": "test", + "script": { + "id": "2416d6ac-7f9c-4fa3-8449-553197f31198", + "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?include={\"INVESTIGATIONUSER\":\"INVESTIGATION\"}&limit=2&distinct=\"USER_.ID\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups" + ], + "query": [ + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}" + }, + { + "key": "include", + "value": "\"USER_\"", + "disabled": true + }, + { + "key": "limit", + "value": "2" + }, + { + "key": "order", + "value": "\"ID desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"USER_.ID\"" + } + ] + } + }, + "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 UserGroups", + "event": [ + { + "listen": "test", + "script": { + "id": "3ef3fd72-4afc-465c-bc09-330fe8f0d31d", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups" + ] + } + }, + "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 UserGroups", + "event": [ + { + "listen": "test", + "script": { + "id": "e08b992b-6730-4be8-b141-c2c345e3acf1", + "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 \"user\": 3,\r\n \"grouping\": 6\r\n }\r\n]\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{datagateway-api}}/usergroups", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups" + ] + } + }, + "response": [] + }, + { + "name": "Count UserGroups", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "a09457fe-c153-42d7-bda2-dde558a62efd", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "c61a69a3-efa0-4ebe-a5d7-5583cf404b28", + "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}}/usergroups/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One UserGroup", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "abfbe2b9-f7e4-430f-83f8-c459c99fae57", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "9ac6ddf6-d9fb-46a3-8e12-ca07d4795f63", + "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}}/usergroups/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "usergroups", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2, 3, 4]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationUser\"", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "363939d6-3879-4976-8db6-d61dbdbc5bc7", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "3fe41aa6-ae42-4ac1-8f7e-6f50d66f6b50", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "ISIS Specific Endpoints", + "item": [ + { + "name": "Instrument Facility Cycles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments/23/facilitycycles?order=\"id asc\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "23", + "facilitycycles" + ], + "query": [ + { + "key": "order", + "value": "\"id asc\"" + } + ] + } + }, + "response": [] + }, + { + "name": "Count Instrument Facility Cycles", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments/23/facilitycycles/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "23", + "facilitycycles", + "count" + ] + } + }, + "response": [] + }, + { + "name": "Instrument Facility Cycles Investigations", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments/23/facilitycycles/84762458/investigations?order=\"id asc\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "23", + "facilitycycles", + "84762458", + "investigations" + ], + "query": [ + { + "key": "order", + "value": "\"id asc\"" + }, + { + "key": "where", + "value": "{\"investigationInstruments.instrument.name\": {\"like\": \"ALF\"}}", + "disabled": true + }, + { + "key": "include", + "value": "\"investigationInstruments.instrument\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Count Instrument Facility Cycles Investigations", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/instruments/23/facilitycycles/84762458/investigations/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "instruments", + "23", + "facilitycycles", + "84762458", + "investigations", + "count" + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "test", + "script": { + "id": "42ceb325-d791-46af-a86b-993295b2778d", + "type": "text/javascript", + "exec": [ + "pm.test(\"Status: 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ] + } + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Session Related Requests", + "item": [ + { + "name": "Login - ICAT (anon)", + "event": [ + { + "listen": "test", + "script": { + "id": "780a3c06-5364-4ee8-ba72-c1ae7feba34c", + "exec": [ + "var jsonData = JSON.parse(responseBody);\r", + "pm.collectionVariables.set(\"sessionID\", jsonData.sessionID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"username\": \"\",\n\t\"password\": \"\",\n\t\"mechanism\": \"anon\"\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "http://{{datagateway-api}}/sessions", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sessions" + ] + } + }, + "response": [] + }, + { + "name": "Login - ICAT (simple)", + "event": [ + { + "listen": "test", + "script": { + "id": "9c88bbb2-0bb9-498e-b9ec-36081d1d3b81", + "exec": [ + "var jsonData = JSON.parse(responseBody);\r", + "pm.collectionVariables.set(\"sessionID\", jsonData.sessionID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"username\": \"root\",\n\t\"password\": \"pw\",\n\t\"mechanism\": \"simple\"\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "http://{{datagateway-api}}/sessions", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sessions" + ] + } + }, + "response": [] + }, + { + "name": "Login - DB", + "event": [ + { + "listen": "test", + "script": { + "id": "4541c28e-62e1-4857-8bef-401fbaf14f34", + "exec": [ + "var jsonData = JSON.parse(responseBody);\r", + "pm.collectionVariables.set(\"sessionID\", jsonData.sessionID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"username\": \"user\",\n\t\"password\": \"password\",\n\t\"mechanism\": \"simple\"\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "http://{{datagateway-api}}/sessions", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sessions" + ] + } + }, + "response": [] + }, + { + "name": "Session Details", + "event": [ + { + "listen": "test", + "script": { + "id": "25ed5999-bf6e-4a32-b3cb-0eadbbb5d686", + "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}}/sessions", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sessions" + ] + } + }, + "response": [] + }, + { + "name": "Refresh Session", + "event": [ + { + "listen": "test", + "script": { + "id": "32ae580c-43d5-4944-87af-ba28534b2a0e", + "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": "PUT", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sessions", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sessions" + ] + } + }, + "response": [] + }, + { + "name": "Logout", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/sessions", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "sessions" + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "protocolProfileBehavior": {} + }, + { + "name": "Frequently Used Requests", + "item": [ + { + "name": "Investigations By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "7535173d-abc2-44ef-90e9-e55249712a19", + "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": [ + { + "key": "filter", + "type": "text", + "value": "{\"order\": \"TITLE+asc\"}", + "disabled": true + } + ], + "url": { + "raw": "http://{{datagateway-api}}/investigations", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations" + ], + "query": [ + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"name\"", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Investigations By Filter", + "event": [ + { + "listen": "test", + "script": { + "id": "491752ea-23ca-4d1e-af28-d039c11438be", + "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": [ + { + "key": "filter", + "type": "text", + "value": "{\"order\": \"TITLE+asc\"}", + "disabled": true + } + ], + "url": { + "raw": "http://{{datagateway-api}}/investigations?skip=5", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "investigations" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2, 3]}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"title\": {\"like\": \"voluptatem\"}}", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"name\", \"visitId\"]", + "disabled": true + }, + { + "key": "skip", + "value": "5" + } + ] + } + }, + "response": [] + }, + { + "name": "Users By Filter", + "event": [ + { + "listen": "test", + "script": { + "id": "fcecf8ad-0a2d-4394-b581-3e5e0e813339", + "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", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [1, 2, 3, 4, 5]}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", {\"investigationUsers\":[\"investigation\"]}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"investigationUsers\":{\"investigation\": \"datasets\"}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", \"studies\", {\"investigationUsers\":{\"investigation\": \"datasets\"}}, \"instrumentScientists\"]", + "disabled": true + }, + { + "key": "include", + "value": "[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":[\"INVESTIGATION\"]}", + "disabled": true + }, + { + "key": "order", + "value": "\"userGroups.id desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"name\", \"fullName\", \"modTime\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"userGroups.id\": {\"eq\": 50}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"userGroups.id\", \"userGroups.modTime\", \"userGroups.user.id\", \"id\"]", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + }, + { + "key": "distinct", + "value": "\"investigationUsers.investigation.name\"", + "disabled": true + } + ] + } + }, + "response": [ + { + "name": "Users By Filter", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?distinct=\"NAME\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [492, 3]}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"ID desc\"", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "distinct", + "value": "\"NAME\"" + }, + { + "key": "where", + "value": "{\"id\": {\"like\": 4}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"name asc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"orcidId desc\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "20374" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Mon, 24 Aug 2020 12:18:53 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"NAME\": \"Aaron311\"\n },\n {\n \"NAME\": \"Aaron374\"\n },\n {\n \"NAME\": \"Aaron438\"\n },\n {\n \"NAME\": \"Adam133\"\n },\n {\n \"NAME\": \"Adam196\"\n },\n {\n \"NAME\": \"Adam428\"\n },\n {\n \"NAME\": \"Adam491\"\n },\n {\n \"NAME\": \"Adriana19\"\n },\n {\n \"NAME\": \"Adriana82\"\n },\n {\n \"NAME\": \"Alexandra135\"\n },\n {\n \"NAME\": \"Alexandra198\"\n },\n {\n \"NAME\": \"Alicia175\"\n },\n {\n \"NAME\": \"Alicia238\"\n },\n {\n \"NAME\": \"Alison113\"\n },\n {\n \"NAME\": \"Alison50\"\n },\n {\n \"NAME\": \"Alyssa420\"\n },\n {\n \"NAME\": \"Alyssa483\"\n },\n {\n \"NAME\": \"Amanda259\"\n },\n {\n \"NAME\": \"Amanda322\"\n },\n {\n \"NAME\": \"Amy160\"\n },\n {\n \"NAME\": \"Amy223\"\n },\n {\n \"NAME\": \"Andrea392\"\n },\n {\n \"NAME\": \"Andrea435\"\n },\n {\n \"NAME\": \"Andrea455\"\n },\n {\n \"NAME\": \"Andrea498\"\n },\n {\n \"NAME\": \"Andrew147\"\n },\n {\n \"NAME\": \"Andrew151\"\n },\n {\n \"NAME\": \"Andrew167\"\n },\n {\n \"NAME\": \"Andrew210\"\n },\n {\n \"NAME\": \"Andrew214\"\n },\n {\n \"NAME\": \"Andrew230\"\n },\n {\n \"NAME\": \"Andrew390\"\n },\n {\n \"NAME\": \"Andrew453\"\n },\n {\n \"NAME\": \"Angel34\"\n },\n {\n \"NAME\": \"Angel97\"\n },\n {\n \"NAME\": \"Angela399\"\n },\n {\n \"NAME\": \"Angela462\"\n },\n {\n \"NAME\": \"Anna303\"\n },\n {\n \"NAME\": \"Anna366\"\n },\n {\n \"NAME\": \"Anne172\"\n },\n {\n \"NAME\": \"Anne235\"\n },\n {\n \"NAME\": \"Anthony395\"\n },\n {\n \"NAME\": \"Anthony458\"\n },\n {\n \"NAME\": \"April271\"\n },\n {\n \"NAME\": \"April334\"\n },\n {\n \"NAME\": \"Ashley159\"\n },\n {\n \"NAME\": \"Ashley222\"\n },\n {\n \"NAME\": \"Bailey400\"\n },\n {\n \"NAME\": \"Bailey463\"\n },\n {\n \"NAME\": \"Barbara115\"\n },\n {\n \"NAME\": \"Barbara385\"\n },\n {\n \"NAME\": \"Barbara448\"\n },\n {\n \"NAME\": \"Barbara52\"\n },\n {\n \"NAME\": \"Benjamin15\"\n },\n {\n \"NAME\": \"Benjamin78\"\n },\n {\n \"NAME\": \"Beverly143\"\n },\n {\n \"NAME\": \"Beverly206\"\n },\n {\n \"NAME\": \"Brandon396\"\n },\n {\n \"NAME\": \"Brandon459\"\n },\n {\n \"NAME\": \"Brandy121\"\n },\n {\n \"NAME\": \"Brandy58\"\n },\n {\n \"NAME\": \"Brenda144\"\n },\n {\n \"NAME\": \"Brenda207\"\n },\n {\n \"NAME\": \"Brittany295\"\n },\n {\n \"NAME\": \"Brittany358\"\n },\n {\n \"NAME\": \"Bryan171\"\n },\n {\n \"NAME\": \"Bryan234\"\n },\n {\n \"NAME\": \"Carl1\"\n },\n {\n \"NAME\": \"Carl64\"\n },\n {\n \"NAME\": \"Carla110\"\n },\n {\n \"NAME\": \"Carla47\"\n },\n {\n \"NAME\": \"Carlos169\"\n },\n {\n \"NAME\": \"Carlos232\"\n },\n {\n \"NAME\": \"Carol284\"\n },\n {\n \"NAME\": \"Carol347\"\n },\n {\n \"NAME\": \"Casey148\"\n },\n {\n \"NAME\": \"Casey211\"\n },\n {\n \"NAME\": \"Catherine275\"\n },\n {\n \"NAME\": \"Catherine338\"\n },\n {\n \"NAME\": \"Catherine406\"\n },\n {\n \"NAME\": \"Catherine469\"\n },\n {\n \"NAME\": \"Charlotte150\"\n },\n {\n \"NAME\": \"Charlotte213\"\n },\n {\n \"NAME\": \"Christina381\"\n },\n {\n \"NAME\": \"Christina444\"\n },\n {\n \"NAME\": \"Christopher11\"\n },\n {\n \"NAME\": \"Christopher124\"\n },\n {\n \"NAME\": \"Christopher156\"\n },\n {\n \"NAME\": \"Christopher186\"\n },\n {\n \"NAME\": \"Christopher188\"\n },\n {\n \"NAME\": \"Christopher219\"\n },\n {\n \"NAME\": \"Christopher249\"\n },\n {\n \"NAME\": \"Christopher251\"\n },\n {\n \"NAME\": \"Christopher262\"\n },\n {\n \"NAME\": \"Christopher29\"\n },\n {\n \"NAME\": \"Christopher325\"\n },\n {\n \"NAME\": \"Christopher6\"\n },\n {\n \"NAME\": \"Christopher61\"\n },\n {\n \"NAME\": \"Christopher69\"\n },\n {\n \"NAME\": \"Christopher74\"\n },\n {\n \"NAME\": \"Christopher92\"\n },\n {\n \"NAME\": \"Colleen283\"\n },\n {\n \"NAME\": \"Colleen346\"\n },\n {\n \"NAME\": \"Curtis14\"\n },\n {\n \"NAME\": \"Curtis77\"\n },\n {\n \"NAME\": \"Dana154\"\n },\n {\n \"NAME\": \"Dana217\"\n },\n {\n \"NAME\": \"Daniel20\"\n },\n {\n \"NAME\": \"Daniel267\"\n },\n {\n \"NAME\": \"Daniel296\"\n },\n {\n \"NAME\": \"Daniel330\"\n },\n {\n \"NAME\": \"Daniel359\"\n },\n {\n \"NAME\": \"Daniel83\"\n },\n {\n \"NAME\": \"Darryl436\"\n },\n {\n \"NAME\": \"Darryl499\"\n },\n {\n \"NAME\": \"David383\"\n },\n {\n \"NAME\": \"David386\"\n },\n {\n \"NAME\": \"David418\"\n },\n {\n \"NAME\": \"David429\"\n },\n {\n \"NAME\": \"David446\"\n },\n {\n \"NAME\": \"David449\"\n },\n {\n \"NAME\": \"David481\"\n },\n {\n \"NAME\": \"David492\"\n },\n {\n \"NAME\": \"Dawn297\"\n },\n {\n \"NAME\": \"Dawn360\"\n },\n {\n \"NAME\": \"Debbie162\"\n },\n {\n \"NAME\": \"Debbie225\"\n },\n {\n \"NAME\": \"Denise117\"\n },\n {\n \"NAME\": \"Denise54\"\n },\n {\n \"NAME\": \"Dennis161\"\n },\n {\n \"NAME\": \"Dennis224\"\n },\n {\n \"NAME\": \"Dennis402\"\n },\n {\n \"NAME\": \"Dennis465\"\n },\n {\n \"NAME\": \"Derek111\"\n },\n {\n \"NAME\": \"Derek48\"\n },\n {\n \"NAME\": \"Desiree404\"\n },\n {\n \"NAME\": \"Desiree467\"\n },\n {\n \"NAME\": \"Diane24\"\n },\n {\n \"NAME\": \"Diane87\"\n },\n {\n \"NAME\": \"Douglas178\"\n },\n {\n \"NAME\": \"Douglas241\"\n },\n {\n \"NAME\": \"Dustin7\"\n },\n {\n \"NAME\": \"Dustin70\"\n },\n {\n \"NAME\": \"Eric391\"\n },\n {\n \"NAME\": \"Eric454\"\n },\n {\n \"NAME\": \"Erica4\"\n },\n {\n \"NAME\": \"Erica67\"\n },\n {\n \"NAME\": \"Erik183\"\n },\n {\n \"NAME\": \"Erik246\"\n },\n {\n \"NAME\": \"Erin112\"\n },\n {\n \"NAME\": \"Erin268\"\n },\n {\n \"NAME\": \"Erin331\"\n },\n {\n \"NAME\": \"Erin49\"\n },\n {\n \"NAME\": \"Francisco71\"\n },\n {\n \"NAME\": \"Francisco8\"\n },\n {\n \"NAME\": \"Frank138\"\n },\n {\n \"NAME\": \"Frank201\"\n },\n {\n \"NAME\": \"Frank25\"\n },\n {\n \"NAME\": \"Frank88\"\n },\n {\n \"NAME\": \"Garrett157\"\n },\n {\n \"NAME\": \"Garrett220\"\n },\n {\n \"NAME\": \"George16\"\n },\n {\n \"NAME\": \"George306\"\n },\n {\n \"NAME\": \"George369\"\n },\n {\n \"NAME\": \"George79\"\n },\n {\n \"NAME\": \"Gerald164\"\n },\n {\n \"NAME\": \"Gerald227\"\n },\n {\n \"NAME\": \"Gregory274\"\n },\n {\n \"NAME\": \"Gregory337\"\n },\n {\n \"NAME\": \"Gregory426\"\n },\n {\n \"NAME\": \"Gregory489\"\n },\n {\n \"NAME\": \"Howard256\"\n },\n {\n \"NAME\": \"Howard319\"\n },\n {\n \"NAME\": \"Jacob181\"\n },\n {\n \"NAME\": \"Jacob244\"\n },\n {\n \"NAME\": \"Jacqueline440\"\n },\n {\n \"NAME\": \"James10\"\n },\n {\n \"NAME\": \"James109\"\n },\n {\n \"NAME\": \"James12\"\n },\n {\n \"NAME\": \"James155\"\n },\n {\n \"NAME\": \"James218\"\n },\n {\n \"NAME\": \"James382\"\n },\n {\n \"NAME\": \"James412\"\n },\n {\n \"NAME\": \"James417\"\n },\n {\n \"NAME\": \"James445\"\n },\n {\n \"NAME\": \"James46\"\n },\n {\n \"NAME\": \"James475\"\n },\n {\n \"NAME\": \"James480\"\n },\n {\n \"NAME\": \"James73\"\n },\n {\n \"NAME\": \"James75\"\n },\n {\n \"NAME\": \"Jared128\"\n },\n {\n \"NAME\": \"Jared191\"\n },\n {\n \"NAME\": \"Jason103\"\n },\n {\n \"NAME\": \"Jason40\"\n },\n {\n \"NAME\": \"Jeffrey264\"\n },\n {\n \"NAME\": \"Jeffrey327\"\n },\n {\n \"NAME\": \"Jennifer185\"\n },\n {\n \"NAME\": \"Jennifer248\"\n },\n {\n \"NAME\": \"Jeremy141\"\n },\n {\n \"NAME\": \"Jeremy204\"\n },\n {\n \"NAME\": \"Jeremy414\"\n },\n {\n \"NAME\": \"Jeremy477\"\n },\n {\n \"NAME\": \"Jerry257\"\n },\n {\n \"NAME\": \"Jerry320\"\n },\n {\n \"NAME\": \"Jessica305\"\n },\n {\n \"NAME\": \"Jessica368\"\n },\n {\n \"NAME\": \"Jessica433\"\n },\n {\n \"NAME\": \"Jessica496\"\n },\n {\n \"NAME\": \"Joe269\"\n },\n {\n \"NAME\": \"Joe332\"\n },\n {\n \"NAME\": \"John187\"\n },\n {\n \"NAME\": \"John189\"\n },\n {\n \"NAME\": \"John250\"\n },\n {\n \"NAME\": \"John252\"\n },\n {\n \"NAME\": \"John30\"\n },\n {\n \"NAME\": \"John300\"\n },\n {\n \"NAME\": \"John308\"\n },\n {\n \"NAME\": \"John32\"\n },\n {\n \"NAME\": \"John363\"\n },\n {\n \"NAME\": \"John371\"\n },\n {\n \"NAME\": \"John397\"\n },\n {\n \"NAME\": \"John434\"\n },\n {\n \"NAME\": \"John460\"\n },\n {\n \"NAME\": \"John497\"\n },\n {\n \"NAME\": \"John93\"\n },\n {\n \"NAME\": \"John95\"\n },\n {\n \"NAME\": \"Johnny279\"\n },\n {\n \"NAME\": \"Johnny342\"\n },\n {\n \"NAME\": \"Jonathan100\"\n },\n {\n \"NAME\": \"Jonathan17\"\n },\n {\n \"NAME\": \"Jonathan260\"\n },\n {\n \"NAME\": \"Jonathan323\"\n },\n {\n \"NAME\": \"Jonathan37\"\n },\n {\n \"NAME\": \"Jonathan415\"\n },\n {\n \"NAME\": \"Jonathan478\"\n },\n {\n \"NAME\": \"Jonathan80\"\n },\n {\n \"NAME\": \"Joseph163\"\n },\n {\n \"NAME\": \"Joseph165\"\n },\n {\n \"NAME\": \"Joseph226\"\n },\n {\n \"NAME\": \"Joseph228\"\n },\n {\n \"NAME\": \"Joseph411\"\n },\n {\n \"NAME\": \"Joseph432\"\n },\n {\n \"NAME\": \"Joseph474\"\n },\n {\n \"NAME\": \"Joseph495\"\n },\n {\n \"NAME\": \"Julie27\"\n },\n {\n \"NAME\": \"Julie90\"\n },\n {\n \"NAME\": \"Justin389\"\n },\n {\n \"NAME\": \"Justin452\"\n },\n {\n \"NAME\": \"Kaitlyn106\"\n },\n {\n \"NAME\": \"Kaitlyn43\"\n },\n {\n \"NAME\": \"Karen280\"\n },\n {\n \"NAME\": \"Karen343\"\n },\n {\n \"NAME\": \"Karen407\"\n },\n {\n \"NAME\": \"Karen425\"\n },\n {\n \"NAME\": \"Karen470\"\n },\n {\n \"NAME\": \"Karen488\"\n },\n {\n \"NAME\": \"Katherine119\"\n },\n {\n \"NAME\": \"Katherine22\"\n },\n {\n \"NAME\": \"Katherine56\"\n },\n {\n \"NAME\": \"Katherine85\"\n },\n {\n \"NAME\": \"Kelly302\"\n },\n {\n \"NAME\": \"Kelly365\"\n },\n {\n \"NAME\": \"Kevin134\"\n },\n {\n \"NAME\": \"Kevin197\"\n },\n {\n \"NAME\": \"Kim380\"\n },\n {\n \"NAME\": \"Kim443\"\n },\n {\n \"NAME\": \"Kimberly23\"\n },\n {\n \"NAME\": \"Kimberly26\"\n },\n {\n \"NAME\": \"Kimberly86\"\n },\n {\n \"NAME\": \"Kimberly89\"\n },\n {\n \"NAME\": \"Kristen315\"\n },\n {\n \"NAME\": \"Kristen378\"\n },\n {\n \"NAME\": \"Kristy423\"\n },\n {\n \"NAME\": \"Kristy486\"\n },\n {\n \"NAME\": \"Kyle388\"\n },\n {\n \"NAME\": \"Kyle451\"\n },\n {\n \"NAME\": \"Leah21\"\n },\n {\n \"NAME\": \"Leah84\"\n },\n {\n \"NAME\": \"Linda142\"\n },\n {\n \"NAME\": \"Linda205\"\n },\n {\n \"NAME\": \"Lindsey127\"\n },\n {\n \"NAME\": \"Lindsey190\"\n },\n {\n \"NAME\": \"Lisa136\"\n },\n {\n \"NAME\": \"Lisa179\"\n },\n {\n \"NAME\": \"Lisa199\"\n },\n {\n \"NAME\": \"Lisa242\"\n },\n {\n \"NAME\": \"Lisa276\"\n },\n {\n \"NAME\": \"Lisa339\"\n },\n {\n \"NAME\": \"Lisa398\"\n },\n {\n \"NAME\": \"Lisa461\"\n },\n {\n \"NAME\": \"Logan35\"\n },\n {\n \"NAME\": \"Logan98\"\n },\n {\n \"NAME\": \"Loretta3\"\n },\n {\n \"NAME\": \"Loretta66\"\n },\n {\n \"NAME\": \"Madison137\"\n },\n {\n \"NAME\": \"Madison200\"\n },\n {\n \"NAME\": \"Maria285\"\n },\n {\n \"NAME\": \"Maria348\"\n },\n {\n \"NAME\": \"Maria405\"\n },\n {\n \"NAME\": \"Maria468\"\n },\n {\n \"NAME\": \"Marie108\"\n },\n {\n \"NAME\": \"Marie45\"\n },\n {\n \"NAME\": \"Marissa401\"\n },\n {\n \"NAME\": \"Marissa464\"\n },\n {\n \"NAME\": \"Mark263\"\n },\n {\n \"NAME\": \"Mark326\"\n },\n {\n \"NAME\": \"Mary430\"\n },\n {\n \"NAME\": \"Mary493\"\n },\n {\n \"NAME\": \"Matthew18\"\n },\n {\n \"NAME\": \"Matthew293\"\n },\n {\n \"NAME\": \"Matthew356\"\n },\n {\n \"NAME\": \"Matthew379\"\n },\n {\n \"NAME\": \"Matthew409\"\n },\n {\n \"NAME\": \"Matthew437\"\n },\n {\n \"NAME\": \"Matthew442\"\n },\n {\n \"NAME\": \"Matthew472\"\n },\n {\n \"NAME\": \"Matthew81\"\n },\n {\n \"NAME\": \"Megan291\"\n },\n {\n \"NAME\": \"Megan354\"\n },\n {\n \"NAME\": \"Megan387\"\n },\n {\n \"NAME\": \"Megan450\"\n },\n {\n \"NAME\": \"Melissa422\"\n },\n {\n \"NAME\": \"Melissa485\"\n },\n {\n \"NAME\": \"Michael122\"\n },\n {\n \"NAME\": \"Michael123\"\n },\n {\n \"NAME\": \"Michael168\"\n },\n {\n \"NAME\": \"Michael174\"\n },\n {\n \"NAME\": \"Michael231\"\n },\n {\n \"NAME\": \"Michael237\"\n },\n {\n \"NAME\": \"Michael410\"\n },\n {\n \"NAME\": \"Michael473\"\n },\n {\n \"NAME\": \"Michael59\"\n },\n {\n \"NAME\": \"Michael60\"\n },\n {\n \"NAME\": \"Micheal139\"\n },\n {\n \"NAME\": \"Micheal202\"\n },\n {\n \"NAME\": \"Michelle129\"\n },\n {\n \"NAME\": \"Michelle170\"\n },\n {\n \"NAME\": \"Michelle192\"\n },\n {\n \"NAME\": \"Michelle233\"\n },\n {\n \"NAME\": \"Michelle254\"\n },\n {\n \"NAME\": \"Michelle317\"\n },\n {\n \"NAME\": \"Michelle419\"\n },\n {\n \"NAME\": \"Michelle482\"\n },\n {\n \"NAME\": \"Miguel104\"\n },\n {\n \"NAME\": \"Miguel41\"\n },\n {\n \"NAME\": \"Monica393\"\n },\n {\n \"NAME\": \"Monica456\"\n },\n {\n \"NAME\": \"Nancy114\"\n },\n {\n \"NAME\": \"Nancy51\"\n },\n {\n \"NAME\": \"Natalie266\"\n },\n {\n \"NAME\": \"Natalie329\"\n },\n {\n \"NAME\": \"Natasha153\"\n },\n {\n \"NAME\": \"Natasha216\"\n },\n {\n \"NAME\": \"Nicholas255\"\n },\n {\n \"NAME\": \"Nicholas318\"\n },\n {\n \"NAME\": \"Nicholas33\"\n },\n {\n \"NAME\": \"Nicholas96\"\n },\n {\n \"NAME\": \"Norma258\"\n },\n {\n \"NAME\": \"Norma321\"\n },\n {\n \"NAME\": \"Olivia31\"\n },\n {\n \"NAME\": \"Olivia94\"\n },\n {\n \"NAME\": \"Pamela265\"\n },\n {\n \"NAME\": \"Pamela328\"\n },\n {\n \"NAME\": \"Patrick273\"\n },\n {\n \"NAME\": \"Patrick281\"\n },\n {\n \"NAME\": \"Patrick336\"\n },\n {\n \"NAME\": \"Patrick344\"\n },\n {\n \"NAME\": \"Peter184\"\n },\n {\n \"NAME\": \"Peter247\"\n },\n {\n \"NAME\": \"Phyllis441\"\n },\n {\n \"NAME\": \"Rachel173\"\n },\n {\n \"NAME\": \"Rachel236\"\n },\n {\n \"NAME\": \"Raymond394\"\n },\n {\n \"NAME\": \"Raymond457\"\n },\n {\n \"NAME\": \"Rebecca101\"\n },\n {\n \"NAME\": \"Rebecca38\"\n },\n {\n \"NAME\": \"Ricardo158\"\n },\n {\n \"NAME\": \"Ricardo221\"\n },\n {\n \"NAME\": \"Richard290\"\n },\n {\n \"NAME\": \"Richard353\"\n },\n {\n \"NAME\": \"Ricky288\"\n },\n {\n \"NAME\": \"Ricky351\"\n },\n {\n \"NAME\": \"Rita309\"\n },\n {\n \"NAME\": \"Rita372\"\n },\n {\n \"NAME\": \"Robert431\"\n },\n {\n \"NAME\": \"Robert494\"\n },\n {\n \"NAME\": \"Robert5\"\n },\n {\n \"NAME\": \"Robert68\"\n },\n {\n \"NAME\": \"Robin307\"\n },\n {\n \"NAME\": \"Robin370\"\n },\n {\n \"NAME\": \"Ruth286\"\n },\n {\n \"NAME\": \"Ruth349\"\n },\n {\n \"NAME\": \"Ryan272\"\n },\n {\n \"NAME\": \"Ryan335\"\n },\n {\n \"NAME\": \"Ryan72\"\n },\n {\n \"NAME\": \"Ryan9\"\n },\n {\n \"NAME\": \"Samantha304\"\n },\n {\n \"NAME\": \"Samantha367\"\n },\n {\n \"NAME\": \"Samuel120\"\n },\n {\n \"NAME\": \"Samuel28\"\n },\n {\n \"NAME\": \"Samuel416\"\n },\n {\n \"NAME\": \"Samuel479\"\n },\n {\n \"NAME\": \"Samuel57\"\n },\n {\n \"NAME\": \"Samuel91\"\n },\n {\n \"NAME\": \"Sandra126\"\n },\n {\n \"NAME\": \"Sandra313\"\n },\n {\n \"NAME\": \"Sandra376\"\n },\n {\n \"NAME\": \"Sandra63\"\n },\n {\n \"NAME\": \"Sarah298\"\n },\n {\n \"NAME\": \"Sarah314\"\n },\n {\n \"NAME\": \"Sarah361\"\n },\n {\n \"NAME\": \"Sarah377\"\n },\n {\n \"NAME\": \"Sarah408\"\n },\n {\n \"NAME\": \"Sarah471\"\n },\n {\n \"NAME\": \"Savannah130\"\n },\n {\n \"NAME\": \"Savannah193\"\n },\n {\n \"NAME\": \"Scott413\"\n },\n {\n \"NAME\": \"Scott476\"\n },\n {\n \"NAME\": \"Shane253\"\n },\n {\n \"NAME\": \"Shane316\"\n },\n {\n \"NAME\": \"Shannon107\"\n },\n {\n \"NAME\": \"Shannon278\"\n },\n {\n \"NAME\": \"Shannon341\"\n },\n {\n \"NAME\": \"Shannon384\"\n },\n {\n \"NAME\": \"Shannon44\"\n },\n {\n \"NAME\": \"Shannon447\"\n },\n {\n \"NAME\": \"Shelly36\"\n },\n {\n \"NAME\": \"Shelly99\"\n },\n {\n \"NAME\": \"Sherry289\"\n },\n {\n \"NAME\": \"Sherry352\"\n },\n {\n \"NAME\": \"Sierra261\"\n },\n {\n \"NAME\": \"Sierra324\"\n },\n {\n \"NAME\": \"Stephanie145\"\n },\n {\n \"NAME\": \"Stephanie208\"\n },\n {\n \"NAME\": \"Stephanie403\"\n },\n {\n \"NAME\": \"Stephanie466\"\n },\n {\n \"NAME\": \"Stephen177\"\n },\n {\n \"NAME\": \"Stephen240\"\n },\n {\n \"NAME\": \"Stephen427\"\n },\n {\n \"NAME\": \"Stephen490\"\n },\n {\n \"NAME\": \"Steven176\"\n },\n {\n \"NAME\": \"Steven239\"\n },\n {\n \"NAME\": \"Steven270\"\n },\n {\n \"NAME\": \"Steven301\"\n },\n {\n \"NAME\": \"Steven312\"\n },\n {\n \"NAME\": \"Steven333\"\n },\n {\n \"NAME\": \"Steven364\"\n },\n {\n \"NAME\": \"Steven375\"\n },\n {\n \"NAME\": \"Susan116\"\n },\n {\n \"NAME\": \"Susan140\"\n },\n {\n \"NAME\": \"Susan203\"\n },\n {\n \"NAME\": \"Susan53\"\n },\n {\n \"NAME\": \"Tamara146\"\n },\n {\n \"NAME\": \"Tamara209\"\n },\n {\n \"NAME\": \"Tammie125\"\n },\n {\n \"NAME\": \"Tammie62\"\n },\n {\n \"NAME\": \"Taylor287\"\n },\n {\n \"NAME\": \"Taylor350\"\n },\n {\n \"NAME\": \"Theresa182\"\n },\n {\n \"NAME\": \"Theresa245\"\n },\n {\n \"NAME\": \"Thomas105\"\n },\n {\n \"NAME\": \"Thomas149\"\n },\n {\n \"NAME\": \"Thomas166\"\n },\n {\n \"NAME\": \"Thomas212\"\n },\n {\n \"NAME\": \"Thomas229\"\n },\n {\n \"NAME\": \"Thomas42\"\n },\n {\n \"NAME\": \"Tiffany13\"\n },\n {\n \"NAME\": \"Tiffany76\"\n },\n {\n \"NAME\": \"Timothy294\"\n },\n {\n \"NAME\": \"Timothy299\"\n },\n {\n \"NAME\": \"Timothy357\"\n },\n {\n \"NAME\": \"Timothy362\"\n },\n {\n \"NAME\": \"Tina180\"\n },\n {\n \"NAME\": \"Tina243\"\n },\n {\n \"NAME\": \"Tina277\"\n },\n {\n \"NAME\": \"Tina310\"\n },\n {\n \"NAME\": \"Tina340\"\n },\n {\n \"NAME\": \"Tina373\"\n },\n {\n \"NAME\": \"Todd421\"\n },\n {\n \"NAME\": \"Todd484\"\n },\n {\n \"NAME\": \"Tonya102\"\n },\n {\n \"NAME\": \"Tonya39\"\n },\n {\n \"NAME\": \"Travis132\"\n },\n {\n \"NAME\": \"Travis195\"\n },\n {\n \"NAME\": \"Vanessa282\"\n },\n {\n \"NAME\": \"Vanessa345\"\n },\n {\n \"NAME\": \"Victor292\"\n },\n {\n \"NAME\": \"Victor355\"\n },\n {\n \"NAME\": \"Victoria424\"\n },\n {\n \"NAME\": \"Victoria487\"\n },\n {\n \"NAME\": \"Whitney118\"\n },\n {\n \"NAME\": \"Whitney2\"\n },\n {\n \"NAME\": \"Whitney55\"\n },\n {\n \"NAME\": \"Whitney65\"\n },\n {\n \"NAME\": \"Zachary131\"\n },\n {\n \"NAME\": \"Zachary152\"\n },\n {\n \"NAME\": \"Zachary194\"\n },\n {\n \"NAME\": \"Zachary215\"\n }\n]" + }, + { + "name": "Users By Filter", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?distinct=\"NAME\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [492, 3]}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"ID desc\"", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "distinct", + "value": "\"NAME\"" + }, + { + "key": "where", + "value": "{\"id\": {\"like\": 4}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"name asc\"", + "disabled": true + }, + { + "key": "order", + "value": "\"orcidId desc\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "20374" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Mon, 24 Aug 2020 12:18:53 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"NAME\": \"Aaron311\"\n },\n {\n \"NAME\": \"Aaron374\"\n },\n {\n \"NAME\": \"Aaron438\"\n },\n {\n \"NAME\": \"Adam133\"\n },\n {\n \"NAME\": \"Adam196\"\n },\n {\n \"NAME\": \"Adam428\"\n },\n {\n \"NAME\": \"Adam491\"\n },\n {\n \"NAME\": \"Adriana19\"\n },\n {\n \"NAME\": \"Adriana82\"\n },\n {\n \"NAME\": \"Alexandra135\"\n },\n {\n \"NAME\": \"Alexandra198\"\n },\n {\n \"NAME\": \"Alicia175\"\n },\n {\n \"NAME\": \"Alicia238\"\n },\n {\n \"NAME\": \"Alison113\"\n },\n {\n \"NAME\": \"Alison50\"\n },\n {\n \"NAME\": \"Alyssa420\"\n },\n {\n \"NAME\": \"Alyssa483\"\n },\n {\n \"NAME\": \"Amanda259\"\n },\n {\n \"NAME\": \"Amanda322\"\n },\n {\n \"NAME\": \"Amy160\"\n },\n {\n \"NAME\": \"Amy223\"\n },\n {\n \"NAME\": \"Andrea392\"\n },\n {\n \"NAME\": \"Andrea435\"\n },\n {\n \"NAME\": \"Andrea455\"\n },\n {\n \"NAME\": \"Andrea498\"\n },\n {\n \"NAME\": \"Andrew147\"\n },\n {\n \"NAME\": \"Andrew151\"\n },\n {\n \"NAME\": \"Andrew167\"\n },\n {\n \"NAME\": \"Andrew210\"\n },\n {\n \"NAME\": \"Andrew214\"\n },\n {\n \"NAME\": \"Andrew230\"\n },\n {\n \"NAME\": \"Andrew390\"\n },\n {\n \"NAME\": \"Andrew453\"\n },\n {\n \"NAME\": \"Angel34\"\n },\n {\n \"NAME\": \"Angel97\"\n },\n {\n \"NAME\": \"Angela399\"\n },\n {\n \"NAME\": \"Angela462\"\n },\n {\n \"NAME\": \"Anna303\"\n },\n {\n \"NAME\": \"Anna366\"\n },\n {\n \"NAME\": \"Anne172\"\n },\n {\n \"NAME\": \"Anne235\"\n },\n {\n \"NAME\": \"Anthony395\"\n },\n {\n \"NAME\": \"Anthony458\"\n },\n {\n \"NAME\": \"April271\"\n },\n {\n \"NAME\": \"April334\"\n },\n {\n \"NAME\": \"Ashley159\"\n },\n {\n \"NAME\": \"Ashley222\"\n },\n {\n \"NAME\": \"Bailey400\"\n },\n {\n \"NAME\": \"Bailey463\"\n },\n {\n \"NAME\": \"Barbara115\"\n },\n {\n \"NAME\": \"Barbara385\"\n },\n {\n \"NAME\": \"Barbara448\"\n },\n {\n \"NAME\": \"Barbara52\"\n },\n {\n \"NAME\": \"Benjamin15\"\n },\n {\n \"NAME\": \"Benjamin78\"\n },\n {\n \"NAME\": \"Beverly143\"\n },\n {\n \"NAME\": \"Beverly206\"\n },\n {\n \"NAME\": \"Brandon396\"\n },\n {\n \"NAME\": \"Brandon459\"\n },\n {\n \"NAME\": \"Brandy121\"\n },\n {\n \"NAME\": \"Brandy58\"\n },\n {\n \"NAME\": \"Brenda144\"\n },\n {\n \"NAME\": \"Brenda207\"\n },\n {\n \"NAME\": \"Brittany295\"\n },\n {\n \"NAME\": \"Brittany358\"\n },\n {\n \"NAME\": \"Bryan171\"\n },\n {\n \"NAME\": \"Bryan234\"\n },\n {\n \"NAME\": \"Carl1\"\n },\n {\n \"NAME\": \"Carl64\"\n },\n {\n \"NAME\": \"Carla110\"\n },\n {\n \"NAME\": \"Carla47\"\n },\n {\n \"NAME\": \"Carlos169\"\n },\n {\n \"NAME\": \"Carlos232\"\n },\n {\n \"NAME\": \"Carol284\"\n },\n {\n \"NAME\": \"Carol347\"\n },\n {\n \"NAME\": \"Casey148\"\n },\n {\n \"NAME\": \"Casey211\"\n },\n {\n \"NAME\": \"Catherine275\"\n },\n {\n \"NAME\": \"Catherine338\"\n },\n {\n \"NAME\": \"Catherine406\"\n },\n {\n \"NAME\": \"Catherine469\"\n },\n {\n \"NAME\": \"Charlotte150\"\n },\n {\n \"NAME\": \"Charlotte213\"\n },\n {\n \"NAME\": \"Christina381\"\n },\n {\n \"NAME\": \"Christina444\"\n },\n {\n \"NAME\": \"Christopher11\"\n },\n {\n \"NAME\": \"Christopher124\"\n },\n {\n \"NAME\": \"Christopher156\"\n },\n {\n \"NAME\": \"Christopher186\"\n },\n {\n \"NAME\": \"Christopher188\"\n },\n {\n \"NAME\": \"Christopher219\"\n },\n {\n \"NAME\": \"Christopher249\"\n },\n {\n \"NAME\": \"Christopher251\"\n },\n {\n \"NAME\": \"Christopher262\"\n },\n {\n \"NAME\": \"Christopher29\"\n },\n {\n \"NAME\": \"Christopher325\"\n },\n {\n \"NAME\": \"Christopher6\"\n },\n {\n \"NAME\": \"Christopher61\"\n },\n {\n \"NAME\": \"Christopher69\"\n },\n {\n \"NAME\": \"Christopher74\"\n },\n {\n \"NAME\": \"Christopher92\"\n },\n {\n \"NAME\": \"Colleen283\"\n },\n {\n \"NAME\": \"Colleen346\"\n },\n {\n \"NAME\": \"Curtis14\"\n },\n {\n \"NAME\": \"Curtis77\"\n },\n {\n \"NAME\": \"Dana154\"\n },\n {\n \"NAME\": \"Dana217\"\n },\n {\n \"NAME\": \"Daniel20\"\n },\n {\n \"NAME\": \"Daniel267\"\n },\n {\n \"NAME\": \"Daniel296\"\n },\n {\n \"NAME\": \"Daniel330\"\n },\n {\n \"NAME\": \"Daniel359\"\n },\n {\n \"NAME\": \"Daniel83\"\n },\n {\n \"NAME\": \"Darryl436\"\n },\n {\n \"NAME\": \"Darryl499\"\n },\n {\n \"NAME\": \"David383\"\n },\n {\n \"NAME\": \"David386\"\n },\n {\n \"NAME\": \"David418\"\n },\n {\n \"NAME\": \"David429\"\n },\n {\n \"NAME\": \"David446\"\n },\n {\n \"NAME\": \"David449\"\n },\n {\n \"NAME\": \"David481\"\n },\n {\n \"NAME\": \"David492\"\n },\n {\n \"NAME\": \"Dawn297\"\n },\n {\n \"NAME\": \"Dawn360\"\n },\n {\n \"NAME\": \"Debbie162\"\n },\n {\n \"NAME\": \"Debbie225\"\n },\n {\n \"NAME\": \"Denise117\"\n },\n {\n \"NAME\": \"Denise54\"\n },\n {\n \"NAME\": \"Dennis161\"\n },\n {\n \"NAME\": \"Dennis224\"\n },\n {\n \"NAME\": \"Dennis402\"\n },\n {\n \"NAME\": \"Dennis465\"\n },\n {\n \"NAME\": \"Derek111\"\n },\n {\n \"NAME\": \"Derek48\"\n },\n {\n \"NAME\": \"Desiree404\"\n },\n {\n \"NAME\": \"Desiree467\"\n },\n {\n \"NAME\": \"Diane24\"\n },\n {\n \"NAME\": \"Diane87\"\n },\n {\n \"NAME\": \"Douglas178\"\n },\n {\n \"NAME\": \"Douglas241\"\n },\n {\n \"NAME\": \"Dustin7\"\n },\n {\n \"NAME\": \"Dustin70\"\n },\n {\n \"NAME\": \"Eric391\"\n },\n {\n \"NAME\": \"Eric454\"\n },\n {\n \"NAME\": \"Erica4\"\n },\n {\n \"NAME\": \"Erica67\"\n },\n {\n \"NAME\": \"Erik183\"\n },\n {\n \"NAME\": \"Erik246\"\n },\n {\n \"NAME\": \"Erin112\"\n },\n {\n \"NAME\": \"Erin268\"\n },\n {\n \"NAME\": \"Erin331\"\n },\n {\n \"NAME\": \"Erin49\"\n },\n {\n \"NAME\": \"Francisco71\"\n },\n {\n \"NAME\": \"Francisco8\"\n },\n {\n \"NAME\": \"Frank138\"\n },\n {\n \"NAME\": \"Frank201\"\n },\n {\n \"NAME\": \"Frank25\"\n },\n {\n \"NAME\": \"Frank88\"\n },\n {\n \"NAME\": \"Garrett157\"\n },\n {\n \"NAME\": \"Garrett220\"\n },\n {\n \"NAME\": \"George16\"\n },\n {\n \"NAME\": \"George306\"\n },\n {\n \"NAME\": \"George369\"\n },\n {\n \"NAME\": \"George79\"\n },\n {\n \"NAME\": \"Gerald164\"\n },\n {\n \"NAME\": \"Gerald227\"\n },\n {\n \"NAME\": \"Gregory274\"\n },\n {\n \"NAME\": \"Gregory337\"\n },\n {\n \"NAME\": \"Gregory426\"\n },\n {\n \"NAME\": \"Gregory489\"\n },\n {\n \"NAME\": \"Howard256\"\n },\n {\n \"NAME\": \"Howard319\"\n },\n {\n \"NAME\": \"Jacob181\"\n },\n {\n \"NAME\": \"Jacob244\"\n },\n {\n \"NAME\": \"Jacqueline440\"\n },\n {\n \"NAME\": \"James10\"\n },\n {\n \"NAME\": \"James109\"\n },\n {\n \"NAME\": \"James12\"\n },\n {\n \"NAME\": \"James155\"\n },\n {\n \"NAME\": \"James218\"\n },\n {\n \"NAME\": \"James382\"\n },\n {\n \"NAME\": \"James412\"\n },\n {\n \"NAME\": \"James417\"\n },\n {\n \"NAME\": \"James445\"\n },\n {\n \"NAME\": \"James46\"\n },\n {\n \"NAME\": \"James475\"\n },\n {\n \"NAME\": \"James480\"\n },\n {\n \"NAME\": \"James73\"\n },\n {\n \"NAME\": \"James75\"\n },\n {\n \"NAME\": \"Jared128\"\n },\n {\n \"NAME\": \"Jared191\"\n },\n {\n \"NAME\": \"Jason103\"\n },\n {\n \"NAME\": \"Jason40\"\n },\n {\n \"NAME\": \"Jeffrey264\"\n },\n {\n \"NAME\": \"Jeffrey327\"\n },\n {\n \"NAME\": \"Jennifer185\"\n },\n {\n \"NAME\": \"Jennifer248\"\n },\n {\n \"NAME\": \"Jeremy141\"\n },\n {\n \"NAME\": \"Jeremy204\"\n },\n {\n \"NAME\": \"Jeremy414\"\n },\n {\n \"NAME\": \"Jeremy477\"\n },\n {\n \"NAME\": \"Jerry257\"\n },\n {\n \"NAME\": \"Jerry320\"\n },\n {\n \"NAME\": \"Jessica305\"\n },\n {\n \"NAME\": \"Jessica368\"\n },\n {\n \"NAME\": \"Jessica433\"\n },\n {\n \"NAME\": \"Jessica496\"\n },\n {\n \"NAME\": \"Joe269\"\n },\n {\n \"NAME\": \"Joe332\"\n },\n {\n \"NAME\": \"John187\"\n },\n {\n \"NAME\": \"John189\"\n },\n {\n \"NAME\": \"John250\"\n },\n {\n \"NAME\": \"John252\"\n },\n {\n \"NAME\": \"John30\"\n },\n {\n \"NAME\": \"John300\"\n },\n {\n \"NAME\": \"John308\"\n },\n {\n \"NAME\": \"John32\"\n },\n {\n \"NAME\": \"John363\"\n },\n {\n \"NAME\": \"John371\"\n },\n {\n \"NAME\": \"John397\"\n },\n {\n \"NAME\": \"John434\"\n },\n {\n \"NAME\": \"John460\"\n },\n {\n \"NAME\": \"John497\"\n },\n {\n \"NAME\": \"John93\"\n },\n {\n \"NAME\": \"John95\"\n },\n {\n \"NAME\": \"Johnny279\"\n },\n {\n \"NAME\": \"Johnny342\"\n },\n {\n \"NAME\": \"Jonathan100\"\n },\n {\n \"NAME\": \"Jonathan17\"\n },\n {\n \"NAME\": \"Jonathan260\"\n },\n {\n \"NAME\": \"Jonathan323\"\n },\n {\n \"NAME\": \"Jonathan37\"\n },\n {\n \"NAME\": \"Jonathan415\"\n },\n {\n \"NAME\": \"Jonathan478\"\n },\n {\n \"NAME\": \"Jonathan80\"\n },\n {\n \"NAME\": \"Joseph163\"\n },\n {\n \"NAME\": \"Joseph165\"\n },\n {\n \"NAME\": \"Joseph226\"\n },\n {\n \"NAME\": \"Joseph228\"\n },\n {\n \"NAME\": \"Joseph411\"\n },\n {\n \"NAME\": \"Joseph432\"\n },\n {\n \"NAME\": \"Joseph474\"\n },\n {\n \"NAME\": \"Joseph495\"\n },\n {\n \"NAME\": \"Julie27\"\n },\n {\n \"NAME\": \"Julie90\"\n },\n {\n \"NAME\": \"Justin389\"\n },\n {\n \"NAME\": \"Justin452\"\n },\n {\n \"NAME\": \"Kaitlyn106\"\n },\n {\n \"NAME\": \"Kaitlyn43\"\n },\n {\n \"NAME\": \"Karen280\"\n },\n {\n \"NAME\": \"Karen343\"\n },\n {\n \"NAME\": \"Karen407\"\n },\n {\n \"NAME\": \"Karen425\"\n },\n {\n \"NAME\": \"Karen470\"\n },\n {\n \"NAME\": \"Karen488\"\n },\n {\n \"NAME\": \"Katherine119\"\n },\n {\n \"NAME\": \"Katherine22\"\n },\n {\n \"NAME\": \"Katherine56\"\n },\n {\n \"NAME\": \"Katherine85\"\n },\n {\n \"NAME\": \"Kelly302\"\n },\n {\n \"NAME\": \"Kelly365\"\n },\n {\n \"NAME\": \"Kevin134\"\n },\n {\n \"NAME\": \"Kevin197\"\n },\n {\n \"NAME\": \"Kim380\"\n },\n {\n \"NAME\": \"Kim443\"\n },\n {\n \"NAME\": \"Kimberly23\"\n },\n {\n \"NAME\": \"Kimberly26\"\n },\n {\n \"NAME\": \"Kimberly86\"\n },\n {\n \"NAME\": \"Kimberly89\"\n },\n {\n \"NAME\": \"Kristen315\"\n },\n {\n \"NAME\": \"Kristen378\"\n },\n {\n \"NAME\": \"Kristy423\"\n },\n {\n \"NAME\": \"Kristy486\"\n },\n {\n \"NAME\": \"Kyle388\"\n },\n {\n \"NAME\": \"Kyle451\"\n },\n {\n \"NAME\": \"Leah21\"\n },\n {\n \"NAME\": \"Leah84\"\n },\n {\n \"NAME\": \"Linda142\"\n },\n {\n \"NAME\": \"Linda205\"\n },\n {\n \"NAME\": \"Lindsey127\"\n },\n {\n \"NAME\": \"Lindsey190\"\n },\n {\n \"NAME\": \"Lisa136\"\n },\n {\n \"NAME\": \"Lisa179\"\n },\n {\n \"NAME\": \"Lisa199\"\n },\n {\n \"NAME\": \"Lisa242\"\n },\n {\n \"NAME\": \"Lisa276\"\n },\n {\n \"NAME\": \"Lisa339\"\n },\n {\n \"NAME\": \"Lisa398\"\n },\n {\n \"NAME\": \"Lisa461\"\n },\n {\n \"NAME\": \"Logan35\"\n },\n {\n \"NAME\": \"Logan98\"\n },\n {\n \"NAME\": \"Loretta3\"\n },\n {\n \"NAME\": \"Loretta66\"\n },\n {\n \"NAME\": \"Madison137\"\n },\n {\n \"NAME\": \"Madison200\"\n },\n {\n \"NAME\": \"Maria285\"\n },\n {\n \"NAME\": \"Maria348\"\n },\n {\n \"NAME\": \"Maria405\"\n },\n {\n \"NAME\": \"Maria468\"\n },\n {\n \"NAME\": \"Marie108\"\n },\n {\n \"NAME\": \"Marie45\"\n },\n {\n \"NAME\": \"Marissa401\"\n },\n {\n \"NAME\": \"Marissa464\"\n },\n {\n \"NAME\": \"Mark263\"\n },\n {\n \"NAME\": \"Mark326\"\n },\n {\n \"NAME\": \"Mary430\"\n },\n {\n \"NAME\": \"Mary493\"\n },\n {\n \"NAME\": \"Matthew18\"\n },\n {\n \"NAME\": \"Matthew293\"\n },\n {\n \"NAME\": \"Matthew356\"\n },\n {\n \"NAME\": \"Matthew379\"\n },\n {\n \"NAME\": \"Matthew409\"\n },\n {\n \"NAME\": \"Matthew437\"\n },\n {\n \"NAME\": \"Matthew442\"\n },\n {\n \"NAME\": \"Matthew472\"\n },\n {\n \"NAME\": \"Matthew81\"\n },\n {\n \"NAME\": \"Megan291\"\n },\n {\n \"NAME\": \"Megan354\"\n },\n {\n \"NAME\": \"Megan387\"\n },\n {\n \"NAME\": \"Megan450\"\n },\n {\n \"NAME\": \"Melissa422\"\n },\n {\n \"NAME\": \"Melissa485\"\n },\n {\n \"NAME\": \"Michael122\"\n },\n {\n \"NAME\": \"Michael123\"\n },\n {\n \"NAME\": \"Michael168\"\n },\n {\n \"NAME\": \"Michael174\"\n },\n {\n \"NAME\": \"Michael231\"\n },\n {\n \"NAME\": \"Michael237\"\n },\n {\n \"NAME\": \"Michael410\"\n },\n {\n \"NAME\": \"Michael473\"\n },\n {\n \"NAME\": \"Michael59\"\n },\n {\n \"NAME\": \"Michael60\"\n },\n {\n \"NAME\": \"Micheal139\"\n },\n {\n \"NAME\": \"Micheal202\"\n },\n {\n \"NAME\": \"Michelle129\"\n },\n {\n \"NAME\": \"Michelle170\"\n },\n {\n \"NAME\": \"Michelle192\"\n },\n {\n \"NAME\": \"Michelle233\"\n },\n {\n \"NAME\": \"Michelle254\"\n },\n {\n \"NAME\": \"Michelle317\"\n },\n {\n \"NAME\": \"Michelle419\"\n },\n {\n \"NAME\": \"Michelle482\"\n },\n {\n \"NAME\": \"Miguel104\"\n },\n {\n \"NAME\": \"Miguel41\"\n },\n {\n \"NAME\": \"Monica393\"\n },\n {\n \"NAME\": \"Monica456\"\n },\n {\n \"NAME\": \"Nancy114\"\n },\n {\n \"NAME\": \"Nancy51\"\n },\n {\n \"NAME\": \"Natalie266\"\n },\n {\n \"NAME\": \"Natalie329\"\n },\n {\n \"NAME\": \"Natasha153\"\n },\n {\n \"NAME\": \"Natasha216\"\n },\n {\n \"NAME\": \"Nicholas255\"\n },\n {\n \"NAME\": \"Nicholas318\"\n },\n {\n \"NAME\": \"Nicholas33\"\n },\n {\n \"NAME\": \"Nicholas96\"\n },\n {\n \"NAME\": \"Norma258\"\n },\n {\n \"NAME\": \"Norma321\"\n },\n {\n \"NAME\": \"Olivia31\"\n },\n {\n \"NAME\": \"Olivia94\"\n },\n {\n \"NAME\": \"Pamela265\"\n },\n {\n \"NAME\": \"Pamela328\"\n },\n {\n \"NAME\": \"Patrick273\"\n },\n {\n \"NAME\": \"Patrick281\"\n },\n {\n \"NAME\": \"Patrick336\"\n },\n {\n \"NAME\": \"Patrick344\"\n },\n {\n \"NAME\": \"Peter184\"\n },\n {\n \"NAME\": \"Peter247\"\n },\n {\n \"NAME\": \"Phyllis441\"\n },\n {\n \"NAME\": \"Rachel173\"\n },\n {\n \"NAME\": \"Rachel236\"\n },\n {\n \"NAME\": \"Raymond394\"\n },\n {\n \"NAME\": \"Raymond457\"\n },\n {\n \"NAME\": \"Rebecca101\"\n },\n {\n \"NAME\": \"Rebecca38\"\n },\n {\n \"NAME\": \"Ricardo158\"\n },\n {\n \"NAME\": \"Ricardo221\"\n },\n {\n \"NAME\": \"Richard290\"\n },\n {\n \"NAME\": \"Richard353\"\n },\n {\n \"NAME\": \"Ricky288\"\n },\n {\n \"NAME\": \"Ricky351\"\n },\n {\n \"NAME\": \"Rita309\"\n },\n {\n \"NAME\": \"Rita372\"\n },\n {\n \"NAME\": \"Robert431\"\n },\n {\n \"NAME\": \"Robert494\"\n },\n {\n \"NAME\": \"Robert5\"\n },\n {\n \"NAME\": \"Robert68\"\n },\n {\n \"NAME\": \"Robin307\"\n },\n {\n \"NAME\": \"Robin370\"\n },\n {\n \"NAME\": \"Ruth286\"\n },\n {\n \"NAME\": \"Ruth349\"\n },\n {\n \"NAME\": \"Ryan272\"\n },\n {\n \"NAME\": \"Ryan335\"\n },\n {\n \"NAME\": \"Ryan72\"\n },\n {\n \"NAME\": \"Ryan9\"\n },\n {\n \"NAME\": \"Samantha304\"\n },\n {\n \"NAME\": \"Samantha367\"\n },\n {\n \"NAME\": \"Samuel120\"\n },\n {\n \"NAME\": \"Samuel28\"\n },\n {\n \"NAME\": \"Samuel416\"\n },\n {\n \"NAME\": \"Samuel479\"\n },\n {\n \"NAME\": \"Samuel57\"\n },\n {\n \"NAME\": \"Samuel91\"\n },\n {\n \"NAME\": \"Sandra126\"\n },\n {\n \"NAME\": \"Sandra313\"\n },\n {\n \"NAME\": \"Sandra376\"\n },\n {\n \"NAME\": \"Sandra63\"\n },\n {\n \"NAME\": \"Sarah298\"\n },\n {\n \"NAME\": \"Sarah314\"\n },\n {\n \"NAME\": \"Sarah361\"\n },\n {\n \"NAME\": \"Sarah377\"\n },\n {\n \"NAME\": \"Sarah408\"\n },\n {\n \"NAME\": \"Sarah471\"\n },\n {\n \"NAME\": \"Savannah130\"\n },\n {\n \"NAME\": \"Savannah193\"\n },\n {\n \"NAME\": \"Scott413\"\n },\n {\n \"NAME\": \"Scott476\"\n },\n {\n \"NAME\": \"Shane253\"\n },\n {\n \"NAME\": \"Shane316\"\n },\n {\n \"NAME\": \"Shannon107\"\n },\n {\n \"NAME\": \"Shannon278\"\n },\n {\n \"NAME\": \"Shannon341\"\n },\n {\n \"NAME\": \"Shannon384\"\n },\n {\n \"NAME\": \"Shannon44\"\n },\n {\n \"NAME\": \"Shannon447\"\n },\n {\n \"NAME\": \"Shelly36\"\n },\n {\n \"NAME\": \"Shelly99\"\n },\n {\n \"NAME\": \"Sherry289\"\n },\n {\n \"NAME\": \"Sherry352\"\n },\n {\n \"NAME\": \"Sierra261\"\n },\n {\n \"NAME\": \"Sierra324\"\n },\n {\n \"NAME\": \"Stephanie145\"\n },\n {\n \"NAME\": \"Stephanie208\"\n },\n {\n \"NAME\": \"Stephanie403\"\n },\n {\n \"NAME\": \"Stephanie466\"\n },\n {\n \"NAME\": \"Stephen177\"\n },\n {\n \"NAME\": \"Stephen240\"\n },\n {\n \"NAME\": \"Stephen427\"\n },\n {\n \"NAME\": \"Stephen490\"\n },\n {\n \"NAME\": \"Steven176\"\n },\n {\n \"NAME\": \"Steven239\"\n },\n {\n \"NAME\": \"Steven270\"\n },\n {\n \"NAME\": \"Steven301\"\n },\n {\n \"NAME\": \"Steven312\"\n },\n {\n \"NAME\": \"Steven333\"\n },\n {\n \"NAME\": \"Steven364\"\n },\n {\n \"NAME\": \"Steven375\"\n },\n {\n \"NAME\": \"Susan116\"\n },\n {\n \"NAME\": \"Susan140\"\n },\n {\n \"NAME\": \"Susan203\"\n },\n {\n \"NAME\": \"Susan53\"\n },\n {\n \"NAME\": \"Tamara146\"\n },\n {\n \"NAME\": \"Tamara209\"\n },\n {\n \"NAME\": \"Tammie125\"\n },\n {\n \"NAME\": \"Tammie62\"\n },\n {\n \"NAME\": \"Taylor287\"\n },\n {\n \"NAME\": \"Taylor350\"\n },\n {\n \"NAME\": \"Theresa182\"\n },\n {\n \"NAME\": \"Theresa245\"\n },\n {\n \"NAME\": \"Thomas105\"\n },\n {\n \"NAME\": \"Thomas149\"\n },\n {\n \"NAME\": \"Thomas166\"\n },\n {\n \"NAME\": \"Thomas212\"\n },\n {\n \"NAME\": \"Thomas229\"\n },\n {\n \"NAME\": \"Thomas42\"\n },\n {\n \"NAME\": \"Tiffany13\"\n },\n {\n \"NAME\": \"Tiffany76\"\n },\n {\n \"NAME\": \"Timothy294\"\n },\n {\n \"NAME\": \"Timothy299\"\n },\n {\n \"NAME\": \"Timothy357\"\n },\n {\n \"NAME\": \"Timothy362\"\n },\n {\n \"NAME\": \"Tina180\"\n },\n {\n \"NAME\": \"Tina243\"\n },\n {\n \"NAME\": \"Tina277\"\n },\n {\n \"NAME\": \"Tina310\"\n },\n {\n \"NAME\": \"Tina340\"\n },\n {\n \"NAME\": \"Tina373\"\n },\n {\n \"NAME\": \"Todd421\"\n },\n {\n \"NAME\": \"Todd484\"\n },\n {\n \"NAME\": \"Tonya102\"\n },\n {\n \"NAME\": \"Tonya39\"\n },\n {\n \"NAME\": \"Travis132\"\n },\n {\n \"NAME\": \"Travis195\"\n },\n {\n \"NAME\": \"Vanessa282\"\n },\n {\n \"NAME\": \"Vanessa345\"\n },\n {\n \"NAME\": \"Victor292\"\n },\n {\n \"NAME\": \"Victor355\"\n },\n {\n \"NAME\": \"Victoria424\"\n },\n {\n \"NAME\": \"Victoria487\"\n },\n {\n \"NAME\": \"Whitney118\"\n },\n {\n \"NAME\": \"Whitney2\"\n },\n {\n \"NAME\": \"Whitney55\"\n },\n {\n \"NAME\": \"Whitney65\"\n },\n {\n \"NAME\": \"Zachary131\"\n },\n {\n \"NAME\": \"Zachary152\"\n },\n {\n \"NAME\": \"Zachary194\"\n },\n {\n \"NAME\": \"Zachary215\"\n }\n]" + }, + { + "name": "Users By Filter - Distinct, no included fields", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?distinct=\"id\"", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"userGroups.id\": {\"in\": [44,23]}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", {\"investigationUsers\":[\"investigation\"]}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"investigationUsers\":{\"investigation\": \"datasets\"}}", + "disabled": true + }, + { + "key": "include", + "value": "[\"userGroups\", \"studies\", {\"investigationUsers\":{\"investigation\": \"datasets\"}}, \"instrumentScientists\"]", + "disabled": true + }, + { + "key": "include", + "value": "[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":[\"INVESTIGATION\"]}", + "disabled": true + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "distinct", + "value": "[\"name\", \"fullName\", \"orcidId\", \"modTime\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"userGroups.id\": {\"eq\": 50}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"" + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "5", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "15333" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Tue, 15 Sep 2020 10:33:56 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n },\n {\n \"id\": 5\n },\n {\n \"id\": 6\n },\n {\n \"id\": 7\n },\n {\n \"id\": 8\n },\n {\n \"id\": 9\n },\n {\n \"id\": 10\n },\n {\n \"id\": 11\n },\n {\n \"id\": 12\n },\n {\n \"id\": 13\n },\n {\n \"id\": 14\n },\n {\n \"id\": 15\n },\n {\n \"id\": 16\n },\n {\n \"id\": 17\n },\n {\n \"id\": 18\n },\n {\n \"id\": 19\n },\n {\n \"id\": 20\n },\n {\n \"id\": 21\n },\n {\n \"id\": 22\n },\n {\n \"id\": 23\n },\n {\n \"id\": 24\n },\n {\n \"id\": 25\n },\n {\n \"id\": 26\n },\n {\n \"id\": 27\n },\n {\n \"id\": 28\n },\n {\n \"id\": 29\n },\n {\n \"id\": 30\n },\n {\n \"id\": 31\n },\n {\n \"id\": 32\n },\n {\n \"id\": 33\n },\n {\n \"id\": 34\n },\n {\n \"id\": 35\n },\n {\n \"id\": 36\n },\n {\n \"id\": 37\n },\n {\n \"id\": 38\n },\n {\n \"id\": 39\n },\n {\n \"id\": 40\n },\n {\n \"id\": 41\n },\n {\n \"id\": 42\n },\n {\n \"id\": 43\n },\n {\n \"id\": 44\n },\n {\n \"id\": 45\n },\n {\n \"id\": 46\n },\n {\n \"id\": 47\n },\n {\n \"id\": 48\n },\n {\n \"id\": 49\n },\n {\n \"id\": 50\n },\n {\n \"id\": 51\n },\n {\n \"id\": 52\n },\n {\n \"id\": 53\n },\n {\n \"id\": 54\n },\n {\n \"id\": 55\n },\n {\n \"id\": 56\n },\n {\n \"id\": 57\n },\n {\n \"id\": 58\n },\n {\n \"id\": 59\n },\n {\n \"id\": 60\n },\n {\n \"id\": 61\n },\n {\n \"id\": 62\n },\n {\n \"id\": 63\n },\n {\n \"id\": 64\n },\n {\n \"id\": 65\n },\n {\n \"id\": 66\n },\n {\n \"id\": 67\n },\n {\n \"id\": 68\n },\n {\n \"id\": 69\n },\n {\n \"id\": 70\n },\n {\n \"id\": 71\n },\n {\n \"id\": 72\n },\n {\n \"id\": 73\n },\n {\n \"id\": 74\n },\n {\n \"id\": 75\n },\n {\n \"id\": 76\n },\n {\n \"id\": 77\n },\n {\n \"id\": 78\n },\n {\n \"id\": 79\n },\n {\n \"id\": 80\n },\n {\n \"id\": 81\n },\n {\n \"id\": 82\n },\n {\n \"id\": 83\n },\n {\n \"id\": 84\n },\n {\n \"id\": 85\n },\n {\n \"id\": 86\n },\n {\n \"id\": 87\n },\n {\n \"id\": 88\n },\n {\n \"id\": 89\n },\n {\n \"id\": 90\n },\n {\n \"id\": 91\n },\n {\n \"id\": 92\n },\n {\n \"id\": 93\n },\n {\n \"id\": 94\n },\n {\n \"id\": 95\n },\n {\n \"id\": 96\n },\n {\n \"id\": 97\n },\n {\n \"id\": 98\n },\n {\n \"id\": 99\n },\n {\n \"id\": 100\n },\n {\n \"id\": 101\n },\n {\n \"id\": 102\n },\n {\n \"id\": 103\n },\n {\n \"id\": 104\n },\n {\n \"id\": 105\n },\n {\n \"id\": 106\n },\n {\n \"id\": 107\n },\n {\n \"id\": 108\n },\n {\n \"id\": 109\n },\n {\n \"id\": 110\n },\n {\n \"id\": 111\n },\n {\n \"id\": 112\n },\n {\n \"id\": 113\n },\n {\n \"id\": 114\n },\n {\n \"id\": 115\n },\n {\n \"id\": 116\n },\n {\n \"id\": 117\n },\n {\n \"id\": 118\n },\n {\n \"id\": 119\n },\n {\n \"id\": 120\n },\n {\n \"id\": 121\n },\n {\n \"id\": 122\n },\n {\n \"id\": 123\n },\n {\n \"id\": 124\n },\n {\n \"id\": 125\n },\n {\n \"id\": 126\n },\n {\n \"id\": 127\n },\n {\n \"id\": 128\n },\n {\n \"id\": 129\n },\n {\n \"id\": 130\n },\n {\n \"id\": 131\n },\n {\n \"id\": 132\n },\n {\n \"id\": 133\n },\n {\n \"id\": 134\n },\n {\n \"id\": 135\n },\n {\n \"id\": 136\n },\n {\n \"id\": 137\n },\n {\n \"id\": 138\n },\n {\n \"id\": 139\n },\n {\n \"id\": 140\n },\n {\n \"id\": 141\n },\n {\n \"id\": 142\n },\n {\n \"id\": 143\n },\n {\n \"id\": 144\n },\n {\n \"id\": 145\n },\n {\n \"id\": 146\n },\n {\n \"id\": 147\n },\n {\n \"id\": 148\n },\n {\n \"id\": 149\n },\n {\n \"id\": 150\n },\n {\n \"id\": 151\n },\n {\n \"id\": 152\n },\n {\n \"id\": 153\n },\n {\n \"id\": 154\n },\n {\n \"id\": 155\n },\n {\n \"id\": 156\n },\n {\n \"id\": 157\n },\n {\n \"id\": 158\n },\n {\n \"id\": 159\n },\n {\n \"id\": 160\n },\n {\n \"id\": 161\n },\n {\n \"id\": 162\n },\n {\n \"id\": 163\n },\n {\n \"id\": 164\n },\n {\n \"id\": 165\n },\n {\n \"id\": 166\n },\n {\n \"id\": 167\n },\n {\n \"id\": 168\n },\n {\n \"id\": 169\n },\n {\n \"id\": 170\n },\n {\n \"id\": 171\n },\n {\n \"id\": 172\n },\n {\n \"id\": 173\n },\n {\n \"id\": 174\n },\n {\n \"id\": 175\n },\n {\n \"id\": 176\n },\n {\n \"id\": 177\n },\n {\n \"id\": 178\n },\n {\n \"id\": 179\n },\n {\n \"id\": 180\n },\n {\n \"id\": 181\n },\n {\n \"id\": 182\n },\n {\n \"id\": 183\n },\n {\n \"id\": 184\n },\n {\n \"id\": 185\n },\n {\n \"id\": 186\n },\n {\n \"id\": 187\n },\n {\n \"id\": 188\n },\n {\n \"id\": 189\n },\n {\n \"id\": 190\n },\n {\n \"id\": 191\n },\n {\n \"id\": 192\n },\n {\n \"id\": 193\n },\n {\n \"id\": 194\n },\n {\n \"id\": 195\n },\n {\n \"id\": 196\n },\n {\n \"id\": 197\n },\n {\n \"id\": 198\n },\n {\n \"id\": 199\n },\n {\n \"id\": 200\n },\n {\n \"id\": 201\n },\n {\n \"id\": 202\n },\n {\n \"id\": 203\n },\n {\n \"id\": 204\n },\n {\n \"id\": 205\n },\n {\n \"id\": 206\n },\n {\n \"id\": 207\n },\n {\n \"id\": 208\n },\n {\n \"id\": 209\n },\n {\n \"id\": 210\n },\n {\n \"id\": 211\n },\n {\n \"id\": 212\n },\n {\n \"id\": 213\n },\n {\n \"id\": 214\n },\n {\n \"id\": 215\n },\n {\n \"id\": 216\n },\n {\n \"id\": 217\n },\n {\n \"id\": 218\n },\n {\n \"id\": 219\n },\n {\n \"id\": 220\n },\n {\n \"id\": 221\n },\n {\n \"id\": 222\n },\n {\n \"id\": 223\n },\n {\n \"id\": 224\n },\n {\n \"id\": 225\n },\n {\n \"id\": 226\n },\n {\n \"id\": 227\n },\n {\n \"id\": 228\n },\n {\n \"id\": 229\n },\n {\n \"id\": 230\n },\n {\n \"id\": 231\n },\n {\n \"id\": 232\n },\n {\n \"id\": 233\n },\n {\n \"id\": 234\n },\n {\n \"id\": 235\n },\n {\n \"id\": 236\n },\n {\n \"id\": 237\n },\n {\n \"id\": 238\n },\n {\n \"id\": 239\n },\n {\n \"id\": 240\n },\n {\n \"id\": 241\n },\n {\n \"id\": 242\n },\n {\n \"id\": 243\n },\n {\n \"id\": 244\n },\n {\n \"id\": 245\n },\n {\n \"id\": 246\n },\n {\n \"id\": 247\n },\n {\n \"id\": 248\n },\n {\n \"id\": 249\n },\n {\n \"id\": 250\n },\n {\n \"id\": 251\n },\n {\n \"id\": 252\n },\n {\n \"id\": 253\n },\n {\n \"id\": 254\n },\n {\n \"id\": 255\n },\n {\n \"id\": 256\n },\n {\n \"id\": 257\n },\n {\n \"id\": 258\n },\n {\n \"id\": 259\n },\n {\n \"id\": 260\n },\n {\n \"id\": 261\n },\n {\n \"id\": 262\n },\n {\n \"id\": 263\n },\n {\n \"id\": 264\n },\n {\n \"id\": 265\n },\n {\n \"id\": 266\n },\n {\n \"id\": 267\n },\n {\n \"id\": 268\n },\n {\n \"id\": 269\n },\n {\n \"id\": 270\n },\n {\n \"id\": 271\n },\n {\n \"id\": 272\n },\n {\n \"id\": 273\n },\n {\n \"id\": 274\n },\n {\n \"id\": 275\n },\n {\n \"id\": 276\n },\n {\n \"id\": 277\n },\n {\n \"id\": 278\n },\n {\n \"id\": 279\n },\n {\n \"id\": 280\n },\n {\n \"id\": 281\n },\n {\n \"id\": 282\n },\n {\n \"id\": 283\n },\n {\n \"id\": 284\n },\n {\n \"id\": 285\n },\n {\n \"id\": 286\n },\n {\n \"id\": 287\n },\n {\n \"id\": 288\n },\n {\n \"id\": 289\n },\n {\n \"id\": 290\n },\n {\n \"id\": 291\n },\n {\n \"id\": 292\n },\n {\n \"id\": 293\n },\n {\n \"id\": 294\n },\n {\n \"id\": 295\n },\n {\n \"id\": 296\n },\n {\n \"id\": 297\n },\n {\n \"id\": 298\n },\n {\n \"id\": 299\n },\n {\n \"id\": 300\n },\n {\n \"id\": 301\n },\n {\n \"id\": 302\n },\n {\n \"id\": 303\n },\n {\n \"id\": 304\n },\n {\n \"id\": 305\n },\n {\n \"id\": 306\n },\n {\n \"id\": 307\n },\n {\n \"id\": 308\n },\n {\n \"id\": 309\n },\n {\n \"id\": 310\n },\n {\n \"id\": 311\n },\n {\n \"id\": 312\n },\n {\n \"id\": 313\n },\n {\n \"id\": 314\n },\n {\n \"id\": 315\n },\n {\n \"id\": 316\n },\n {\n \"id\": 317\n },\n {\n \"id\": 318\n },\n {\n \"id\": 319\n },\n {\n \"id\": 320\n },\n {\n \"id\": 321\n },\n {\n \"id\": 322\n },\n {\n \"id\": 323\n },\n {\n \"id\": 324\n },\n {\n \"id\": 325\n },\n {\n \"id\": 326\n },\n {\n \"id\": 327\n },\n {\n \"id\": 328\n },\n {\n \"id\": 329\n },\n {\n \"id\": 330\n },\n {\n \"id\": 331\n },\n {\n \"id\": 332\n },\n {\n \"id\": 333\n },\n {\n \"id\": 334\n },\n {\n \"id\": 335\n },\n {\n \"id\": 336\n },\n {\n \"id\": 337\n },\n {\n \"id\": 338\n },\n {\n \"id\": 339\n },\n {\n \"id\": 340\n },\n {\n \"id\": 341\n },\n {\n \"id\": 342\n },\n {\n \"id\": 343\n },\n {\n \"id\": 344\n },\n {\n \"id\": 345\n },\n {\n \"id\": 346\n },\n {\n \"id\": 347\n },\n {\n \"id\": 348\n },\n {\n \"id\": 349\n },\n {\n \"id\": 350\n },\n {\n \"id\": 351\n },\n {\n \"id\": 352\n },\n {\n \"id\": 353\n },\n {\n \"id\": 354\n },\n {\n \"id\": 355\n },\n {\n \"id\": 356\n },\n {\n \"id\": 357\n },\n {\n \"id\": 358\n },\n {\n \"id\": 359\n },\n {\n \"id\": 360\n },\n {\n \"id\": 361\n },\n {\n \"id\": 362\n },\n {\n \"id\": 363\n },\n {\n \"id\": 364\n },\n {\n \"id\": 365\n },\n {\n \"id\": 366\n },\n {\n \"id\": 367\n },\n {\n \"id\": 368\n },\n {\n \"id\": 369\n },\n {\n \"id\": 370\n },\n {\n \"id\": 371\n },\n {\n \"id\": 372\n },\n {\n \"id\": 373\n },\n {\n \"id\": 374\n },\n {\n \"id\": 375\n },\n {\n \"id\": 376\n },\n {\n \"id\": 377\n },\n {\n \"id\": 378\n },\n {\n \"id\": 379\n },\n {\n \"id\": 380\n },\n {\n \"id\": 381\n },\n {\n \"id\": 382\n },\n {\n \"id\": 383\n },\n {\n \"id\": 384\n },\n {\n \"id\": 385\n },\n {\n \"id\": 386\n },\n {\n \"id\": 387\n },\n {\n \"id\": 388\n },\n {\n \"id\": 389\n },\n {\n \"id\": 390\n },\n {\n \"id\": 391\n },\n {\n \"id\": 392\n },\n {\n \"id\": 393\n },\n {\n \"id\": 394\n },\n {\n \"id\": 395\n },\n {\n \"id\": 396\n },\n {\n \"id\": 397\n },\n {\n \"id\": 398\n },\n {\n \"id\": 399\n },\n {\n \"id\": 400\n },\n {\n \"id\": 401\n },\n {\n \"id\": 402\n },\n {\n \"id\": 403\n },\n {\n \"id\": 404\n },\n {\n \"id\": 405\n },\n {\n \"id\": 406\n },\n {\n \"id\": 407\n },\n {\n \"id\": 408\n },\n {\n \"id\": 409\n },\n {\n \"id\": 410\n },\n {\n \"id\": 411\n },\n {\n \"id\": 412\n },\n {\n \"id\": 413\n },\n {\n \"id\": 414\n },\n {\n \"id\": 415\n },\n {\n \"id\": 416\n },\n {\n \"id\": 417\n },\n {\n \"id\": 418\n },\n {\n \"id\": 419\n },\n {\n \"id\": 420\n },\n {\n \"id\": 421\n },\n {\n \"id\": 422\n },\n {\n \"id\": 423\n },\n {\n \"id\": 424\n },\n {\n \"id\": 425\n },\n {\n \"id\": 426\n },\n {\n \"id\": 427\n },\n {\n \"id\": 428\n },\n {\n \"id\": 429\n },\n {\n \"id\": 430\n },\n {\n \"id\": 431\n },\n {\n \"id\": 432\n },\n {\n \"id\": 433\n },\n {\n \"id\": 434\n },\n {\n \"id\": 435\n },\n {\n \"id\": 436\n },\n {\n \"id\": 437\n },\n {\n \"id\": 438\n },\n {\n \"id\": 439\n },\n {\n \"id\": 440\n },\n {\n \"id\": 441\n },\n {\n \"id\": 442\n },\n {\n \"id\": 443\n },\n {\n \"id\": 444\n },\n {\n \"id\": 445\n },\n {\n \"id\": 446\n },\n {\n \"id\": 447\n },\n {\n \"id\": 448\n },\n {\n \"id\": 449\n },\n {\n \"id\": 450\n },\n {\n \"id\": 451\n },\n {\n \"id\": 452\n },\n {\n \"id\": 453\n },\n {\n \"id\": 454\n },\n {\n \"id\": 455\n },\n {\n \"id\": 456\n },\n {\n \"id\": 457\n },\n {\n \"id\": 458\n },\n {\n \"id\": 459\n },\n {\n \"id\": 460\n },\n {\n \"id\": 461\n },\n {\n \"id\": 462\n },\n {\n \"id\": 463\n },\n {\n \"id\": 464\n },\n {\n \"id\": 465\n },\n {\n \"id\": 466\n },\n {\n \"id\": 467\n },\n {\n \"id\": 468\n },\n {\n \"id\": 469\n },\n {\n \"id\": 470\n },\n {\n \"id\": 471\n },\n {\n \"id\": 472\n },\n {\n \"id\": 473\n },\n {\n \"id\": 474\n },\n {\n \"id\": 475\n },\n {\n \"id\": 476\n },\n {\n \"id\": 477\n },\n {\n \"id\": 478\n },\n {\n \"id\": 479\n },\n {\n \"id\": 480\n },\n {\n \"id\": 481\n },\n {\n \"id\": 482\n },\n {\n \"id\": 483\n },\n {\n \"id\": 484\n },\n {\n \"id\": 485\n },\n {\n \"id\": 486\n },\n {\n \"id\": 487\n },\n {\n \"id\": 488\n },\n {\n \"id\": 489\n },\n {\n \"id\": 490\n },\n {\n \"id\": 491\n },\n {\n \"id\": 492\n },\n {\n \"id\": 493\n },\n {\n \"id\": 494\n },\n {\n \"id\": 495\n },\n {\n \"id\": 496\n },\n {\n \"id\": 498\n },\n {\n \"id\": 499\n }\n]" + }, + { + "name": "Users By Filter - DB Include Filter", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "http://{{datagateway-api}}/users?include=[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]&limit=2&skip=4", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users" + ], + "query": [ + { + "key": "where", + "value": "{\"ID\": {\"in\": [49,23]}}", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + }, + { + "key": "include", + "value": "[\"USERGROUP\", {\"INVESTIGATIONUSER\":{\"INVESTIGATION\":\"DATASET\"}}]" + }, + { + "key": "order", + "value": "\"id desc\"", + "disabled": true + }, + { + "key": "limit", + "value": "2" + }, + { + "key": "skip", + "value": "4" + }, + { + "key": "distinct", + "value": "[\"name\", \"fullName\", \"orcidId\", \"modTime\"]", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"eq\": 6}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"fullName\": {\"like\": \"Vanessa Lewis\"}}", + "disabled": true + }, + { + "key": "where", + "value": "{\"id\": {\"lt\": 10}}", + "disabled": true + }, + { + "key": "include", + "value": "{\"INVESTIGATIONUSER\":\"INVESTIGATION\"}", + "disabled": true + }, + { + "key": "order", + "value": "\"name asc\"", + "disabled": true + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Content-Length", + "value": "4521" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "Server", + "value": "Werkzeug/0.16.0 Python/3.6.8" + }, + { + "key": "Date", + "value": "Wed, 02 Sep 2020 14:35:19 GMT" + } + ], + "cookie": [], + "body": "[\n {\n \"ID\": 5,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2007-07-28 18:17:48\",\n \"EMAIL\": \"ljames@tapia.biz\",\n \"FULLNAME\": \"Rachel Herman\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2014-09-07 20:48:44\",\n \"NAME\": \"Loretta3\",\n \"ORCIDID\": \"5437\",\n \"USERGROUP\": [\n {\n \"ID\": 11,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2003-08-28 02:17:38\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2003-04-20 18:29:09\",\n \"GROUP_ID\": 7,\n \"USER_ID\": 5\n }\n ]\n },\n {\n \"ID\": 6,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2007-07-28 18:17:48\",\n \"EMAIL\": \"ljames@tapia.biz\",\n \"FULLNAME\": \"Rachel Herman\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2014-09-07 20:48:44\",\n \"NAME\": \"Loretta66\",\n \"ORCIDID\": \"15966\",\n \"USERGROUP\": [\n {\n \"ID\": 13,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2011-02-27 11:47:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2016-08-25 00:53:55\",\n \"GROUP_ID\": 4,\n \"USER_ID\": 6\n }\n ],\n \"INVESTIGATIONUSER\": [\n {\n \"ID\": 36,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2011-03-06 18:05:52\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2003-03-09 01:58:15\",\n \"ROLE\": \"CI\",\n \"INVESTIGATION_ID\": 33,\n \"USER_ID\": 6,\n \"INVESTIGATION\": {\n \"ID\": 33,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2016-12-12 08:53:47\",\n \"DOI\": \"1-148-83222-X\",\n \"ENDDATE\": \"2008-05-04 00:00:00\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2005-01-04 07:22:59\",\n \"NAME\": \"INVESTIGATION 32\",\n \"RELEASEDATE\": \"2008-01-26 00:00:00\",\n \"STARTDATE\": \"2008-02-02 00:00:00\",\n \"SUMMARY\": \"Contain sea lose. Threat available well fish expert. Involve begin father.\",\n \"TITLE\": \"Trouble it write available low market open them. Maintain letter adult study child individual example. Behind appear throughout mother statement campaign month.\",\n \"VISIT_ID\": \"29\",\n \"FACILITY_ID\": 1,\n \"TYPE_ID\": 1,\n \"DATASET\": [\n {\n \"ID\": 135,\n \"COMPLETE\": false,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2012-06-07 21:26:39\",\n \"DESCRIPTION\": \"Respond opportunity record seek home. Yard anything get next page tree hundred. Feeling enter many treat kind community manage.\",\n \"DOI\": \"1-342-36668-9\",\n \"END_DATE\": null,\n \"LOCATION\": \"/agent/near.wav\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2018-10-27 14:59:23\",\n \"NAME\": \"DATASET 153\",\n \"STARTDATE\": \"2038-01-15 00:00:00\",\n \"INVESTIGATION_ID\": 33,\n \"SAMPLE_ID\": 33,\n \"TYPE_ID\": 1\n },\n {\n \"ID\": 14,\n \"COMPLETE\": true,\n \"CREATE_ID\": \"user\",\n \"CREATE_TIME\": \"2019-05-06 07:27:24\",\n \"DESCRIPTION\": \"Eat young business more similar important write local. Keep man despite kitchen positive. Store material all effort drug decade.\",\n \"DOI\": \"1-925475-68-9\",\n \"END_DATE\": null,\n \"LOCATION\": \"/full/song.png\",\n \"MOD_ID\": \"user\",\n \"MOD_TIME\": \"2002-02-24 04:37:23\",\n \"NAME\": \"DATASET 33\",\n \"STARTDATE\": \"2008-02-15 00:00:00\",\n \"INVESTIGATION_ID\": 33,\n \"SAMPLE_ID\": 33,\n \"TYPE_ID\": 3\n }\n ]\n }\n }\n ]\n }\n]" + } + ] + }, + { + "name": "Users By ID", + "event": [ + { + "listen": "test", + "script": { + "id": "70a782ee-dcd2-4bed-8ff9-6fd0a263832d", + "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/10", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "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": "Count Users", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "dbec6c07-bb9e-4b7a-be3f-2373cdec108d", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "5ab71e36-3524-4300-8282-8c91823154ba", + "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}}/users/count", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "count" + ], + "query": [ + { + "key": "where", + "value": "{\"id\": {\"in\": [2]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"id\"", + "disabled": true + }, + { + "key": "include", + "value": "\"userGroups\"", + "disabled": true + }, + { + "key": "limit", + "value": "10", + "disabled": true + }, + { + "key": "skip", + "value": "4", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Find One Users", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "5074f3eb-f544-4ae7-b958-b48fab971cc8", + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "id": "bbf35b0d-8b09-4fd9-a266-305cb568d4a6", + "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}}/users/findone", + "protocol": "http", + "host": [ + "{{datagateway-api}}" + ], + "path": [ + "users", + "findone" + ], + "query": [ + { + "key": "where", + "value": "{\"ID\": {\"in\": [2, 3, 4]}}", + "disabled": true + }, + { + "key": "distinct", + "value": "\"ID\"", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "ICAT Entity Manager", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://icat-dev.isis.stfc.ac.uk:8181/icat/entityManager?sessionId=&query=select distinct investigation from Investigation investigation , investigation.facility as facility , facility.instruments as instrument , facility.facilityCycles as facilityCycle , investigation.investigationInstruments as investigationInstrumentPivot , investigationInstrumentPivot.instrument as investigationInstrument where facility.id = 1 and instrument.id = 23 and facilityCycle.id = 84762458 and investigationInstrument.id = instrument.id and investigation.startDate BETWEEN facilityCycle.startDate AND facilityCycle.endDate ORDER BY investigation.startDate desc, investigation.title asc , investigation.id asc limit 0, 50 include investigation.studyInvestigations.study, investigation.investigationInstruments.instrument", + "protocol": "https", + "host": [ + "icat-dev", + "isis", + "stfc", + "ac", + "uk" + ], + "port": "8181", + "path": [ + "icat", + "entityManager" + ], + "query": [ + { + "key": "sessionId", + "value": "" + }, + { + "key": "query", + "value": "select distinct facilityCycle from FacilityCycle facilityCycle , facilityCycle.facility as facility , facility.instruments as instrument , facility.investigations as investigation , investigation.investigationInstruments as investigationInstrumentPivot , investigationInstrumentPivot.instrument as investigationInstrument where facility.id = 1 and instrument.id = 4 and investigationInstrument.id = instrument.id and investigation.startDate BETWEEN facilityCycle.startDate AND facilityCycle.endDate ORDER BY facilityCycle.startDate desc, facilityCycle.name asc , facilityCycle.id asc limit 0, 50", + "disabled": true + }, + { + "key": "query", + "value": "SELECT DISTINCT(o) FROM FacilityCycle o JOIN o.facility AS f JOIN f.instruments AS s1 JOIN s1.investigationInstruments AS s2 JOIN s2.instrument AS s3 JOIN f.investigations AS s4 WHERE s1.id = '4' AND s3.id = '4' AND s4.startDate >= o.startDate AND s4.startDate <= o.endDate ORDER BY o.id ASC", + "disabled": true + }, + { + "key": "query", + "value": "SELECT o FROM Investigation o JOIN o.facility AS f JOIN f.facilityCycles AS s1 JOIN f.instruments AS s2 JOIN o.investigationInstruments AS ii JOIN ii.instrument AS s3 WHERE s1.endDate >= o.startDate AND s1.id = '22' AND s1.startDate <= o.startDate AND s2.id = '12' AND s3.id = '12' ", + "disabled": true + }, + { + "key": "query", + "value": "SELECT `FACILITYCYCLE`.`ID` AS `FACILITYCYCLE_ID`, `FACILITYCYCLE`.`CREATE_ID` AS `FACILITYCYCLE_CREATE_ID`, `FACILITYCYCLE`.`CREATE_TIME` AS `FACILITYCYCLE_CREATE_TIME`, `FACILITYCYCLE`.`DESCRIPTION` AS `FACILITYCYCLE_DESCRIPTION`, `FACILITYCYCLE`.`ENDDATE` AS `FACILITYCYCLE_ENDDATE`, `FACILITYCYCLE`.`MOD_ID` AS `FACILITYCYCLE_MOD_ID`, `FACILITYCYCLE`.`MOD_TIME` AS `FACILITYCYCLE_MOD_TIME`, `FACILITYCYCLE`.`NAME` AS `FACILITYCYCLE_NAME`, `FACILITYCYCLE`.`STARTDATE` AS `FACILITYCYCLE_STARTDATE`, `FACILITYCYCLE`.`FACILITY_ID` AS `FACILITYCYCLE_FACILITY_ID` FROM `FACILITYCYCLE` INNER JOIN `FACILITY` ON `FACILITYCYCLE`.`FACILITY_ID` = `FACILITY`.`ID` INNER JOIN `INSTRUMENT` ON `INSTRUMENT`.`FACILITY_ID` = `FACILITY`.`ID` INNER JOIN `INVESTIGATION` ON `INVESTIGATION`.`FACILITY_ID` = `FACILITY`.`ID` INNER JOIN `INVESTIGATIONINSTRUMENT` ON `INVESTIGATIONINSTRUMENT`.`INVESTIGATION_ID` = `INVESTIGATION`.`ID` INNER JOIN `INSTRUMENT` AS `INSTRUMENT_1` ON `INVESTIGATIONINSTRUMENT`.`INSTRUMENT_ID` = `INSTRUMENT_1`.`ID` WHERE `INSTRUMENT`.`ID` = %(ID_1)s AND `INSTRUMENT_1`.`ID` = `INSTRUMENT`.`ID` AND `INVESTIGATION`.`STARTDATE` >= `FACILITYCYCLE`.`STARTDATE` AND `INVESTIGATION`.`STARTDATE` <= `FACILITYCYCLE`.`ENDDATE`", + "disabled": true + }, + { + "key": "query", + "value": "select distinct facilityCycle from FacilityCycle facilityCycle , facilityCycle.facility as facility , facility.instruments as instrument , facility.investigations as investigation , investigation.investigationInstruments as investigationInstrumentPivot , investigationInstrumentPivot.instrument as investigationInstrument where facility.id = 1 and instrument.id = 23 and investigationInstrument.id = instrument.id and investigation.startDate BETWEEN facilityCycle.startDate AND facilityCycle.endDate ORDER BY facilityCycle.startDate desc, facilityCycle.name asc , facilityCycle.id asc limit 0, 50", + "disabled": true + }, + { + "key": "query", + "value": "select distinct investigation from Investigation investigation , investigation.facility as facility , facility.instruments as instrument , facility.facilityCycles as facilityCycle , investigation.investigationInstruments as investigationInstrumentPivot , investigationInstrumentPivot.instrument as investigationInstrument where facility.id = 1 and instrument.id = 23 and facilityCycle.id = 84762458 and investigationInstrument.id = instrument.id and investigation.startDate BETWEEN facilityCycle.startDate AND facilityCycle.endDate ORDER BY investigation.startDate desc, investigation.title asc , investigation.id asc limit 0, 50 include investigation.studyInvestigations.study, investigation.investigationInstruments.instrument" + } + ] + } + }, + "response": [] + }, + { + "name": "ICAT Session", + "request": { + "auth": { + "type": "noauth" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://localhost.localdomain:18181/icat/session/SESSION_ID_HERE", + "protocol": "https", + "host": [ + "localhost", + "localdomain" + ], + "port": "18181", + "path": [ + "icat", + "session", + "SESSION_ID_HERE" + ], + "query": [ + { + "key": "json", + "value": "{\"plugin\": \"db\", \"credentials\": [{\"username\":\"username\"}, {\"password\":\"password\"}]}", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "protocolProfileBehavior": {} + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{sessionID}}", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "id": "48f83c28-f764-42a1-b608-9094717473b4", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "ec1dad29-81ee-4f72-9508-a13f6ec37713", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "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": {} +} \ No newline at end of file