Modified 2 files

This commit is contained in:
SpaceAdmiral 2022-03-11 17:44:45 -08:00
parent 58bb69768b
commit 8f09683e17
2 changed files with 95 additions and 26 deletions

19
models/Jump.yaml Normal file
View File

@ -0,0 +1,19 @@
description: ''
type: object
properties:
shipSymbol:
type: string
minLength: 1
destination:
type: string
minLength: 1
required:
- shipSymbol
- destination
x-examples:
example-1:
shipSymbol: 1D7FDA-1
destination: 00E0B1
examples:
- shipSymbol: 1D7FDA-1
destination: 00E0B1

View File

@ -539,7 +539,10 @@ paths:
required: true required: true
post: post:
summary: Survey a waypoint summary: Survey a waypoint
tags: [] tags:
- extract
- my
- ships
responses: responses:
'201': '201':
description: Created description: Created
@ -687,9 +690,27 @@ paths:
schema: schema:
description: '' description: ''
type: object type: object
x-examples:
example-1:
data:
jump:
shipSymbol: 1D7FDA-1
destination: 00E0B1
cooldown:
duration: 719
expiration: '2022-03-12T00:52:56.735Z'
properties: properties:
data: data:
type: object type: object
required:
- jump
- cooldown
properties:
jump:
type: object
required:
- shipSymbol
- destination
properties: properties:
shipSymbol: shipSymbol:
type: string type: string
@ -698,29 +719,55 @@ paths:
type: string type: string
minLength: 1 minLength: 1
cooldown: cooldown:
type: number $ref: ../models/Cooldown.yaml
required:
- shipSymbol
- destination
- cooldown
required: required:
- data - data
x-examples:
example-1:
data:
shipSymbol: CE392B-1
destination: 0b1802ba-da4d-4308-aefb-1e5065f98a53
cooldown: 43200
examples: examples:
Success: Success:
value: value:
data: data:
shipSymbol: CE392B-1 jump:
destination: 0b1802ba-da4d-4308-aefb-1e5065f98a53 shipSymbol: 1D7FDA-1
cooldown: 43200 destination: 00E0B1
cooldown:
duration: 719
expiration: '2022-03-12T00:52:56.735Z'
operationId: post-my-ships-shipSymbol-jump operationId: post-my-ships-shipSymbol-jump
security: security:
- AgentToken: [] - AgentToken: []
get:
summary: ''
operationId: get-my-ships-shipSymbol-jump
responses:
'200':
description: OK
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
data:
cooldown:
duration: 719
expiration: '2022-03-12T00:52:56.735Z'
properties:
data:
type: object
required:
- cooldown
properties:
cooldown:
$ref: ../models/Cooldown.yaml
required:
- data
security:
- AgentToken: []
tags:
- jump
- my
- ships
'/my/ships/{shipSymbol}/purchase': '/my/ships/{shipSymbol}/purchase':
parameters: parameters:
- schema: - schema:
@ -1168,7 +1215,10 @@ paths:
description: The ship symbol description: The ship symbol
post: post:
summary: Navigate ship summary: Navigate ship
tags: [] tags:
- my
- navigation
- ships
responses: responses:
'201': '201':
description: Created description: Created