api-docs/models/Ship.yaml

162 lines
2.8 KiB
YAML
Raw Normal View History

description: ""
2022-03-10 04:16:02 +01:00
type: object
x-examples:
example-1:
symbol: 2C52AD-1
crew: null
officers: null
frame: FRAME_FRIGATE
reactor: REACTOR_FUSION_I
engine: ENGINE_ION_DRIVE_II
modules:
- MODULE_GAS_TANK
- MODULE_CARGO_HOLD
- MODULE_CARGO_HOLD
- MODULE_CREW_QUARTERS
- MODULE_ENVOY_QUARTERS
- MODULE_JUMP_DRIVE_I
mounts:
- MOUNT_SENSOR_ARRAY_II
- MOUNT_MINING_LASER_II
- MOUNT_GAS_SIPHON_II
registration:
factionSymbol: COMMERCE_REPUBLIC
agentSymbol: 2C52AD
fee: 0
role: COMMAND
integrity:
frame: 1
reactor: 1
engine: 1
status: DOCKED
location: X1-OE-PM
cargo:
- tradeSymbol: IRON_ORE
units: 100
2022-03-11 06:33:11 +01:00
examples:
- symbol: 55B261-1
crew: null
officers: null
fuel: 100
frame: FRAME_DRONE
reactor: REACTOR_SOLAR_I
engine: ENGINE_SOLAR_PROPULSION
modules:
- MODULE_CARGO_HOLD
mounts:
- MOUNT_MINING_LASER_I
registration:
factionSymbol: COMMERCE_REPUBLIC
agentSymbol: 55B261
fee: 100
role: EXCAVATOR
integrity:
frame: 1
reactor: 1
engine: 1
status: DOCKED
location: X1-OE-PM
cargo: []
2022-03-10 04:16:02 +01:00
properties:
symbol:
type: string
minLength: 1
frame:
type: string
minLength: 1
reactor:
type: string
minLength: 1
engine:
type: string
minLength: 1
modules:
type: array
items:
type: string
mounts:
type: array
items:
type: string
registration:
type: object
required:
- factionSymbol
- agentSymbol
- fee
- role
properties:
factionSymbol:
type: string
minLength: 1
agentSymbol:
type: string
minLength: 1
fee:
type: integer
2022-03-10 04:16:02 +01:00
role:
type: string
minLength: 1
integrity:
type: object
required:
- frame
- reactor
- engine
properties:
frame:
type: number
reactor:
type: number
engine:
type: number
2022-03-23 16:57:02 +01:00
stats:
type: object
required:
- fuelTank
- cargoLimit
- jumpRange
properties:
fuelTank:
type: integer
cargoLimit:
type: integer
jumpRange:
type: integer
2022-03-10 04:16:02 +01:00
status:
type: string
minLength: 1
location:
type: string
minLength: 1
cargo:
type: array
uniqueItems: true
2022-03-11 02:33:09 +01:00
minItems: 0
2022-03-10 04:16:02 +01:00
items:
type: object
properties:
tradeSymbol:
type: string
minLength: 1
units:
type: integer
2022-03-10 04:16:02 +01:00
required:
- tradeSymbol
- units
2022-03-11 06:33:11 +01:00
fuel:
type: integer
2022-03-10 04:16:02 +01:00
required:
- symbol
- frame
- reactor
- engine
- modules
- mounts
- registration
- integrity
- status
- location
- cargo
2022-03-11 06:33:11 +01:00
- fuel