Modified 4 files

This commit is contained in:
SpaceAdmiral 2022-03-11 17:55:54 -08:00
parent 8f09683e17
commit bf05c4fb49
4 changed files with 159 additions and 146 deletions

47
models/ScannedShip.yaml Normal file
View File

@ -0,0 +1,47 @@
description: ''
type: object
properties:
symbol:
type: string
minLength: 1
registration:
type: object
properties:
factionSymbol:
type: string
minLength: 1
role:
type: string
minLength: 1
required:
- factionSymbol
- role
frameSymbol:
type: string
minLength: 1
reactorSymbol:
type: string
minLength: 1
engineSymbol:
type: string
minLength: 1
expiration:
type: string
minLength: 1
required:
- symbol
- registration
- frameSymbol
- reactorSymbol
- engineSymbol
- expiration
x-examples:
example-1:
symbol: SPACERS_GUILD-65E1BA
registration:
factionSymbol: SPACERS_GUILD
role: EXCAVATOR
frameSymbol: FRAME_LIGHT_FREIGHTER
reactorSymbol: REACTOR_FUSION_I
engineSymbol: ENGINE_ION_DRIVE_I
expiration: '2022-03-12T00:44:14.222Z'

View File

@ -0,0 +1,33 @@
description: ''
type: object
properties:
shipSymbol:
type: string
minLength: 1
departure:
type: string
minLength: 1
destination:
type: string
minLength: 1
durationRemaining:
type: number
arrivedAt: {}
required:
- shipSymbol
- departure
- destination
- durationRemaining
x-examples:
example-1:
shipSymbol: 3AE434-1
departure: X1-OE-PM
destination: X1-OE-A005
durationRemaining: 2159
arrivedAt: null
examples:
- shipSymbol: 3AE434-1
departure: X1-OE-PM
destination: X1-OE-A005
durationRemaining: 2159
arrivedAt: null

29
models/Trade.yaml Normal file
View File

@ -0,0 +1,29 @@
description: ''
type: object
properties:
waypointSymbol:
type: string
minLength: 1
tradeSymbol:
type: string
minLength: 1
credits:
type: number
units:
type: number
required:
- waypointSymbol
- tradeSymbol
- credits
- units
x-examples:
example-1:
waypointSymbol: X1-OE-PM
tradeSymbol: MICROPROCESSORS
credits: -843
units: 1
examples:
- waypointSymbol: X1-OE-PM
tradeSymbol: MICROPROCESSORS
credits: 843
units: 1

View File

@ -791,27 +791,6 @@ paths:
schema: schema:
description: '' description: ''
type: object type: object
properties:
data:
type: object
properties:
waypointSymbol:
type: string
minLength: 1
tradeSymbol:
type: string
minLength: 1
credits:
type: number
units:
type: number
required:
- waypointSymbol
- tradeSymbol
- credits
- units
required:
- data
x-examples: x-examples:
example-1: example-1:
data: data:
@ -819,6 +798,11 @@ paths:
tradeSymbol: MICROPROCESSORS tradeSymbol: MICROPROCESSORS
credits: -843 credits: -843
units: 1 units: 1
properties:
data:
$ref: ../models/Trade.yaml
required:
- data
examples: examples:
Success: Success:
value: value:
@ -899,56 +883,6 @@ paths:
schema: schema:
description: '' description: ''
type: object type: object
properties:
data:
type: object
properties:
ships:
type: array
uniqueItems: true
minItems: 1
items:
required:
- symbol
- frameSymbol
- reactorSymbol
- engineSymbol
- expiration
properties:
symbol:
type: string
minLength: 1
registration:
type: object
properties:
factionSymbol:
type: string
minLength: 1
role:
type: string
minLength: 1
required:
- factionSymbol
- role
frameSymbol:
type: string
minLength: 1
reactorSymbol:
type: string
minLength: 1
engineSymbol:
type: string
minLength: 1
expiration:
type: string
minLength: 1
cooldown:
type: number
required:
- ships
- cooldown
required:
- data
x-examples: x-examples:
example-1: example-1:
data: data:
@ -1034,6 +968,23 @@ paths:
engineSymbol: ENGINE_ION_DRIVE_II engineSymbol: ENGINE_ION_DRIVE_II
expiration: '2022-03-08T05:19:19.726Z' expiration: '2022-03-08T05:19:19.726Z'
cooldown: 60 cooldown: 60
properties:
data:
type: object
required:
- ships
- cooldown
properties:
ships:
type: array
uniqueItems: true
minItems: 1
items:
$ref: ../models/ScannedShip.yaml
cooldown:
$ref: ../models/Cooldown.yaml
required:
- data
examples: examples:
Success: Success:
value: value:
@ -1132,6 +1083,9 @@ paths:
properties: properties:
mode: mode:
type: string type: string
enum:
- APPROACHING_SHIPS
- DEPARTING_SHIPS
required: required:
- mode - mode
examples: examples:
@ -1165,27 +1119,6 @@ paths:
schema: schema:
description: '' description: ''
type: object type: object
properties:
data:
type: object
properties:
waypointSymbol:
type: string
minLength: 1
tradeSymbol:
type: string
minLength: 1
credits:
type: number
units:
type: number
required:
- waypointSymbol
- tradeSymbol
- credits
- units
required:
- data
x-examples: x-examples:
example-1: example-1:
data: data:
@ -1193,6 +1126,11 @@ paths:
tradeSymbol: SILICON tradeSymbol: SILICON
credits: 144 credits: 144
units: -1 units: -1
properties:
data:
$ref: ../models/Trade.yaml
required:
- data
examples: examples:
Success: Success:
value: value:
@ -1286,8 +1224,21 @@ paths:
content: content:
application/json: application/json:
schema: schema:
description: ''
type: object type: object
properties: {} x-examples:
example-1:
data:
shipSymbol: 3AE434-1
departure: X1-OE-PM
destination: X1-OE-A005
durationRemaining: 2159
arrivedAt: null
properties:
data:
$ref: ../models/ShipNavigation.yaml
required:
- data
description: Get the status of your last navigation. description: Get the status of your last navigation.
security: security:
- AgentToken: [] - AgentToken: []
@ -1844,47 +1795,6 @@ paths:
schema: schema:
description: '' description: ''
type: object type: object
properties:
data:
type: object
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:
required: []
properties: {}
factions:
type: array
items:
required: []
properties: {}
charted:
type: boolean
chartedBy: {}
required:
- symbol
- sector
- type
- x
- 'y'
- waypoints
- factions
- charted
required:
- data
x-examples: x-examples:
example-1: example-1:
data: data:
@ -1897,6 +1807,11 @@ paths:
factions: [] factions: []
charted: false charted: false
chartedBy: null chartedBy: null
properties:
data:
$ref: ../models/System.yaml
required:
- data
examples: examples:
Success: Success:
value: value:
@ -1977,18 +1892,7 @@ paths:
items: items:
$ref: ../models/System.yaml $ref: ../models/System.yaml
meta: meta:
type: object $ref: ../models/Meta.yaml
required:
- total
- page
- limit
properties:
total:
type: number
page:
type: number
limit:
type: number
required: required:
- data - data
- meta - meta