mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-11-14 22:30:51 +01:00
Modified 2 files
This commit is contained in:
parent
4303299987
commit
aef59ec6cc
@ -33,6 +33,30 @@ x-examples:
|
|||||||
cargo:
|
cargo:
|
||||||
- tradeSymbol: IRON_ORE
|
- tradeSymbol: IRON_ORE
|
||||||
units: 100
|
units: 100
|
||||||
|
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: []
|
||||||
properties:
|
properties:
|
||||||
symbol:
|
symbol:
|
||||||
type: string
|
type: string
|
||||||
@ -107,6 +131,8 @@ properties:
|
|||||||
required:
|
required:
|
||||||
- tradeSymbol
|
- tradeSymbol
|
||||||
- units
|
- units
|
||||||
|
fuel:
|
||||||
|
type: number
|
||||||
required:
|
required:
|
||||||
- symbol
|
- symbol
|
||||||
- frame
|
- frame
|
||||||
@ -119,3 +145,4 @@ required:
|
|||||||
- status
|
- status
|
||||||
- location
|
- location
|
||||||
- cargo
|
- cargo
|
||||||
|
- fuel
|
||||||
|
@ -1716,6 +1716,77 @@ paths:
|
|||||||
security:
|
security:
|
||||||
- AgentToken: []
|
- AgentToken: []
|
||||||
description: List all of your contracts.
|
description: List all of your contracts.
|
||||||
|
'/my/contracts/{contractId}':
|
||||||
|
parameters:
|
||||||
|
- schema:
|
||||||
|
type: string
|
||||||
|
name: contractId
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The contract ID
|
||||||
|
get:
|
||||||
|
summary: Get contract details
|
||||||
|
tags:
|
||||||
|
- my
|
||||||
|
- contracts
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: ../models/Contract.yaml
|
||||||
|
examples:
|
||||||
|
Success:
|
||||||
|
value:
|
||||||
|
data:
|
||||||
|
id: cl0hok38t0014ks0jnoy8o5vh
|
||||||
|
faction: COMMERCE_REPUBLIC
|
||||||
|
type: PROCUREMENT
|
||||||
|
terms:
|
||||||
|
deadline: '2022-03-11T05:16:59.113Z'
|
||||||
|
payment:
|
||||||
|
onAccepted: 20000
|
||||||
|
onFulfilled: 100000
|
||||||
|
deliver:
|
||||||
|
- tradeSymbol: IRON_ORE
|
||||||
|
destination: X1-OE-PM
|
||||||
|
units: 10000
|
||||||
|
fulfilled: 0
|
||||||
|
accepted: false
|
||||||
|
fulfilled: false
|
||||||
|
expiresAt: '2022-03-09T05:16:59.112Z'
|
||||||
|
operationId: get-my-contracts-contractId
|
||||||
|
security:
|
||||||
|
- AgentToken: []
|
||||||
|
description: Get the details of a contract by ID.
|
||||||
|
'/my/contracts/{contractId}/accept':
|
||||||
|
parameters:
|
||||||
|
- schema:
|
||||||
|
type: string
|
||||||
|
name: contractId
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
post:
|
||||||
|
summary: Accept a contract
|
||||||
|
tags: []
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: Accepted
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: ../models/Contract.yaml
|
||||||
|
operationId: post-my-contracts-contractId-accept
|
||||||
|
security:
|
||||||
|
- AgentToken: []
|
||||||
|
description: Accept a contract.
|
||||||
'/systems/{systemSymbol}':
|
'/systems/{systemSymbol}':
|
||||||
parameters:
|
parameters:
|
||||||
- schema:
|
- schema:
|
||||||
|
Loading…
Reference in New Issue
Block a user