From 55f72b8dde57b817446c1351ce2012894813681a Mon Sep 17 00:00:00 2001 From: "james.clague@brct.io" Date: Tue, 23 May 2023 08:27:47 -0600 Subject: [PATCH 1/5] Remove global security for / and /register to match API --- .stoplight/styleguide.json | 34 ++++++++++++++++++++++++++++++++++ reference/SpaceTraders.json | 6 ++++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .stoplight/styleguide.json diff --git a/.stoplight/styleguide.json b/.stoplight/styleguide.json new file mode 100644 index 0000000..40a2f41 --- /dev/null +++ b/.stoplight/styleguide.json @@ -0,0 +1,34 @@ +{ + "name": "St V2 API Docs", + "description": "", + "spectralExtends": [], + "extends": [ + "cHJqOjEyMzU4Ng" + ], + "formats": [ + "oas2", + "oas3", + "oas3.0", + "oas3.1" + ], + "aliases": {}, + "rules": {}, + "extendedStyleguides": [ + { + "id": "cHJqOjEyMzU4Ng", + "name": "Stoplight Style Guide", + "slug": "stoplight-style-guide", + "workspace": { + "slug": "apistylebook", + "name": "API Stylebook" + }, + "icon": "robot", + "color": "#3898ff", + "description": "Default rules for Stoplight projects", + "latestRelease": { + "release": 37 + } + } + ], + "extendedDefault": true +} \ No newline at end of file diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index d646e7a..6d21d65 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -225,7 +225,8 @@ } }, "summary": "Get Status", - "tags": [] + "tags": [], + "security": [] } }, "/register": { @@ -315,7 +316,8 @@ } }, "summary": "Register New Agent", - "tags": [] + "tags": [], + "security": [] } }, "/systems": { From c1822189f57b87c6fbfceda40e2e215985e67f0f Mon Sep 17 00:00:00 2001 From: James C Date: Tue, 23 May 2023 08:34:42 -0600 Subject: [PATCH 2/5] Remove stoplight styleguide... --- .stoplight/styleguide.json | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .stoplight/styleguide.json diff --git a/.stoplight/styleguide.json b/.stoplight/styleguide.json deleted file mode 100644 index 40a2f41..0000000 --- a/.stoplight/styleguide.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "St V2 API Docs", - "description": "", - "spectralExtends": [], - "extends": [ - "cHJqOjEyMzU4Ng" - ], - "formats": [ - "oas2", - "oas3", - "oas3.0", - "oas3.1" - ], - "aliases": {}, - "rules": {}, - "extendedStyleguides": [ - { - "id": "cHJqOjEyMzU4Ng", - "name": "Stoplight Style Guide", - "slug": "stoplight-style-guide", - "workspace": { - "slug": "apistylebook", - "name": "API Stylebook" - }, - "icon": "robot", - "color": "#3898ff", - "description": "Default rules for Stoplight projects", - "latestRelease": { - "release": 37 - } - } - ], - "extendedDefault": true -} \ No newline at end of file From b36cd0242bd67d328211c83cba0289aa9204a2c6 Mon Sep 17 00:00:00 2001 From: James C Date: Tue, 23 May 2023 08:35:12 -0600 Subject: [PATCH 3/5] Add styleguide to ignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 496ee2c..3336c76 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_Store \ No newline at end of file +.DS_Store +.stoplight/styleguide.json From 2e854c308829cc86eeecbe329a3e2ce69bb8738e Mon Sep 17 00:00:00 2001 From: James C Date: Tue, 23 May 2023 09:33:34 -0600 Subject: [PATCH 4/5] Remove global security from all public routes --- reference/SpaceTraders.json | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 6d21d65..f2c89fc 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -352,11 +352,7 @@ "description": "OK" } }, - "security": [ - { - "AgentToken": [] - } - ], + "security": [], "summary": "List Systems", "tags": [ "systems" @@ -409,7 +405,7 @@ "description": "OK" } }, - "security": [ + "security": [], { "AgentToken": [] } @@ -532,11 +528,7 @@ "description": "OK" } }, - "security": [ - { - "AgentToken": [] - } - ], + "security": [], "summary": "Get Waypoint", "tags": [ "systems" @@ -587,11 +579,7 @@ "description": "OK" } }, - "security": [ - { - "AgentToken": [] - } - ], + "security": [], "summary": "Get Market", "tags": [ "systems" @@ -643,11 +631,7 @@ "description": "OK" } }, - "security": [ - { - "AgentToken": [] - } - ], + "security": [], "summary": "Get Shipyard", "tags": [ "systems" @@ -699,11 +683,7 @@ "description": "OK" } }, - "security": [ - { - "AgentToken": [] - } - ], + "security": [], "summary": "Get Jump Gate", "tags": [ "systems" From 5567bf30a65ed3a852244bb191e419fa542cb796 Mon Sep 17 00:00:00 2001 From: James C Date: Tue, 23 May 2023 09:38:11 -0600 Subject: [PATCH 5/5] Fix malformed change --- reference/SpaceTraders.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index f2c89fc..b7b5390 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -406,10 +406,6 @@ } }, "security": [], - { - "AgentToken": [] - } - ], "summary": "Get System", "tags": [ "systems"