mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-11-14 22:30:51 +01:00
Modified reference/SpaceTraders.yaml
This commit is contained in:
parent
271bc3115f
commit
4420eea2ca
@ -404,7 +404,7 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
description: The ship symbol
|
description: The ship symbol
|
||||||
post:
|
post:
|
||||||
summary: Extraction
|
summary: Extract Resources
|
||||||
tags:
|
tags:
|
||||||
- ships
|
- ships
|
||||||
responses:
|
responses:
|
||||||
@ -799,6 +799,49 @@ paths:
|
|||||||
operationId: post-my-ships-shipSymbol-purchase
|
operationId: post-my-ships-shipSymbol-purchase
|
||||||
security:
|
security:
|
||||||
- AgentToken: []
|
- AgentToken: []
|
||||||
|
'/my/ships/{shipSymbol}/sell':
|
||||||
|
parameters:
|
||||||
|
- schema:
|
||||||
|
type: string
|
||||||
|
name: shipSymbol
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
post:
|
||||||
|
summary: Sell Cargo
|
||||||
|
tags:
|
||||||
|
- ships
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
description: ''
|
||||||
|
type: object
|
||||||
|
x-examples:
|
||||||
|
example-1:
|
||||||
|
data:
|
||||||
|
waypointSymbol: X1-OE-PM
|
||||||
|
tradeSymbol: SILICON
|
||||||
|
credits: 144
|
||||||
|
units: -1
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: ../models/Trade.yaml
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
examples:
|
||||||
|
Success:
|
||||||
|
value:
|
||||||
|
data:
|
||||||
|
waypointSymbol: X1-OE-PM
|
||||||
|
tradeSymbol: SILICON
|
||||||
|
credits: 144
|
||||||
|
units: -1
|
||||||
|
operationId: post-my-ships-shipSymbol-sell
|
||||||
|
description: Sell cargo from your ship's hold to the local market.
|
||||||
|
security:
|
||||||
|
- AgentToken: []
|
||||||
'/my/ships/{shipSymbol}/refuel':
|
'/my/ships/{shipSymbol}/refuel':
|
||||||
parameters:
|
parameters:
|
||||||
- schema:
|
- schema:
|
||||||
@ -807,7 +850,7 @@ paths:
|
|||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
post:
|
post:
|
||||||
summary: Refuel
|
summary: Refuel Ship
|
||||||
tags:
|
tags:
|
||||||
- ships
|
- ships
|
||||||
responses:
|
responses:
|
||||||
@ -1079,47 +1122,29 @@ paths:
|
|||||||
value:
|
value:
|
||||||
mode: APPROACHING_SHIPS
|
mode: APPROACHING_SHIPS
|
||||||
description: ''
|
description: ''
|
||||||
'/my/ships/{shipSymbol}/sell':
|
get:
|
||||||
parameters:
|
summary: Scan Cooldown
|
||||||
- schema:
|
operationId: get-my-ships-shipSymbol-scan
|
||||||
type: string
|
|
||||||
name: shipSymbol
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
post:
|
|
||||||
summary: Sell Cargo
|
|
||||||
tags:
|
|
||||||
- ships
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
description: ''
|
|
||||||
type: object
|
type: object
|
||||||
x-examples:
|
|
||||||
example-1:
|
|
||||||
data:
|
|
||||||
waypointSymbol: X1-OE-PM
|
|
||||||
tradeSymbol: SILICON
|
|
||||||
credits: 144
|
|
||||||
units: -1
|
|
||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
$ref: ../models/Trade.yaml
|
type: object
|
||||||
required:
|
properties:
|
||||||
- data
|
cooldown:
|
||||||
|
$ref: ../models/Cooldown.yaml
|
||||||
examples:
|
examples:
|
||||||
Success:
|
Success:
|
||||||
value:
|
value:
|
||||||
data:
|
data:
|
||||||
waypointSymbol: X1-OE-PM
|
cooldown:
|
||||||
tradeSymbol: SILICON
|
duration: 59
|
||||||
credits: 144
|
expiration: '2022-03-12T00:42:44.220Z'
|
||||||
units: -1
|
|
||||||
operationId: post-my-ships-shipSymbol-sell
|
|
||||||
description: Sell cargo from your ship's hold to the local market.
|
|
||||||
security:
|
security:
|
||||||
- AgentToken: []
|
- AgentToken: []
|
||||||
'/my/ships/{shipSymbol}/navigate':
|
'/my/ships/{shipSymbol}/navigate':
|
||||||
|
Loading…
Reference in New Issue
Block a user