Modified reference/SpaceTraders.yaml

This commit is contained in:
SpaceAdmiral 2022-03-11 18:18:37 -08:00
parent 4420eea2ca
commit c5326a0c77

View File

@ -28,7 +28,7 @@ servers:
paths: paths:
/agents: /agents:
post: post:
summary: Register a new agent summary: Register New Agent
tags: tags:
- agents - agents
responses: responses:
@ -149,7 +149,7 @@ paths:
description: '' description: ''
/my/agent: /my/agent:
get: get:
summary: Get your agent details summary: My Agent Details
tags: tags:
- agents - agents
responses: responses:
@ -1714,7 +1714,7 @@ paths:
required: true required: true
description: The contract ID description: The contract ID
get: get:
summary: View Contract summary: Contract Details
tags: tags:
- contracts - contracts
responses: responses:
@ -1776,60 +1776,6 @@ paths:
security: security:
- AgentToken: [] - AgentToken: []
description: Accept a contract. description: Accept a contract.
'/systems/{systemSymbol}':
parameters:
- schema:
type: string
default: X1-OE
name: systemSymbol
in: path
required: true
description: The system symbol
get:
summary: View System
tags:
- systems
responses:
'200':
description: OK
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
data:
symbol: X1-ZZ
sector: X1
type: BLUE_STAR
x: -2
'y': 9
waypoints: []
factions: []
charted: false
chartedBy: null
properties:
data:
$ref: ../models/System.yaml
required:
- data
examples:
Success:
value:
data:
symbol: X1-ZZ
sector: X1
type: BLUE_STAR
x: -2
'y': 9
waypoints: []
factions: []
charted: false
chartedBy: null
operationId: get-systems-systemSymbol
security:
- AgentToken: []
/systems: /systems:
get: get:
summary: List Systems summary: List Systems
@ -1926,6 +1872,60 @@ paths:
description: Return a list of all systems. description: Return a list of all systems.
security: security:
- AgentToken: [] - AgentToken: []
'/systems/{systemSymbol}':
parameters:
- schema:
type: string
default: X1-OE
name: systemSymbol
in: path
required: true
description: The system symbol
get:
summary: View System
tags:
- systems
responses:
'200':
description: OK
content:
application/json:
schema:
description: ''
type: object
x-examples:
example-1:
data:
symbol: X1-ZZ
sector: X1
type: BLUE_STAR
x: -2
'y': 9
waypoints: []
factions: []
charted: false
chartedBy: null
properties:
data:
$ref: ../models/System.yaml
required:
- data
examples:
Success:
value:
data:
symbol: X1-ZZ
sector: X1
type: BLUE_STAR
x: -2
'y': 9
waypoints: []
factions: []
charted: false
chartedBy: null
operationId: get-systems-systemSymbol
security:
- AgentToken: []
tags: tags:
- name: ships - name: ships
- name: markets - name: markets