Merge pull request #9 from brct-james/v2-improvements

Pagination Params, Typo Fix
This commit is contained in:
SpaceAdmiral 2023-01-02 10:03:28 -08:00 committed by GitHub
commit 8ebbd07bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 93 additions and 1 deletions

2
.spectral.mjs Normal file
View File

@ -0,0 +1,2 @@
import ruleset from "https://stoplight.io/api/v1/projects/cHJqOjE3NTU4OQ/spectral.js?branch=main&token=e4f4ffbe-f8ad-4829-b09f-cf2703afac49";
export default { extends: ruleset };

View File

@ -72,7 +72,7 @@
"enum": [ "enum": [
"COSMIC", "COSMIC",
"VOID", "VOID",
"GALLACTIC", "GALACTIC",
"QUANTUM", "QUANTUM",
"DOMINION", "DOMINION",
"ASTRO", "ASTRO",
@ -189,6 +189,24 @@
"summary": "List Systems", "summary": "List Systems",
"tags": [ "tags": [
"systems" "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"
}
] ]
} }
}, },
@ -280,6 +298,24 @@
"summary": "List Waypoints", "summary": "List Waypoints",
"tags": [ "tags": [
"systems" "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": [ "parameters": [
@ -551,6 +587,24 @@
"summary": "List Factions", "summary": "List Factions",
"tags": [ "tags": [
"factions" "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"
}
] ]
} }
}, },
@ -671,6 +725,24 @@
"summary": "List Contracts", "summary": "List Contracts",
"tags": [ "tags": [
"contracts" "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"
}
] ]
} }
}, },
@ -960,6 +1032,24 @@
"summary": "List Ships", "summary": "List Ships",
"tags": [ "tags": [
"fleet" "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": { "post": {