Modified 2 files

This commit is contained in:
SpaceAdmiral 2022-03-10 18:17:28 -08:00
parent e25a4b6491
commit 0f25a996cf
2 changed files with 156 additions and 0 deletions

74
models/System.yaml Normal file
View File

@ -0,0 +1,74 @@
description: ''
type: object
x-examples:
example-1:
symbol: X1-OE
sector: X1
type: RED_STAR
x: 0
'y': 0
waypoints:
- X1-OE-PM
- X1-OE-PM01
- X1-OE-A005
- X1-OE-25X
factions:
- COMMERCE_REPUBLIC
- MINERS_COLLECTIVE
- SPACERS_GUILD
charted: true
chartedBy: null
examples:
- symbol: X1-OE
sector: X1
type: RED_STAR
x: 0
'y': 0
waypoints:
- X1-OE-PM
- X1-OE-PM01
- X1-OE-A005
- X1-OE-25X
factions:
- COMMERCE_REPUBLIC
- MINERS_COLLECTIVE
- SPACERS_GUILD
charted: true
chartedBy: null
properties:
symbol:
type: string
minLength: 1
sector:
type: string
minLength: 1
type:
type: string
minLength: 1
x:
type: number
'y':
type: number
waypoints:
type: array
items:
type: string
factions:
type: array
items:
type: string
charted:
type: boolean
chartedBy:
type:
- string
- 'null'
required:
- symbol
- sector
- type
- x
- 'y'
- waypoints
- factions
- charted

View File

@ -1413,6 +1413,88 @@ paths:
operationId: get-systems-systemSymbol operationId: get-systems-systemSymbol
security: security:
- AgentToken: [] - AgentToken: []
/systems:
get:
summary: List all systems
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
data:
- symbol: X1-OE
sector: X1
type: RED_STAR
x: 0
'y': 0
waypoints:
- X1-OE-PM
- X1-OE-PM01
- X1-OE-A005
- X1-OE-25X
factions:
- COMMERCE_REPUBLIC
- MINERS_COLLECTIVE
- SPACERS_GUILD
charted: true
chartedBy: null
- symbol: X1-EV
sector: X1
type: ORANGE_STAR
x: 3
'y': 4
waypoints:
- X1-EV-A004
factions:
- COMMERCE_REPUBLIC
charted: true
chartedBy: null
- symbol: X1-ZZ
sector: X1
type: BLUE_STAR
x: -2
'y': 11
waypoints: []
factions: []
charted: false
chartedBy: null
meta:
total: 3
page: 1
limit: 20
properties:
data:
type: array
uniqueItems: true
minItems: 1
items:
$ref: ../models/System.yaml
meta:
type: object
required:
- total
- page
- limit
properties:
total:
type: number
page:
type: number
limit:
type: number
required:
- data
- meta
operationId: get-systems
description: Return a list of all systems.
security:
- AgentToken: []
tags: tags:
- name: my - name: my
- name: ships - name: ships