From 3b4092ba59488e66054b222335b925518635435a Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 17:03:35 +0100 Subject: updated readme --- README.md | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index e3925ea..a3603e3 100644 --- a/README.md +++ b/README.md @@ -2,27 +2,17 @@ ## Instructions to install: -$ ./getmenode.sh -$ npm install all +$ ./getmeall.sh +$ yarn -## Instructions to install postgres locally (on lab machines): +## Instructions to run postgres: -$ ./getmepostgres.sh +$ ./runmepostgres.sh -## Instructions to execute: +## Instructions to run server: -$ ./runmenode.sh - -// alternative for home pc: -$ npm start +$ yarn start ## To test: -$ npm test --- these tests should always pass (when the server is up and running ofc) - -## Sources: -http://mherman.org/blog/2016/11/05/developing-a-restful-api-with-node-and-typescript/#.WlW1fhdpw8o -https://basarat.gitbooks.io/typescript/docs/quick/nodejs.html -https://github.com/RobinBuschmann/sequelize-typescript -https://sequelize.readthedocs.io/en/v3/ +$ yarn test -- cgit v1.2.1 From dbdb622b1a40b04d03a176c5b7f6cfe0d6c83f23 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 20:24:50 +0100 Subject: added code section --- report/deliverable-3/main.out | 63 +++--- report/deliverable-3/main.synctex.gz | Bin 0 -> 105666 bytes report/deliverable-3/main.tex | 1 + report/deliverable-3/main.toc | 63 +++--- report/deliverable-3/texts/code.tex | 6 + test/postman.json | 365 ++++++++++++++++++++++++----------- 6 files changed, 322 insertions(+), 176 deletions(-) create mode 100644 report/deliverable-3/main.synctex.gz create mode 100644 report/deliverable-3/texts/code.tex diff --git a/report/deliverable-3/main.out b/report/deliverable-3/main.out index 5d8e1e5..738ad91 100644 --- a/report/deliverable-3/main.out +++ b/report/deliverable-3/main.out @@ -4,33 +4,36 @@ \BOOKMARK [1][-]{section.3}{Continued use of Scrum}{}% 4 \BOOKMARK [2][-]{subsection.3.1}{Sprints}{section.3}% 5 \BOOKMARK [2][-]{subsection.3.2}{Scrum board}{section.3}% 6 -\BOOKMARK [1][-]{section.4}{File Conversion}{}% 7 -\BOOKMARK [2][-]{subsection.4.1}{Dealing with Images}{section.4}% 8 -\BOOKMARK [3][-]{subsubsection.4.1.1}{Extraction of Zeiss Within `C'}{subsection.4.1}% 9 -\BOOKMARK [3][-]{subsubsection.4.1.2}{Converting Extracted Files}{subsection.4.1}% 10 -\BOOKMARK [3][-]{subsubsection.4.1.3}{Stitching Base Tiles}{subsection.4.1}% 11 -\BOOKMARK [3][-]{subsubsection.4.1.4}{Building Up Hierarchy of Zoom Levels}{subsection.4.1}% 12 -\BOOKMARK [2][-]{subsection.4.2}{Leica \046 Other Formats}{section.4}% 13 -\BOOKMARK [2][-]{subsection.4.3}{Non image formats \(.csv etc.\)}{section.4}% 14 -\BOOKMARK [1][-]{section.5}{File Management}{}% 15 -\BOOKMARK [2][-]{subsection.5.1}{Directory Structure}{section.5}% 16 -\BOOKMARK [2][-]{subsection.5.2}{File Upload and Download}{section.5}% 17 -\BOOKMARK [1][-]{section.6}{Testing}{}% 18 -\BOOKMARK [2][-]{subsection.6.1}{Using Mocha and Postman}{section.6}% 19 -\BOOKMARK [2][-]{subsection.6.2}{Integration Testing}{section.6}% 20 -\BOOKMARK [3][-]{subsubsection.6.2.1}{CORS}{subsection.6.2}% 21 -\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 22 -\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 23 -\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 24 -\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 25 -\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 26 -\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 27 -\BOOKMARK [1][-]{section.8}{Conclusion}{}% 28 -\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 29 -\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 30 -\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 31 -\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 32 -\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 33 -\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 34 -\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 35 -\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 36 +\BOOKMARK [1][-]{section.4}{Code Quality}{}% 7 +\BOOKMARK [2][-]{subsection.4.1}{Linter}{section.4}% 8 +\BOOKMARK [2][-]{subsection.4.2}{Scripts}{section.4}% 9 +\BOOKMARK [1][-]{section.5}{File Conversion}{}% 10 +\BOOKMARK [2][-]{subsection.5.1}{Dealing with Images}{section.5}% 11 +\BOOKMARK [3][-]{subsubsection.5.1.1}{Extraction of Zeiss Within `C'}{subsection.5.1}% 12 +\BOOKMARK [3][-]{subsubsection.5.1.2}{Converting Extracted Files}{subsection.5.1}% 13 +\BOOKMARK [3][-]{subsubsection.5.1.3}{Stitching Base Tiles}{subsection.5.1}% 14 +\BOOKMARK [3][-]{subsubsection.5.1.4}{Building Up Hierarchy of Zoom Levels}{subsection.5.1}% 15 +\BOOKMARK [2][-]{subsection.5.2}{Leica \046 Other Formats}{section.5}% 16 +\BOOKMARK [2][-]{subsection.5.3}{Non image formats \(.csv etc.\)}{section.5}% 17 +\BOOKMARK [1][-]{section.6}{File Management}{}% 18 +\BOOKMARK [2][-]{subsection.6.1}{Directory Structure}{section.6}% 19 +\BOOKMARK [2][-]{subsection.6.2}{File Upload and Download}{section.6}% 20 +\BOOKMARK [1][-]{section.7}{Testing}{}% 21 +\BOOKMARK [2][-]{subsection.7.1}{Using Mocha and Postman}{section.7}% 22 +\BOOKMARK [2][-]{subsection.7.2}{Integration Testing}{section.7}% 23 +\BOOKMARK [3][-]{subsubsection.7.2.1}{CORS}{subsection.7.2}% 24 +\BOOKMARK [1][-]{section.8}{Process Management and Deployment}{}% 25 +\BOOKMARK [2][-]{subsection.8.1}{Process Manager Selection}{section.8}% 26 +\BOOKMARK [2][-]{subsection.8.2}{pm2 and KeyMetrics}{section.8}% 27 +\BOOKMARK [2][-]{subsection.8.3}{Process Limitations}{section.8}% 28 +\BOOKMARK [2][-]{subsection.8.4}{Heroku Hosting}{section.8}% 29 +\BOOKMARK [2][-]{subsection.8.5}{External System Hosting}{section.8}% 30 +\BOOKMARK [1][-]{section.9}{Conclusion}{}% 31 +\BOOKMARK [2][-]{subsection.9.1}{Future Development}{section.9}% 32 +\BOOKMARK [1][-]{section.10}{Individual Contributions}{}% 33 +\BOOKMARK [2][-]{subsection.10.1}{Tom Harley}{section.10}% 34 +\BOOKMARK [2][-]{subsection.10.2}{Josh Lee}{section.10}% 35 +\BOOKMARK [2][-]{subsection.10.3}{Calum Duff}{section.10}% 36 +\BOOKMARK [2][-]{subsection.10.4}{Johannes Weck}{section.10}% 37 +\BOOKMARK [2][-]{subsection.10.5}{Hafeez Abdul-Rehaman}{section.10}% 38 +\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 39 diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz new file mode 100644 index 0000000..a89fc1a Binary files /dev/null and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex index 3d02f11..ee3a4b0 100644 --- a/report/deliverable-3/main.tex +++ b/report/deliverable-3/main.tex @@ -36,6 +36,7 @@ \input{texts/aims} \input{texts/work} \input{texts/scrum} + \input{texts/code} \input{texts/conversion} \input{texts/files} \input{texts/testing} diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index f1598f7..67e0933 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -4,33 +4,36 @@ \contentsline {section}{\numberline {3}Continued use of Scrum}{3}{section.3} \contentsline {subsection}{\numberline {3.1}Sprints}{4}{subsection.3.1} \contentsline {subsection}{\numberline {3.2}Scrum board}{4}{subsection.3.2} -\contentsline {section}{\numberline {4}File Conversion}{4}{section.4} -\contentsline {subsection}{\numberline {4.1}Dealing with Images}{4}{subsection.4.1} -\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{5}{subsubsection.4.1.1} -\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{5}{subsubsection.4.1.2} -\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{6}{subsubsection.4.1.3} -\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{6}{subsubsection.4.1.4} -\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{6}{subsection.4.2} -\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{7}{subsection.4.3} -\contentsline {section}{\numberline {5}File Management}{7}{section.5} -\contentsline {subsection}{\numberline {5.1}Directory Structure}{7}{subsection.5.1} -\contentsline {subsection}{\numberline {5.2}File Upload and Download}{7}{subsection.5.2} -\contentsline {section}{\numberline {6}Testing}{7}{section.6} -\contentsline {subsection}{\numberline {6.1}Using Mocha and Postman}{8}{subsection.6.1} -\contentsline {subsection}{\numberline {6.2}Integration Testing}{8}{subsection.6.2} -\contentsline {subsubsection}{\numberline {6.2.1}CORS}{8}{subsubsection.6.2.1} -\contentsline {section}{\numberline {7}Process Management and Deployment}{8}{section.7} -\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{8}{subsection.7.1} -\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{9}{subsection.7.2} -\contentsline {subsection}{\numberline {7.3}Process Limitations}{9}{subsection.7.3} -\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{9}{subsection.7.4} -\contentsline {subsection}{\numberline {7.5}External System Hosting}{9}{subsection.7.5} -\contentsline {section}{\numberline {8}Conclusion}{10}{section.8} -\contentsline {subsection}{\numberline {8.1}Future Development}{10}{subsection.8.1} -\contentsline {section}{\numberline {9}Individual Contributions}{10}{section.9} -\contentsline {subsection}{\numberline {9.1}Tom Harley}{10}{subsection.9.1} -\contentsline {subsection}{\numberline {9.2}Josh Lee}{10}{subsection.9.2} -\contentsline {subsection}{\numberline {9.3}Calum Duff}{10}{subsection.9.3} -\contentsline {subsection}{\numberline {9.4}Johannes Weck}{10}{subsection.9.4} -\contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{10}{subsection.9.5} -\contentsline {section}{\numberline {A}Scrum Board Images}{11}{appendix.A} +\contentsline {section}{\numberline {4}Code Quality}{4}{section.4} +\contentsline {subsection}{\numberline {4.1}Linter}{4}{subsection.4.1} +\contentsline {subsection}{\numberline {4.2}Scripts}{4}{subsection.4.2} +\contentsline {section}{\numberline {5}File Conversion}{4}{section.5} +\contentsline {subsection}{\numberline {5.1}Dealing with Images}{5}{subsection.5.1} +\contentsline {subsubsection}{\numberline {5.1.1}Extraction of Zeiss Within `C'}{5}{subsubsection.5.1.1} +\contentsline {subsubsection}{\numberline {5.1.2}Converting Extracted Files}{5}{subsubsection.5.1.2} +\contentsline {subsubsection}{\numberline {5.1.3}Stitching Base Tiles}{6}{subsubsection.5.1.3} +\contentsline {subsubsection}{\numberline {5.1.4}Building Up Hierarchy of Zoom Levels}{6}{subsubsection.5.1.4} +\contentsline {subsection}{\numberline {5.2}Leica \& Other Formats}{7}{subsection.5.2} +\contentsline {subsection}{\numberline {5.3}Non image formats (\texttt {.csv} etc.)}{7}{subsection.5.3} +\contentsline {section}{\numberline {6}File Management}{7}{section.6} +\contentsline {subsection}{\numberline {6.1}Directory Structure}{7}{subsection.6.1} +\contentsline {subsection}{\numberline {6.2}File Upload and Download}{7}{subsection.6.2} +\contentsline {section}{\numberline {7}Testing}{8}{section.7} +\contentsline {subsection}{\numberline {7.1}Using Mocha and Postman}{8}{subsection.7.1} +\contentsline {subsection}{\numberline {7.2}Integration Testing}{8}{subsection.7.2} +\contentsline {subsubsection}{\numberline {7.2.1}CORS}{8}{subsubsection.7.2.1} +\contentsline {section}{\numberline {8}Process Management and Deployment}{8}{section.8} +\contentsline {subsection}{\numberline {8.1}Process Manager Selection}{9}{subsection.8.1} +\contentsline {subsection}{\numberline {8.2}pm2 and KeyMetrics}{9}{subsection.8.2} +\contentsline {subsection}{\numberline {8.3}Process Limitations}{9}{subsection.8.3} +\contentsline {subsection}{\numberline {8.4}Heroku Hosting}{9}{subsection.8.4} +\contentsline {subsection}{\numberline {8.5}External System Hosting}{9}{subsection.8.5} +\contentsline {section}{\numberline {9}Conclusion}{10}{section.9} +\contentsline {subsection}{\numberline {9.1}Future Development}{10}{subsection.9.1} +\contentsline {section}{\numberline {10}Individual Contributions}{10}{section.10} +\contentsline {subsection}{\numberline {10.1}Tom Harley}{10}{subsection.10.1} +\contentsline {subsection}{\numberline {10.2}Josh Lee}{10}{subsection.10.2} +\contentsline {subsection}{\numberline {10.3}Calum Duff}{10}{subsection.10.3} +\contentsline {subsection}{\numberline {10.4}Johannes Weck}{10}{subsection.10.4} +\contentsline {subsection}{\numberline {10.5}Hafeez Abdul-Rehaman}{10}{subsection.10.5} +\contentsline {section}{\numberline {A}Scrum Board Images}{12}{appendix.A} diff --git a/report/deliverable-3/texts/code.tex b/report/deliverable-3/texts/code.tex new file mode 100644 index 0000000..6fe316b --- /dev/null +++ b/report/deliverable-3/texts/code.tex @@ -0,0 +1,6 @@ +\section{Code Quality} +\subsection{Linter} +To ensure code clarity and quality, we decided to use the linter `ts-lint'. This did not only help us create professional-style code but also aided in avoiding bugs early by catching out common errors. The linter was integrated with our editors as well as yarn as to automate its work-flow. + +\subsection{Scripts} +Several scripts were created to automate the installation and execution process. \ No newline at end of file diff --git a/test/postman.json b/test/postman.json index 164bdc1..6d8541b 100644 --- a/test/postman.json +++ b/test/postman.json @@ -1,64 +1,193 @@ { + "variables": [], "info": { "name": "JH", - "_postman_id": "323a3189-bd95-4f51-b985-d2ca626300ec", + "_postman_id": "d9fad1ce-92af-fc2c-ff74-074fc681c7ee", "description": "", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" }, "item": [ { "name": "authorised", - "description": null, + "description": "", "item": [ { - "name": "/projects", + "name": "/projects/", "request": { - "auth": { - "type": "bearer", - "bearer": [ + "url": { + "raw": "{{host}}/{{endpoint}}/projects/other?action=create", + "host": [ + "{{host}}" + ], + "path": [ + "{{endpoint}}", + "projects", + "other" + ], + "query": [ { - "key": "token", - "value": "{{access_token}}", - "type": "string" + "key": "action", + "value": "create", + "equals": true, + "description": "" } - ] + ], + "variable": [] }, - "method": "GET", + "method": "POST", "header": [ { - "key": "", - "value": "", + "key": "Content-Type", + "value": "application/json", + "description": "" + }, + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{}" + }, + "description": "" + }, + "response": [] + }, + { + "name": "/projects/abc/files", + "request": { + "url": "{{host}}/{{endpoint}}/projects/{{dummy_project}}/files/file", + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "", "disabled": true } ], - "body": {}, + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "userfile", + "description": "", + "type": "file", + "src": "checker_black.jpg" + } + ] + }, + "description": "" + }, + "response": [] + }, + { + "name": "/projects/abc/files copy", + "request": { "url": { - "raw": "{{host}}/{{endpoint}}/projects", + "raw": "{{host}}/{{endpoint}}/projects/{{dummy_project}}/files/file?action=move", "host": [ "{{host}}" ], "path": [ "{{endpoint}}", - "projects" - ] + "projects", + "{{dummy_project}}", + "files", + "file" + ], + "query": [ + { + "key": "action", + "value": "move", + "equals": true, + "description": "" + } + ], + "variable": [] + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"path\": \"newFile\"\n}" }, "description": "" }, "response": [] }, { - "name": "/log", + "name": "/projects/abc/files", "request": { - "auth": { - "type": "bearer", - "bearer": [ + "url": "{{host}}/{{endpoint}}/projects/{{dummy_project}}/files/", + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + }, + { + "key": "Content-Type", + "value": "image/png", + "description": "", + "disabled": true + } + ], + "body": { + "mode": "formdata", + "formdata": [ { - "key": "token", - "value": "{{access_token}}", - "type": "string" + "key": "pres", + "value": "", + "description": "", + "type": "file" } ] }, + "description": "" + }, + "response": [] + }, + { + "name": "/projects", + "request": { + "url": "{{host}}/{{endpoint}}/projects", + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + } + ], + "body": {}, + "description": "" + }, + "response": [] + }, + { + "name": "/log", + "request": { + "url": "{{host}}/{{endpoint}}/log", "method": "GET", "header": [ { @@ -67,16 +196,9 @@ "disabled": true } ], - "body": {}, - "url": { - "raw": "{{host}}/{{endpoint}}/log", - "host": [ - "{{host}}" - ], - "path": [ - "{{endpoint}}", - "log" - ] + "body": { + "mode": "raw", + "raw": "" }, "description": "" }, @@ -85,28 +207,17 @@ { "name": "/_supported_protocols", "request": { - "auth": { - "type": "noauth" - }, + "url": "{{host}}/{{endpoint}}/_supported_protocols_", "method": "GET", "header": [ { - "key": "", - "value": "", + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "", "disabled": true } ], "body": {}, - "url": { - "raw": "{{host}}/{{endpoint}}/_supported_protocols_", - "host": [ - "{{host}}" - ], - "path": [ - "{{endpoint}}", - "_supported_protocols_" - ] - }, "description": "" }, "response": [] @@ -114,74 +225,120 @@ { "name": "/project_roles", "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{access_token}}", - "type": "string" - } - ] - }, + "url": "{{host}}/{{endpoint}}/project_roles", "method": "GET", "header": [ { - "key": "", - "value": "", + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "", "disabled": true } ], "body": {}, - "url": { - "raw": "{{host}}/{{endpoint}}/project_roles", - "host": [ - "{{host}}" - ], - "path": [ - "{{endpoint}}", - "project_roles" - ] - }, "description": "" }, "response": [] }, { - "name": "/projects/", + "name": "/project_roles copy", + "request": { + "url": "{{host}}/{{endpoint}}/current_user", + "method": "GET", + "header": [ + { + "key": "authorization", + "value": "bearer {{access_token}}", + "description": "" + } + ], + "body": {}, + "description": "" + }, + "response": [] + }, + { + "name": "/projects/abc/files_by_id", "request": { - "auth": { - "type": "bearer", - "bearer": [ + "url": "{{host}}/{{endpoint}}/projects/{{dummy_project}}/files_by_id/d124ef49-e9e3-4794-bf50-76f40797b5d5", + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + }, + { + "key": "Content-Type", + "value": "image/png", + "description": "", + "disabled": true + } + ], + "body": { + "mode": "formdata", + "formdata": [ { - "key": "token", - "value": "{{access_token}}", - "type": "string" + "key": "pres", + "value": "", + "description": "", + "type": "file" } ] }, + "description": "" + }, + "response": [] + }, + { + "name": "/", + "request": { + "url": "{{host}}/", + "method": "GET", + "header": [], + "body": {}, + "description": "" + }, + "response": [] + }, + { + "name": "/properties", + "request": { + "url": "{{host}}/{{endpoint}}/properties", + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" + } + ], + "body": {}, + "description": "" + }, + "response": [] + }, + { + "name": "/projects/ copy", + "request": { + "url": "{{host}}/{{endpoint}}/projects/{{dummy_project}}", "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json" + "value": "application/json", + "description": "" + }, + { + "key": "Authorization", + "value": "Bearer {{access_token}}", + "description": "" } ], "body": { "mode": "raw", "raw": "{}" }, - "url": { - "raw": "{{host}}/{{endpoint}}/projects/{{dummy_project}}", - "host": [ - "{{host}}" - ], - "path": [ - "{{endpoint}}", - "projects", - "{{dummy_project}}" - ] - }, "description": "" }, "response": [] @@ -191,20 +348,9 @@ { "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);", @@ -215,9 +361,7 @@ } ], "request": { - "auth": { - "type": "noauth" - }, + "url": "{{host}}/{{endpoint}}/oauth/token", "method": "POST", "header": [ { @@ -248,17 +392,6 @@ } ] }, - "url": { - "raw": "{{host}}/{{endpoint}}/oauth/token", - "host": [ - "{{host}}" - ], - "path": [ - "{{endpoint}}", - "oauth", - "token" - ] - }, "description": "wefrwrbjk;" }, "response": [] -- cgit v1.2.1