From 6dc72cc7e5921512a1fa73529d0e4dc765f3987e Mon Sep 17 00:00:00 2001 From: "james.clague@brct.io" Date: Mon, 2 Jan 2023 09:41:04 -0700 Subject: [PATCH] Add meta query params to list factions, ships, contracts, systems, waypoints. Fix typo for Galactic faction /register enum. --- reference/SpaceTraders.json | 80 +++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 4 deletions(-) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 1a1e0da..6443f28 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -72,7 +72,7 @@ "enum": [ "COSMIC", "VOID", - "GALLACTIC", + "GALACTIC", "QUANTUM", "DOMINION", "ASTRO", @@ -193,15 +193,15 @@ "parameters": [ { "schema": { - "type": "number" + "type": "integer" }, "in": "query", "name": "page", - "description": "What page to request" + "description": "What entry offset to request" }, { "schema": { - "type": "number" + "type": "integer" }, "in": "query", "name": "limit", @@ -298,6 +298,24 @@ "summary": "List Waypoints", "tags": [ "systems" + ], + "parameters": [ + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "page", + "description": "What entry offset to request" + }, + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "limit", + "description": "How many entries to return per page" + } ] }, "parameters": [ @@ -569,6 +587,24 @@ "summary": "List Factions", "tags": [ "factions" + ], + "parameters": [ + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "page", + "description": "What entry offset to request" + }, + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "limit", + "description": "How many entries to return per page" + } ] } }, @@ -689,6 +725,24 @@ "summary": "List Contracts", "tags": [ "contracts" + ], + "parameters": [ + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "page", + "description": "What entry offset to request" + }, + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "limit", + "description": "How many entries to return per page" + } ] } }, @@ -978,6 +1032,24 @@ "summary": "List Ships", "tags": [ "fleet" + ], + "parameters": [ + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "page", + "description": "What entry offset to request" + }, + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "limit", + "description": "How many entries to return per page" + } ] }, "post": {