diff options
| author | cjd24 | 2018-04-19 20:48:19 +0100 |
|---|---|---|
| committer | cjd24 | 2018-04-19 20:48:19 +0100 |
| commit | 92e23d37f843e49eda01a4d0ea7ed8005efffdb2 (patch) | |
| tree | 7c08678dfce9bf82eaa4f71f5e23182f8515d386 /test/postman.json | |
| parent | Added a write of the base teir JSON object, made the images actually write to... (diff) | |
| parent | Merge branch 'trh/gets' into cjd24/conversion (diff) | |
| download | medicine-92e23d37f843e49eda01a4d0ea7ed8005efffdb2.tar.gz medicine-92e23d37f843e49eda01a4d0ea7ed8005efffdb2.zip | |
Merge branch ‘cjd24/conversion’ of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-4/project-code into cjd24/conversion
Diffstat (limited to 'test/postman.json')
| -rw-r--r-- | test/postman.json | 267 |
1 files changed, 267 insertions, 0 deletions
diff --git a/test/postman.json b/test/postman.json new file mode 100644 index 0000000..164bdc1 --- /dev/null +++ b/test/postman.json @@ -0,0 +1,267 @@ +{ + "info": { + "name": "JH", + "_postman_id": "323a3189-bd95-4f51-b985-d2ca626300ec", + "description": "", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "authorised", + "description": null, + "item": [ + { + "name": "/projects", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{access_token}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "", + "value": "", + "disabled": true + } + ], + "body": {}, + "url": { + "raw": "{{host}}/{{endpoint}}/projects", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "projects" + ] + }, + "description": "" + }, + "response": [] + }, + { + "name": "/log", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{access_token}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "", + "value": "", + "disabled": true + } + ], + "body": {}, + "url": { + "raw": "{{host}}/{{endpoint}}/log", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "log" + ] + }, + "description": "" + }, + "response": [] + }, + { + "name": "/_supported_protocols", + "request": { + "auth": { + "type": "noauth" + }, + "method": "GET", + "header": [ + { + "key": "", + "value": "", + "disabled": true + } + ], + "body": {}, + "url": { + "raw": "{{host}}/{{endpoint}}/_supported_protocols_", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "_supported_protocols_" + ] + }, + "description": "" + }, + "response": [] + }, + { + "name": "/project_roles", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{access_token}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "", + "value": "", + "disabled": true + } + ], + "body": {}, + "url": { + "raw": "{{host}}/{{endpoint}}/project_roles", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "project_roles" + ] + }, + "description": "" + }, + "response": [] + }, + { + "name": "/projects/", + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{access_token}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{}" + }, + "url": { + "raw": "{{host}}/{{endpoint}}/projects/{{dummy_project}}", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "projects", + "{{dummy_project}}" + ] + }, + "description": "" + }, + "response": [] + } + ] + }, + { + "name": "/oauth/token", + "event": [ + { + "listen": "prerequest", + "script": { + "id": "7cbb2980-4092-4675-af5e-cfcbd1c00b81", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "7ce27395-de92-457b-97cc-7728824c821d", + "type": "text/javascript", + "exec": [ + "let res = JSON.parse(responseBody);", + "postman.setEnvironmentVariable(\"access_token\", res.access_token);", + "postman.setEnvironmentVariable(\"refresh_token\", res.refresh_token);" + ] + } + } + ], + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/x-www-form-urlencoded" + } + ], + "body": { + "mode": "urlencoded", + "urlencoded": [ + { + "key": "grant_type", + "value": "password", + "description": "", + "type": "text" + }, + { + "key": "username", + "value": "{{dummy_admin_username}}", + "description": "", + "type": "text" + }, + { + "key": "password", + "value": "{{dummy_admin_pass}}", + "description": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{host}}/{{endpoint}}/oauth/token", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "oauth", + "token" + ] + }, + "description": "wefrwrbjk;" + }, + "response": [] + } + ] +}
\ No newline at end of file |
