From f473d11fd5485211855c274d5edc2403f5476037 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 5 Nov 2020 20:18:14 -0500 Subject: [PATCH] Cleanup solution items - Add all missing items - Rename a DMAPI file - Add a missing DMAPI README.md - Removes TGS.postman_collection.json - Delete rogue dev config file - Fix bug with initial setup in Docker - Minor README.md update --- README.md | 4 +- build/Version.props | 4 +- build/tgs.docker.sh | 6 +- src/DMAPI/tgs.dm | 2 +- src/DMAPI/tgs/includes.dm | 2 +- src/DMAPI/tgs/v5/README.md | 8 + src/DMAPI/tgs/v5/{undef.dm => undefs.dm} | 0 .../apspsettings.Development.json | 34 - tgstation-server.sln | 31 +- tools/TGS.postman_collection.json | 3262 ----------------- 10 files changed, 43 insertions(+), 3310 deletions(-) create mode 100644 src/DMAPI/tgs/v5/README.md rename src/DMAPI/tgs/v5/{undef.dm => undefs.dm} (100%) delete mode 100644 src/Tgstation.Server.Host/apspsettings.Development.json delete mode 100644 tools/TGS.postman_collection.json diff --git a/README.md b/README.md index a79e7e8f93..d77e02c804 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ docker run \ ``` with any additional options you desire (i.e. You'll have to expose more game ports in order to host more than one instance). -When launching the container for the first time, you'll be prompted with the setup wizard. +When launching the container for the first time, you'll be prompted with the setup wizard and then the container will exit. Start the container again to launch the server. Important note about port exposure: The internal port used by DreamDaemon _**MUST**_ match the port you want users to connect on. If it doesn't, you'll still be able to have them connect HOWEVER links from the BYOND hub will point at what DreamDaemon thinks the port is (the internal port). @@ -76,6 +76,8 @@ The configuration option `General:ValidInstancePaths` will be preconfigured to p Note that this container is meant to be long running. Updates are handled internally as opposed to at the container level. +Note that automatic configuration reloading is currently not supported in the container. See #1143 + If using manual configuration, before starting your container make sure the aforementioned `appsettings.Production.json` is setup properly. See below ### Configuring diff --git a/build/Version.props b/build/Version.props index 7910b7779c..4bd2cfe7a5 100644 --- a/build/Version.props +++ b/build/Version.props @@ -6,9 +6,9 @@ 2.1.1 7.4.0 8.4.0 - 5.2.7 + 5.2.8 0.4.0 1.1.0 - 1.1.0 + 1.1.1 diff --git a/build/tgs.docker.sh b/build/tgs.docker.sh index 4445b92a53..1ca8007756 100755 --- a/build/tgs.docker.sh +++ b/build/tgs.docker.sh @@ -1,6 +1,6 @@ #!/bin/sh -SCRIPT_VERSION="1.1.0" +SCRIPT_VERSION="1.1.1" echo "tgstation-server 4 container startup script v$SCRIPT_VERSION" echo "PWD: $PWD" @@ -9,7 +9,9 @@ PROD_CONFIG=/config_data/appsettings.Production.json HOST_CONFIG=/app/appsettings.Production.json if [ ! -f $PROD_CONFIG ]; then - echo "$PROD_CONFIG not detected! Creating empty..." + echo "$PROD_CONFIG not detected! Creating empty and running setup wizard..." + # Important, config reloading doesn't work with symlinks + export General__SetupWizardMode=Only echo "{}" > $PROD_CONFIG fi diff --git a/src/DMAPI/tgs.dm b/src/DMAPI/tgs.dm index a0a5df4290..e70955845c 100644 --- a/src/DMAPI/tgs.dm +++ b/src/DMAPI/tgs.dm @@ -1,6 +1,6 @@ // tgstation-server DMAPI -#define TGS_DMAPI_VERSION "5.2.7" +#define TGS_DMAPI_VERSION "5.2.8" // All functions and datums outside this document are subject to change with any version and should not be relied on. diff --git a/src/DMAPI/tgs/includes.dm b/src/DMAPI/tgs/includes.dm index c803cf7ac2..4018074f4e 100644 --- a/src/DMAPI/tgs/includes.dm +++ b/src/DMAPI/tgs/includes.dm @@ -14,4 +14,4 @@ #include "v5\_defines.dm" #include "v5\api.dm" #include "v5\commands.dm" -#include "v5\undef.dm" +#include "v5\undefs.dm" diff --git a/src/DMAPI/tgs/v5/README.md b/src/DMAPI/tgs/v5/README.md new file mode 100644 index 0000000000..5f8d711fcd --- /dev/null +++ b/src/DMAPI/tgs/v5/README.md @@ -0,0 +1,8 @@ +# DMAPI V4 + +This DMAPI implements bridge requests using HTTP GET requests to TGS. It has no security restrictions. + +- [_defines.dm](./_defines.dm) contains constant definitions. +- [api.dm](./api.dm) contains the bulk of the API code. +- [commands.dm](./commands.dm) contains functions relating to `/datum/tgs_chat_command`s. +- [undefs.dm](./undefs.dm) Undoes the work of `_defines.dm`. diff --git a/src/DMAPI/tgs/v5/undef.dm b/src/DMAPI/tgs/v5/undefs.dm similarity index 100% rename from src/DMAPI/tgs/v5/undef.dm rename to src/DMAPI/tgs/v5/undefs.dm diff --git a/src/Tgstation.Server.Host/apspsettings.Development.json b/src/Tgstation.Server.Host/apspsettings.Development.json deleted file mode 100644 index 0f44fffaec..0000000000 --- a/src/Tgstation.Server.Host/apspsettings.Development.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "Database": { - "DatabaseType": "SqlServer", - "ResetAdminPassword": false, - "ConnectionString": "Data Source=(local);Initial Catalog=TGS_Debug2341;Integrated Security=True;Application Name=tgstation-server", - "DropDatabase": false, - "DesignTime": false, - "ServerVersion": null - }, - "General": { - "ConfigVersion": "2.0.0", - "ApiPort": 5000, - "GitHubAccessToken": null, - "SetupWizardMode": "Never", - "ByondTopicTimeout": 5000, - "RestartTimeout": 60000, - "UseBasicWatchdog": false, - "MinimumPasswordLength": 15, - "InstanceLimit": 10, - "UserLimit": 100, - "ValidInstancePaths": null - }, - "FileLogging": { - "Directory": null, - "Disable": false, - "LogLevel": "Trace", - "MicrosoftLogLevel": "Warning" - }, - "ControlPanel": { - "Enable": true, - "AllowAnyOrigin": true, - "AllowedOrigins": null - } -} diff --git a/tgstation-server.sln b/tgstation-server.sln index a42b049c29..3e9de5d931 100644 --- a/tgstation-server.sln +++ b/tgstation-server.sln @@ -9,11 +9,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution .dockerignore = .dockerignore .editorconfig = .editorconfig .gitignore = .gitignore - .travis.yml = .travis.yml - appveyor.yml = appveyor.yml LICENSE = LICENSE omnisharp.json = omnisharp.json README.md = README.md + SECURITY.md = SECURITY.md EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tgstation.Server.Host", "src\Tgstation.Server.Host\Tgstation.Server.Host.csproj", "{2B69AD6D-2B5A-4023-8EAD-0BD1B18E028A}" @@ -26,6 +25,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{6FF654E6 ProjectSection(SolutionItems) = preProject build\analyzers.ruleset = build\analyzers.ruleset build\BuildDox.ps1 = build\BuildDox.ps1 + build\coverlet.runsettings = build\coverlet.runsettings build\Dockerfile = build\Dockerfile build\GenerateMigrations.sh = build\GenerateMigrations.sh build\OpenApiValidationSettings.json = build\OpenApiValidationSettings.json @@ -33,7 +33,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{6FF654E6 build\tgs.docker.sh = build\tgs.docker.sh build\tgs.ico = build\tgs.ico build\tgs.png = build\tgs.png - build\UploadCoverage.ps1 = build\UploadCoverage.ps1 build\Version.props = build\Version.props EndProjectSection EndProject @@ -63,6 +62,8 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tgs", "tgs", "{F7765A4B-021C-454E-ABB1-2AB1B85F91B4}" ProjectSection(SolutionItems) = preProject src\DMAPI\tgs\includes.dm = src\DMAPI\tgs\includes.dm + src\DMAPI\tgs\LICENSE = src\DMAPI\tgs\LICENSE + src\DMAPI\tgs\README.md = src\DMAPI\tgs\README.md EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "core", "core", "{DCCBA9DA-47BA-4C70-823B-E99A3ACA0377}" @@ -70,6 +71,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "core", "core", "{DCCBA9DA-4 src\DMAPI\tgs\core\_definitions.dm = src\DMAPI\tgs\core\_definitions.dm src\DMAPI\tgs\core\core.dm = src\DMAPI\tgs\core\core.dm src\DMAPI\tgs\core\datum.dm = src\DMAPI\tgs\core\datum.dm + src\DMAPI\tgs\core\README.md = src\DMAPI\tgs\core\README.md src\DMAPI\tgs\core\tgs_version.dm = src\DMAPI\tgs\core\tgs_version.dm EndProjectSection EndProject @@ -77,6 +79,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v3210", "v3210", "{1B228ACB ProjectSection(SolutionItems) = preProject src\DMAPI\tgs\v3210\api.dm = src\DMAPI\tgs\v3210\api.dm src\DMAPI\tgs\v3210\commands.dm = src\DMAPI\tgs\v3210\commands.dm + src\DMAPI\tgs\v3210\README.md = src\DMAPI\tgs\v3210\README.md EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3BB10856-AA01-43D1-AAB0-A013085426D6}" @@ -90,12 +93,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v4", "v4", "{057FAC33-CC31- ProjectSection(SolutionItems) = preProject src\DMAPI\tgs\v4\api.dm = src\DMAPI\tgs\v4\api.dm src\DMAPI\tgs\v4\commands.dm = src\DMAPI\tgs\v4\commands.dm + src\DMAPI\tgs\v4\README.md = src\DMAPI\tgs\v4\README.md EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{A55C1117-5808-4AB2-BEA6-4D4A3E66A2F2}" - ProjectSection(SolutionItems) = preProject - tools\TGS.postman_collection.json = tools\TGS.postman_collection.json - EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{DCC75431-7913-4306-9FAB-70998D440BCE}" ProjectSection(SolutionItems) = preProject @@ -132,7 +133,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v5", "v5", "{FAEAD3B5-2EAB- src\DMAPI\tgs\v5\_defines.dm = src\DMAPI\tgs\v5\_defines.dm src\DMAPI\tgs\v5\api.dm = src\DMAPI\tgs\v5\api.dm src\DMAPI\tgs\v5\commands.dm = src\DMAPI\tgs\v5\commands.dm - src\DMAPI\tgs\v5\undef.dm = src\DMAPI\tgs\v5\undef.dm + src\DMAPI\tgs\v5\README.md = src\DMAPI\tgs\v5\README.md + src\DMAPI\tgs\v5\undefs.dm = src\DMAPI\tgs\v5\undefs.dm EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LongRunning", "LongRunning", "{EB1DDE8C-CA6F-4BE3-947B-597CA8EABEA5}" @@ -162,6 +164,19 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BuildFail", "BuildFail", "{ tests\DMAPI\BuildFail\Test.dm = tests\DMAPI\BuildFail\Test.dm EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{28CDEB8F-2B2A-47A2-985B-5E2487E8D096}" + ProjectSection(SolutionItems) = preProject + .github\workflows\artifact-cleanup.yml = .github\workflows\artifact-cleanup.yml + .github\workflows\ci-suite.yml = .github\workflows\ci-suite.yml + .github\workflows\stable-merge.yml = .github\workflows\stable-merge.yml + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ISSUE_TEMPLATE", "ISSUE_TEMPLATE", "{CFFD7992-E73A-4D1F-9D7A-C817C07B7BEB}" + ProjectSection(SolutionItems) = preProject + .github\ISSUE_TEMPLATE\bug-report.md = .github\ISSUE_TEMPLATE\bug-report.md + .github\ISSUE_TEMPLATE\feature_request.md = .github\ISSUE_TEMPLATE\feature_request.md + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -302,6 +317,8 @@ Global {7B8FC2AF-1B64-4A89-8480-F0FE360DC9EC} = {82066812-6C73-4360-943B-B23F2F491261} {F32B9514-AAD9-429D-841A-ED810FC2598C} = {82066812-6C73-4360-943B-B23F2F491261} {103C61AB-67D6-46FE-AA47-CC633B88EE0F} = {82066812-6C73-4360-943B-B23F2F491261} + {28CDEB8F-2B2A-47A2-985B-5E2487E8D096} = {E82104F4-F5C4-4786-ACD4-B635166CDB21} + {CFFD7992-E73A-4D1F-9D7A-C817C07B7BEB} = {E82104F4-F5C4-4786-ACD4-B635166CDB21} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {DFD36C95-3E49-41C7-ACDB-86BAF5B18A79} diff --git a/tools/TGS.postman_collection.json b/tools/TGS.postman_collection.json deleted file mode 100644 index 635c67dc90..0000000000 --- a/tools/TGS.postman_collection.json +++ /dev/null @@ -1,3262 +0,0 @@ -{ - "info": { - "_postman_id": "bb44d5ca-de20-4da3-880d-1ceacd54fe4a", - "name": "TGS", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "Administration", - "item": [ - { - "name": "Get Update Versions", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/Administration", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Administration" - ] - } - }, - "response": [] - }, - { - "name": "Mock Update", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"currentVersion\": {\n \"major\": 3,\n \"minor\": 2,\n \"build\": 3,\n \"revision\": 6,\n \"majorRevision\": 0,\n \"minorRevision\": 0\n }\n}" - }, - "url": { - "raw": "localhost:5000/Administration", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Administration" - ] - } - }, - "response": [] - }, - { - "name": "Restart Server", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/Administration", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Administration" - ] - } - }, - "response": [] - } - ], - "event": [ - { - "listen": "prerequest", - "script": { - "id": "1f443013-474b-4f66-afc1-3968552a4a7b", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "e2f3d034-2618-428f-a956-7d83fcd5e309", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ] - }, - { - "name": "Users", - "item": [ - { - "name": "Read Current User", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Read All Users", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/User/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User", - "List" - ] - } - }, - "response": [] - }, - { - "name": "Create User Bob Pass (asdf)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 1,\n \"enabled\": true,\n \"password\": \"asdf\",\n \"name\": \"Bob\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Create User admin", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"asdfasdfasdfasdfasdf\",\n \"name\": \"admin\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Try To Add A SysId To User ID 2", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 2,\n \"systemIdentifier\": \"fake\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Enable User ID 3", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 3,\n \"enabled\": true\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Try To Add A Password To User ID", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 3,\n \"password\": \"fake\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Change User ID 2's password and name to bOb and fdsa", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 2,\n \"password\": \"fdsa\",\n \"name\": \"bOb\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Change User ID 2's name to Bob2", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 2,\n \"name\": \"Bob2\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Give User ID 3 rights", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 3,\n \"administrationRights\": -1,\n\t\"instanceManagerRights\": -1,\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Create system user Cyberboss", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"systemIdentifier\": \"TESSONICS\\\\Jordan\"\n}" - }, - "url": { - "raw": "localhost:5000/User", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "User" - ] - } - }, - "response": [] - }, - { - "name": "Login bob (asdf)", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Authorization", - "value": "Password asdf" - }, - { - "key": "Username", - "value": "bob" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000", - "host": [ - "localhost" - ], - "port": "5000" - } - }, - "response": [] - }, - { - "name": "Login cyberboss", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Authorization", - "value": "Password no" - }, - { - "key": "Username", - "value": "cyberboss" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000", - "host": [ - "localhost" - ], - "port": "5000" - } - }, - "response": [] - } - ] - }, - { - "name": "Instance", - "item": [ - { - "name": "Chat", - "item": [ - { - "name": "Make ID 1 use NS auth", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 1,\n\t\"connectionString\": \"irc.rizon.net;6667;tgs4_test;0;2;asdfasdf\"\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Get ID 1", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": \"1\",\n\t\"connectionString\": \"irc.rizon.net;6667;tgs4_test;0;2;asdfasdf\"\n}" - }, - "url": { - "raw": "localhost:5000/Chat/1", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat", - "1" - ] - } - }, - "response": [] - }, - { - "name": "Get ID 2", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": \"1\",\n\t\"connectionString\": \"irc.rizon.net;6667;tgs4_test;0;2;asdfasdf\"\n}" - }, - "url": { - "raw": "localhost:5000/Chat/2", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat", - "2" - ] - } - }, - "response": [] - }, - { - "name": "Make ID 1 use SASL auth", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 1,\n\t\"connectionString\": \"irc.rizon.net;6667;tgs4_test;0;1;asdfasdf\"\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Create tgs4_test on #botbus", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"name\": \"Rizon\",\n\t\"enabled\": true,\n\t\"provider\": 0,\n\t\"connectionString\": \"irc.rizon.net;6667;tgs4_test;0\",\n\t\"channels\": [\n\t\t{\n\t\t\t\"ircChannel\": \"#botbus\",\n\t\t\t\"isAdminChannel\": true,\n\t\t\t\"isWatchdogChannel\": true\n\t\t}\n\t\t]\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Set ID 1 to only #botbus", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 1,\n\t\"channels\": [\n\t\t{\n\t\t\t\"ircChannel\": \"#botbus\",\n\t\t\t\"isAdminChannel\": true,\n\t\t\t\"isWatchdogChannel\": true,\n\t\t\t\"isUpdatesChannel\": true\n\t\t}\n\t\t]\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Create r4407 on Disord", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "User-Agent", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "InstanceId", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"name\": \"r4407\",\n\t\"enabled\": false,\n\t\"provider\": 1,\n\t\"connectionString\": \"NDIwMDg3NDczOTY0NzExOTQ3.Dj-K1w.3Hj3YQKzmpeM7DKz2M7JEJlzdjs\"\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Enable ID 2", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 2,\n\t\"enabled\": true\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Add #coderbus to ID 1", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 1,\n\t\"channels\": [\n\t\t{\n\t\t\t\"ircChannel\": \"#coderbus\",\n\t\t\t\"isAdminChannel\": true,\n\t\t\t\"isWatchdogChannel\": true,\n\t\t\t\"isUpdatesChannel\": true\n\t\t},\n\t\t{\n\t\t\t\"ircChannel\": \"#botbus\",\n\t\t\t\"isAdminChannel\": true,\n\t\t\t\"isWatchdogChannel\": true,\n\t\t\t\"isUpdatesChannel\": true\n\t\t}\n\t\t]\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Add #extranet to ID 2", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"id\": 2,\n\t\"channels\": [\n\t\t{\n\t\t\t\"discordChannelId\": 164876336958144512,\n\t\t\t\"isAdminChannel\": true,\n\t\t\t\"isWatchdogChannel\": true\n\t\t}\n\t\t]\n}" - }, - "url": { - "raw": "localhost:5000/Chat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat" - ] - } - }, - "response": [] - }, - { - "name": "Delete Rizon", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/Chat/1", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat", - "1" - ] - } - }, - "response": [] - }, - { - "name": "List connections", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": true\n}" - }, - "url": { - "raw": "localhost:5000/Chat/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Chat", - "List" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Users", - "item": [ - { - "name": "Add admin to Instace ID 1 all perms", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"userId\": 1,\n\t\"byondRights\": 4294967295,\n\t\"dreamDaemonRights\": 4294967295,\n\t\"dreamMakerRights\": 4294967295,\n\t\"repositoryRights\": 4294967295\n\t\"chatBotRights\": 4294967295,\n\t\"configurationRights\": 4294967295\n}" - }, - "url": { - "raw": "localhost:5000/InstanceUser", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "InstanceUser" - ] - } - }, - "response": [] - }, - { - "name": "Fix admin Instace ID 1 all perms", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"userId\": 1,\n\t\"byondRights\": 4294967295,\n\t\"dreamDaemonRights\": 4294967295,\n\t\"dreamMakerRights\": 4294967295,\n\t\"repositoryRights\": 4294967295,\n\t\"chatBotRights\": 4294967295,\n\t\"configurationRights\": 4294967295\n}" - }, - "url": { - "raw": "localhost:5000/InstanceUser", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "InstanceUser" - ] - } - }, - "response": [] - }, - { - "name": "List Instance ID 1 Users", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"userId\": 1,\n\t\"byondRights\": -1,\n\t\"dreamDaemonRights\": -1,\n\t\"dreamMakerRights\": -1,\n\t\"repositoryRights\": -1,\n\t\"chatSettingsRights\": -1,\n\t\"configurationRights\": -1\n}" - }, - "url": { - "raw": "localhost:5000/InstanceUser/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "InstanceUser", - "List" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Jobs", - "item": [ - { - "name": "List Ids", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"userId\": 1,\n\t\"byondRights\": -1,\n\t\"dreamDaemonRights\": -1,\n\t\"dreamMakerRights\": -1,\n\t\"repositoryRights\": -1,\n\t\"chatSettingsRights\": -1,\n\t\"configurationRights\": -1\n}" - }, - "url": { - "raw": "localhost:5000/Job/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Job", - "List" - ] - } - }, - "response": [] - }, - { - "name": "Get ID", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"userId\": 1,\n\t\"byondRights\": -1,\n\t\"dreamDaemonRights\": -1,\n\t\"dreamMakerRights\": -1,\n\t\"repositoryRights\": -1,\n\t\"chatSettingsRights\": -1,\n\t\"configurationRights\": -1\n}" - }, - "url": { - "raw": "localhost:5000/Job/1", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Job", - "1" - ] - } - }, - "response": [] - }, - { - "name": "Cancel ID", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/Job/20", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Job", - "20" - ] - } - }, - "response": [] - } - ], - "event": [ - { - "listen": "prerequest", - "script": { - "id": "a3f3a2f7-5700-48a9-88bf-d18ac2a1855c", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "787a5a17-ad9c-4772-9052-85d81e87d4a9", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Byond", - "item": [ - { - "name": "List installed versions", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Byond/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Byond", - "List" - ] - } - }, - "response": [] - }, - { - "name": "Read active version", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Byond", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Byond" - ] - } - }, - "response": [] - }, - { - "name": "Set 511.1385 active", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"version\": {\n \t\"major\": 511,\n \t\"minor\": 1385\n }\n}" - }, - "url": { - "raw": "localhost:5000/Byond", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Byond" - ] - } - }, - "response": [] - }, - { - "name": "Set 512.1441 active", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"version\": {\n \t\"major\": 512,\n \t\"minor\": 1441\n }\n}" - }, - "url": { - "raw": "localhost:5000/Byond", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Byond" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Repo", - "item": [ - { - "name": "Read Info", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - }, - { - "name": "Just fetch", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"updateFromOrigin\": true\n}" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - }, - { - "name": "Set access info", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"accessUser\": \"Cyberboss\",\n\t\"accessToken\": \"this can be a password or personal access token, you should use the latter\"\n}" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - }, - { - "name": "Reset to origin", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"updateFromOrigin\": true,\n\t\"reference\": \"master\"\n}" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - }, - { - "name": "Test merge some stuff", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"updateFromOrigin\": true,\n\t\"reference\": \"master\",\n\t\"newTestMerges\": [\n\t\t{\n\t\t\t\"number\": 39771,\n\t\t\t\"comment\": \"needful for debugging\"\n\t\t},\n\t\t{\n\t\t\t\"number\": 39777,\n\t\t\t\"comment\": \"also needful\"\n\t\t},\n\t\t{\n\t\t\t\"number\": 39778\n\t\t}\n\t\t]\n}" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - }, - { - "name": "Clone tg", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"origin\": \"https://github.com/tgstation/tgstation\"\n}" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - }, - { - "name": "Delete", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/Repository", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Repository" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Compiler", - "item": [ - { - "name": "Read", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/DreamMaker", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "DreamMaker" - ] - } - }, - "response": [] - }, - { - "name": "Compile", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{}" - }, - "url": { - "raw": "localhost:5000/DreamMaker", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "DreamMaker" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Static files", - "item": [ - { - "name": "Read Root", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Config/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config", - "List" - ] - } - }, - "response": [] - }, - { - "name": "Read EventScripts", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Config/List/EventScripts", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config", - "List", - "EventScripts" - ] - } - }, - "response": [] - }, - { - "name": "Read PreCompile.bat", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Config/File/EventScripts/PreCompile.bat", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config", - "File", - "EventScripts", - "PreCompile.bat" - ] - } - }, - "response": [] - }, - { - "name": "Write thing/asdf.txt", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf.txt\",\n\t\"content\": \"SGVsbG8gd29ybGQ=\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Write thing/asdf3.txt", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf3.txt\",\n\t\"content\": \"SGVsbG8gd29ybGQ=\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Delete thing/asdf3.txt", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf3.txt\",\n \"lastReadHash\": \"7b502c3a1f48c8609ae212cdfb639dee39673f5e\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Bad rewrite thing/asdf.txt", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf.txt\",\n\t\"content\": \"SGVsbG8gd29ybGQgYWdhaW4=\",\n \"lastReadHash\": \"7b502c3a1f48c8609ae212cdfb639dee39673f5e not a real sha\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Read thing/asdf.txt", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Config/File/thing/asdf.txt", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config", - "File", - "thing", - "asdf.txt" - ] - } - }, - "response": [] - }, - { - "name": "Rewrite thing/asdf.txt", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf.txt\",\n\t\"content\": \"SGVsbG8gd29ybGQgYWdhaW4=\",\n \"lastReadHash\": \"7b502c3a1f48c8609ae212cdfb639dee39673f5e\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Delete thing/asdf.txt", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf.txt\",\n \"lastReadHash\": \"1baedcc3133922e37579907cd17c62aa98425297\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Write thing/asdf.txt/shouldntwork.file", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"thing/asdf.txt/shouldntwork.file\",\n\t\"content\": \"SGVsbG8gd29ybGQ=\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Write CodeModifications", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"CodeModifications\",\n\t\"content\": \"SGVsbG8gd29ybGQ=\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - }, - { - "name": "Create NewDir", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"path\": \"NewDir\"\n}" - }, - "url": { - "raw": "localhost:5000/Config", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Config" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Watchdog", - "item": [ - { - "name": "Set SecurityLevel to Trusted", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{\n\t\"securityLevel\": 0\n}" - }, - "url": { - "raw": "localhost:5000/DreamDaemon", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "DreamDaemon" - ] - } - }, - "response": [] - }, - { - "name": "Start", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{}" - }, - "url": { - "raw": "localhost:5000/DreamDaemon", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "DreamDaemon" - ] - } - }, - "response": [] - }, - { - "name": "Read", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "{}" - }, - "url": { - "raw": "localhost:5000/DreamDaemon", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "DreamDaemon" - ] - } - }, - "response": [] - }, - { - "name": "Stop", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Instance", - "value": "1" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000/DreamDaemon", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "DreamDaemon" - ] - } - }, - "response": [] - } - ], - "_postman_isSubFolder": true - }, - { - "name": "Online Instance ID 1", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": true\n}" - }, - "url": { - "raw": "localhost:5000/Instance", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance" - ] - } - }, - "response": [] - }, - { - "name": "Enable Generic Config on Instance ID 1", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"configurationType\": 1\n}" - }, - "url": { - "raw": "localhost:5000/Instance", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance" - ] - } - }, - "response": [] - }, - { - "name": "Enable SID Config on Instance ID 1", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"configurationType\": 2\n}" - }, - "url": { - "raw": "localhost:5000/Instance", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance" - ] - } - }, - "response": [] - }, - { - "name": "Offline Instance ID 1", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Instance", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance" - ] - } - }, - "response": [] - }, - { - "name": "List instances", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"id\": 1,\n \"online\": false\n}" - }, - "url": { - "raw": "localhost:5000/Instance/List", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance", - "List" - ] - } - }, - "response": [] - }, - { - "name": "Create Instance TestInstance", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Test Instance\",\n \"path\": \"C:\\\\TestInstance\"\n}" - }, - "url": { - "raw": "localhost:5000/Instance", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance" - ] - } - }, - "response": [] - }, - { - "name": "Create Instance invalid path", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Test Instance\",\n \"path\": \"C:\\\\Windows\"\n}" - }, - "url": { - "raw": "localhost:5000/Instance", - "host": [ - "localhost" - ], - "port": "5000", - "path": [ - "Instance" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Login Admin Default", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Authorization", - "value": "Password ISolemlySwearToDeleteTheDataDirectory" - }, - { - "key": "Username", - "value": "admin" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "localhost:5000", - "host": [ - "localhost" - ], - "port": "5000" - } - }, - "response": [] - }, - { - "name": "VersionGet", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - }, - { - "key": "User-Agent", - "value": "Postman/1.0" - }, - { - "key": "Api", - "value": "Tgstation.Server.Api/4.0.0.0" - }, - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "formdata", - "formdata": [ - { - "key": "name", - "value": "asdfasdf", - "type": "text" - } - ] - }, - "url": { - "raw": "localhost:5000", - "host": [ - "localhost" - ], - "port": "5000" - } - }, - "response": [] - } - ], - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{currentAccessToken}}", - "type": "string" - } - ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "cb655975-15d0-4115-9849-4493db7593c1", - "type": "text/javascript", - "exec": [ - "const echoPostRequest = {", - " url: 'http://localhost:5000',", - " method: 'POST',", - " header: ['Accept:application/json', \"User-Agent:Postman/1.0\", \"Api:Tgstation.Server.Api/4.0.0.0\", \"Authorization:Password ISolemlySwearToDeleteTheDataDirectory\", \"Username:admin\"]", - "};", - "", - "pm.sendRequest(echoPostRequest, function (err, res) {", - "console.log(err ? err : res.json());", - " if (err === null) {", - " var responseJson = res.json();", - " pm.environment.set('currentAccessToken', responseJson.bearer)", - " }", - "});" - ] - } - }, - { - "listen": "test", - "script": { - "id": "55b4fd6c-39db-4c6b-9fe4-a9a2ebe7e09c", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ] -} \ No newline at end of file