Files
tgstation-server/tools/TGS.postman_collection.json
T
2018-08-20 13:42:15 -04:00

3262 lines
68 KiB
JSON

{
"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": [
""
]
}
}
]
}