api-docs/reference/SpaceTraders.json

2005 lines
56 KiB
JSON
Raw Normal View History

2022-09-18 17:49:41 +02:00
{
2022-10-28 06:09:27 +02:00
"components": {
"requestBodies": {},
"schemas": {},
"securitySchemes": {
"AgentToken": {
"description": "When you register a new agent you will be granted a private bearer token which grants authorization to use the API.",
"scheme": "bearer",
"type": "http"
}
}
},
2022-09-18 17:49:41 +02:00
"info": {
"contact": {
2022-10-28 06:09:27 +02:00
"email": "joel@spacetraders.io",
"name": "Joel Brubaker"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"description": "SpaceTraders is a multiplayer sci-fi strategy game where you acquire and manage a fleet of ships across a growing and dynamic universe.\n\nSimilar to games such as Eve Online, you work with or against other players to establish trade routes, chart new systems, mine precious ores, patrol for pirates, spy on factions, and discover hidden treasures.\n\nSpaceTraders as a game is unique in that it is entirely accessible through open and well-documented API endpoints.\n\nIf this sounds fun and interesting to you, please drop into our Discord and get to know the community. We are actively working on new clients, new ideas and sharing tips for how to play the game.\n\n\n```json http\n{\n \"method\": \"GET\",\n \"url\": \"https://api-server-2-0-0-rc-2-vxxwq5xqdq-uc.a.run.app\",\n}\n```",
2022-09-18 17:49:41 +02:00
"license": {
"name": "No Permission",
"url": "https://choosealicense.com/no-permission/"
},
2022-10-28 06:09:27 +02:00
"title": "SpaceTraders API",
"version": "2.0.0-rc.2"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"openapi": "3.0.0",
2022-09-18 17:49:41 +02:00
"paths": {
2022-10-28 06:09:27 +02:00
"/factions": {
"get": {
"description": "List all discovered factions in the game.",
"operationId": "get-factions",
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"items": {
"$ref": "../models/Faction.json"
},
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data",
"meta"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": ""
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"summary": "List Factions",
"tags": [
"factions"
]
}
},
"/factions/{factionSymbol}": {
"get": {
"description": "View the details of a faction.",
"operationId": "get-faction",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "../models/Faction.json"
}
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"required": [
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
}
},
"summary": "Get Faction",
"tags": [
"factions"
]
},
"parameters": [
{
"description": "The faction symbol",
"in": "path",
"name": "factionSymbol",
"required": true,
"schema": {
"default": "CGR",
"type": "string"
}
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
},
"/my/agent": {
"get": {
2022-10-28 06:09:27 +02:00
"description": "Fetch your agent's details.",
"operationId": "get-my-agent",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-10-22 18:05:01 +02:00
"$ref": "../models/Agent.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "My Agent Details",
"tags": [
"agents"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/contracts": {
2022-10-06 01:42:15 +02:00
"get": {
2022-10-28 06:09:27 +02:00
"description": "List all of your contracts.",
"operationId": "get-contracts",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-10-06 01:42:15 +02:00
"description": "",
"properties": {
"data": {
"items": {
2022-10-28 06:09:27 +02:00
"$ref": "../models/Contract.json"
},
"type": "array"
2022-10-06 01:42:15 +02:00
},
"meta": {
2022-10-22 18:05:01 +02:00
"$ref": "../models/Meta.json"
2022-09-18 17:49:41 +02:00
}
2022-10-06 01:42:15 +02:00
},
"required": [
"data",
"meta"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-17 02:06:16 +02:00
],
2022-10-28 06:09:27 +02:00
"summary": "List Contracts",
2022-10-17 02:06:16 +02:00
"tags": [
2022-10-28 06:09:27 +02:00
"contracts"
2022-09-18 17:49:41 +02:00
]
2022-10-28 06:09:27 +02:00
}
},
"/my/contracts/{contractId}": {
"get": {
"description": "Get the details of a contract by ID.",
"operationId": "get-contract",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"$ref": "../models/Contract.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Get Contract",
"tags": [
"contracts"
]
},
"parameters": [
{
"description": "The contract ID",
"in": "path",
"name": "contractId",
"required": true,
"schema": {
"type": "string"
2022-09-18 17:49:41 +02:00
}
2022-10-06 01:42:15 +02:00
}
2022-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"/my/contracts/{contractId}/accept": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"in": "path",
"name": "contractId",
"required": true,
2022-09-18 17:49:41 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
],
2022-10-28 06:09:27 +02:00
"post": {
"description": "Accept a contract.",
"operationId": "accept-contract",
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-06 01:42:15 +02:00
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"contract": {
"$ref": "../models/Contract.json"
}
},
"required": [
"contract",
"agent"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-28 06:09:27 +02:00
],
"summary": "Accept Contract",
"tags": [
"contracts"
2022-10-06 01:42:15 +02:00
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/contracts/{contractId}/deliver": {
2022-10-17 02:12:56 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The ID of the contract",
"in": "path",
"name": "contractId",
"required": true,
2022-10-17 02:12:56 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-10-17 02:12:56 +02:00
}
],
2022-10-28 06:09:27 +02:00
"post": {
"description": "Deliver cargo on a given contract.",
"operationId": "deliver-contract",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"shipSymbol": {
"type": "string"
},
"tradeSymbol": {
"type": "string"
},
"units": {
"type": "integer"
}
},
"required": [
"shipSymbol",
"tradeSymbol",
"units"
],
"type": "object"
}
}
}
},
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-10-17 02:12:56 +02:00
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"properties": {
"contract": {
"$ref": "../models/Contract.json"
},
"shipCargo": {
"$ref": "../models/ShipCargo.json"
}
},
"required": [
"contract",
"shipCargo"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
2022-10-17 02:12:56 +02:00
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-10-17 02:12:56 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-28 06:09:27 +02:00
],
"summary": "Deliver Contract",
"tags": [
"contracts"
2022-10-06 01:42:15 +02:00
]
2022-10-17 02:12:56 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/contracts/{contractId}/fulfill": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The ID of the contract",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "contractId",
2022-10-06 01:42:15 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-06 01:42:15 +02:00
}
2022-10-17 02:12:56 +02:00
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Fulfill a contract",
"operationId": "fulfill-contract",
2022-10-17 02:12:56 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"200": {
2022-10-17 02:12:56 +02:00
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
2022-10-28 06:09:27 +02:00
"agent": {
"$ref": "../models/Agent.json"
2022-10-17 02:12:56 +02:00
},
2022-10-28 06:09:27 +02:00
"contract": {
"$ref": "../models/Contract.json"
2022-10-17 02:12:56 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"contract",
"agent"
],
"type": "object"
2022-10-17 02:12:56 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-10-17 02:12:56 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-10-17 02:12:56 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Fulfill Contract",
"tags": [
"contracts"
]
2022-10-17 02:12:56 +02:00
}
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"/my/ships": {
"get": {
"description": "Retrieve all of your ships.",
"operationId": "get-my-ships",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"items": {
"$ref": "../models/Ship.json"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
2022-10-28 06:09:27 +02:00
"data",
"meta"
2022-09-18 17:49:41 +02:00
],
2022-10-28 06:09:27 +02:00
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "List Ships",
"tags": [
"fleet"
]
},
"post": {
"description": "Purchase a ship",
"operationId": "purchase-ship",
2022-09-18 17:49:41 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-10-28 06:09:27 +02:00
"id": {
"description": "The ID of the ship you want to purchase.",
2022-09-18 17:49:41 +02:00
"type": "string"
}
2022-10-28 06:09:27 +02:00
},
"required": [
"id"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
}
2022-10-28 06:09:27 +02:00
},
2022-10-17 02:12:56 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"201": {
2022-10-17 02:12:56 +02:00
"content": {
"application/json": {
"schema": {
2022-10-28 06:09:27 +02:00
"description": "",
2022-10-17 02:12:56 +02:00
"properties": {
"data": {
"properties": {
2022-10-28 06:09:27 +02:00
"agent": {
"$ref": "../models/Agent.json"
},
"ship": {
"$ref": "../models/Ship.json"
2022-10-17 02:12:56 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"ship",
"agent"
],
"type": "object"
2022-10-17 02:12:56 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "OK"
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Purchase Ship",
"tags": [
"fleet"
]
}
},
"/my/ships/{shipSymbol}": {
"get": {
"description": "Retrieve the details of your ship.",
"operationId": "get-my-ship",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"$ref": "../models/Ship.json"
}
},
"required": [
"data"
],
"type": "object",
"x-examples": {
"example-1": {
2022-10-17 02:12:56 +02:00
"data": {
2022-10-28 06:09:27 +02:00
"cargo": [],
"crew": null,
"engine": "ENGINE_SOLAR_PROPULSION",
"frame": "FRAME_DRONE",
"integrity": {
"engine": 1,
"frame": 1,
"reactor": 1
},
"location": "X1-OE-PM",
"modules": [
"MODULE_CARGO_HOLD"
],
"mounts": [
"MOUNT_MINING_LASER_I"
],
"officers": null,
"reactor": "REACTOR_SOLAR_I",
"registration": {
"agentSymbol": "653298",
"factionSymbol": "COMMERCE_REPUBLIC",
"fee": 100,
"role": "EXCAVATOR"
},
"status": "DOCKED",
"symbol": "653298-1"
2022-10-17 02:12:56 +02:00
}
}
}
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-10-17 02:12:56 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Get Ship",
2022-10-17 02:12:56 +02:00
"tags": [
"fleet"
]
},
"parameters": [
{
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-10-17 02:12:56 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-17 02:12:56 +02:00
}
]
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/chart": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The symbol of the ship",
2022-09-18 17:49:41 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-09-18 17:49:41 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Command a ship to chart the current waypoint.\n\nWaypoints in the universe are uncharted by default. These locations will not show up in the API until they have been charted by a ship.\n\nCharting a location will record your agent as the one who created the chart.",
"operationId": "create-chart",
2022-09-18 17:49:41 +02:00
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
2022-10-28 06:09:27 +02:00
"properties": {
"data": {
"properties": {
"chart": {
"$ref": "../models/Chart.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"chart"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"type": "object"
}
}
},
"description": "Created"
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Create Chart",
"tags": [
"fleet"
]
}
},
"/my/ships/{shipSymbol}/cooldown": {
"get": {
2022-10-28 06:18:44 +02:00
"description": "Retrieve the details of your ship's reactor cooldown. Some actions such as activating your jump drive, scanning, or extracting resources taxes your reactor and results in a cooldown.\n\nYour ship cannot perform additional actions until your cooldown has expired. The duration of your cooldown is relative to the power consumption of the related modules or mounts for the action taken.\n\nResponse returns a 204 status code (no-content) when the ship has no cooldown.",
2022-10-28 06:09:27 +02:00
"operationId": "get-ship-cooldown",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"$ref": "../models/Cooldown.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-10-28 06:18:44 +02:00
},
"204": {
"description": "No cooldown"
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"security": [
{
"AgentToken": []
}
],
"summary": "Get Ship Cooldown",
"tags": [
"fleet"
]
},
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
},
"/my/ships/{shipSymbol}/deploy": {
"parameters": [
{
"description": "The ship symbol",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"description": "Use this endpoint to deploy a Communications Relay to a waypoint. A waypoint with a communications relay will allow agents to retrieve price information from the market. Without a relay, agents must send a ship to a market to retrieve price information.\n\nCommunication relays can be purchased from a market that exports `COMM_RELAY_I`.",
"operationId": "deploy-asset",
2022-09-18 17:49:41 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-10-29 20:23:05 +02:00
"symbol": {
2022-10-28 06:09:27 +02:00
"type": "string"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-10-29 20:23:05 +02:00
"symbol"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
}
},
"responses": {
"204": {
"description": "OK"
}
2022-09-18 17:49:41 +02:00
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Deploy Asset",
2022-09-18 17:49:41 +02:00
"tags": [
2022-10-17 02:06:16 +02:00
"fleet"
2022-09-18 17:49:41 +02:00
]
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/dock": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The symbol of the ship",
"in": "path",
"name": "shipSymbol",
"required": true,
2022-09-18 17:49:41 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Attempt to dock your ship at it's current location. Docking will only succeed if the waypoint is a dockable location, and your ship is capable of docking at the time of the request.\n\nThe endpoint is idempotent - successive calls will succeed even if the ship is already docked.",
"operationId": "dock-ship",
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
2022-10-28 06:09:27 +02:00
"nav": {
"$ref": "../models/ShipNav.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"nav"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "The ship has successfully docked at it's current location."
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Dock Ship",
2022-09-18 17:49:41 +02:00
"tags": [
2022-10-17 02:06:16 +02:00
"fleet"
2022-09-18 17:49:41 +02:00
]
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/extract": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The ship symbol",
"in": "path",
"name": "shipSymbol",
"required": true,
2022-09-18 17:49:41 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Extract resources from the waypoint into your ship. Send a survey as the payload to target specific yields. The entire survey must be sent as it contains a signature that the backend verifies.",
"operationId": "extract-resources",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"survey": {
"$ref": "../models/Survey.json"
}
},
"required": [
"survey"
],
"type": "object"
}
}
},
"description": ""
},
2022-09-18 17:49:41 +02:00
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
"cooldown": {
2022-10-16 06:34:08 +02:00
"$ref": "../models/Cooldown.json"
2022-10-28 06:09:27 +02:00
},
"extraction": {
"$ref": "../models/Extraction.json"
2022-09-18 17:49:41 +02:00
}
2022-10-22 18:05:01 +02:00
},
"required": [
2022-10-28 06:09:27 +02:00
"extraction",
2022-10-22 18:05:01 +02:00
"cooldown"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Extract Resources",
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/jettison": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"in": "path",
"name": "shipSymbol",
"required": true,
2022-09-18 17:49:41 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Jettison cargo from your ship's cargo hold.",
"operationId": "jettison",
2022-09-18 17:49:41 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-10-29 20:23:05 +02:00
"symbol": {
2022-09-18 17:49:41 +02:00
"type": "string"
},
"units": {
2022-10-28 06:09:27 +02:00
"minimum": 1,
2022-09-18 17:49:41 +02:00
"type": "integer"
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-10-29 20:23:05 +02:00
"symbol",
2022-10-28 06:09:27 +02:00
"units"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
}
2022-10-28 06:09:27 +02:00
},
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-22 18:05:01 +02:00
"properties": {
2022-10-28 06:09:27 +02:00
"cargo": {
"$ref": "../models/ShipCargo.json"
2022-10-22 18:05:01 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"cargo"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Jettison Cargo",
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/jump": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"in": "path",
"name": "shipSymbol",
"required": true,
2022-09-18 17:49:41 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Jump your ship from one system to another.",
"operationId": "jump-ship",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"destination": {
"description": "The system symbol to jump to.",
"type": "string"
}
},
"required": [
"destination"
],
"type": "object"
}
}
}
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
2022-10-28 06:09:27 +02:00
"cooldown": {
"$ref": "../models/Cooldown.json"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"nav": {
"$ref": "../models/ShipNav.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
2022-10-28 06:09:27 +02:00
"route",
"cooldown"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
],
2022-10-28 06:09:27 +02:00
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-28 06:09:27 +02:00
],
"summary": "Jump Ship",
"tags": [
"fleet"
2022-09-18 17:49:41 +02:00
]
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/navigate": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The ship symbol",
2022-09-18 17:49:41 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-09-18 17:49:41 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Navigate to a target destination. The destination must be located within the same system as the ship. Navigating will consume the necessary fuel and supplies from the ship's manifest, and will pay out crew wages from the agent's account.\n\nThe returned response will detail the route information including the expected time of arrival. Most ship actions are unavailable until the ship has arrived at it's destination.\n\nFor faster-than-light travel between systems, see the ship's jump action.",
"operationId": "navigate-ship",
2022-09-18 17:49:41 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-10-28 06:09:27 +02:00
"waypointSymbol": {
"description": "The target destination.",
2022-09-18 17:49:41 +02:00
"type": "string"
}
},
"required": [
2022-10-28 06:09:27 +02:00
"waypointSymbol"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
},
2022-10-28 06:09:27 +02:00
"description": ""
},
2022-09-18 17:49:41 +02:00
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"properties": {
"fuel": {
"$ref": "../models/ShipFuel.json"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"nav": {
"$ref": "../models/ShipNav.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"nav",
"fuel"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "The successful transit information including the route details and changes to ship fuel, supplies, and crew wages paid. The route includes the expected time of arrival."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Navigate Ship",
"tags": [
"fleet"
]
2022-10-06 01:42:15 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/orbit": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The symbol of the ship",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-06 01:42:15 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Attempt to move your ship into orbit at it's current location. The request will only succeed if your ship is capable of moving into orbit at the time of the request.\n\nThe endpoint is idempotent - successive calls will succeed even if the ship is already in orbit.",
"operationId": "orbit-ship",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-06 01:42:15 +02:00
"properties": {
2022-10-28 06:09:27 +02:00
"nav": {
"$ref": "../models/ShipNav.json"
2022-10-06 01:42:15 +02:00
}
2022-10-28 06:09:27 +02:00
},
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "The ship has successfully moved into orbit at it's current location."
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-06 01:42:15 +02:00
],
2022-10-28 06:09:27 +02:00
"summary": "Orbit Ship",
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/purchase": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-06 01:42:15 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Purchase cargo.",
"operationId": "purchase-cargo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-10-29 20:23:05 +02:00
"symbol": {
2022-10-28 06:09:27 +02:00
"type": "string"
},
"units": {
"type": "integer"
}
},
"required": [
2022-10-29 20:23:05 +02:00
"symbol",
2022-10-28 06:09:27 +02:00
"units"
],
"type": "object"
}
}
}
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
2022-10-28 06:09:27 +02:00
"agent": {
"$ref": "../models/Agent.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/MarketTransaction.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"cargo",
"transaction",
"agent"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Purchase Cargo",
2022-10-06 01:42:15 +02:00
"tags": [
2022-10-17 02:06:16 +02:00
"fleet"
2022-10-06 01:42:15 +02:00
]
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/refuel": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"description": "Refuel your ship from the local market.",
"operationId": "refuel-ship",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"fuel": {
"$ref": "../models/ShipFuel.json"
}
},
"required": [
"agent",
"fuel"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
"required": [
2022-10-28 06:09:27 +02:00
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Refuel Ship",
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/scan": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-09-18 17:49:41 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-09-18 17:49:41 +02:00
}
],
2022-10-28 06:09:27 +02:00
"post": {
"description": "Activate your ship's sensor arrays to scan for arriving ships, departing ships, system information, or waypoint information. Send a scan mode to select the type of scan performed by your ship.",
"operationId": "create-ship-scan",
"requestBody": {
"content": {
"application/json": {
"examples": {
"Approaching Ships": {
"value": {
"mode": "APPROACHING_SHIPS"
}
},
"Departing Ships": {
"value": {
"mode": "DEPARTING_SHIPS"
}
}
},
"schema": {
"properties": {
"mode": {
"enum": [
"APPROACHING_SHIPS",
"DEPARTING_SHIPS",
"WAYPOINT"
],
"type": "string"
}
},
"required": [
"mode"
],
"type": "object"
}
}
},
"description": ""
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
2022-10-28 06:09:27 +02:00
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"oneOf": [
{
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"ships": {
"items": {
"$ref": "../models/ScannedShip.json"
},
"type": "array"
}
},
"required": [
"ships",
"cooldown"
]
},
{
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"waypoint": {
"$ref": "../models/Waypoint.json"
}
},
"required": [
"cooldown",
"waypoint"
]
}
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Scan",
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/sell": {
2022-10-17 02:06:16 +02:00
"parameters": [
{
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "shipSymbol",
2022-10-17 02:06:16 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-17 02:06:16 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "Sell cargo from your ship's hold to the local market.",
"operationId": "sell-cargo",
2022-10-17 02:06:16 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-10-29 20:23:05 +02:00
"symbol": {
2022-10-17 02:06:16 +02:00
"type": "string"
},
"units": {
"type": "integer"
}
},
"required": [
2022-10-29 20:23:05 +02:00
"symbol",
2022-10-28 06:09:27 +02:00
"units"
],
"type": "object"
2022-10-17 02:06:16 +02:00
}
}
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"description": ""
},
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-10-28 06:09:27 +02:00
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/MarketTransaction.json"
}
},
"required": [
"agent",
"cargo",
"transaction"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Sell Cargo",
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/my/ships/{shipSymbol}/survey": {
2022-10-17 02:23:20 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"in": "path",
"name": "shipSymbol",
"required": true,
2022-10-17 02:23:20 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-10-17 02:23:20 +02:00
}
],
"post": {
2022-10-28 06:09:27 +02:00
"description": "If you want to target specific yields for an extraction, you can survey a waypoint, such as an asteroid field, and send the survey in the body of the extract request. Each survey may have multiple deposits, and if a symbol shows up more than once, that indicates a higher chance of extracting that resource.\n\nYour ship will enter a cooldown between consecutive survey requests. Surveys will eventually expire after a period of time. Multiple ships can use the same survey for extraction.",
"operationId": "survey-waypoint",
2022-10-17 02:23:20 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"201": {
2022-10-17 02:23:20 +02:00
"content": {
"application/json": {
"schema": {
2022-10-28 06:09:27 +02:00
"description": "",
2022-10-17 02:23:20 +02:00
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"surveys": {
"items": {
"$ref": "../models/Survey.json"
},
"type": "array"
}
},
"required": [
"surveys",
"cooldown"
],
"type": "object"
2022-10-17 02:23:20 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data"
],
"type": "object"
2022-10-17 02:23:20 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "Created"
2022-10-17 02:23:20 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Survey Waypoint",
"tags": [
"fleet"
]
2022-10-17 02:23:20 +02:00
}
},
2022-10-28 06:09:27 +02:00
"/register": {
"post": {
"description": "Creates a new agent and ties it to a temporary Account. Use `COMMERCE_REPUBLIC` as your starting faction if you don't know any other factions to choose from.\n\nThe agent symbol is a 4-8 character string that will represent your agent. This symbol will prefix the symbol of every ship you own. Agent symbols will be cast to all uppercase characters.\n\nA new agent will be granted an authorization token, a contract with their starting faction, a command ship with a jump drive, and one hundred thousand credits.\n\n> #### Keep your token safe and secure\n>\n> Save your token during the alpha phase. There is no way to regenerate this token without starting a new agent. In the future you will be able to generate and manage your tokens from the SpaceTraders website.\n\nYou can accept your contract using the `/my/contracts/{contractId}/accept` endpoint. You will want to navigate your command ship to a nearby asteroid field waypoint, and execute the `/my/ships/{shipSymbol}/accept` endpoint to mine various types of ores and minerals.\n\nReturn to the contract destination and execute the `/my/ships/{shipSymbol}/deliver` endpoint to deposit goods into the contract.\n\nWhen your contract is fulfilled, you can call `/my/contracts/{contractId}/fulfill` to retrieve payment.",
"operationId": "register",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"faction": {
"default": "COMMERCE_REPUBLIC",
"description": "The faction you choose determines your headquarters.",
"type": "string"
},
"symbol": {
"description": "How other agents will see your ships and information.",
"example": "BADGER",
"maxLength": 8,
"minLength": 4,
"type": "string"
}
},
"required": [
"symbol",
"faction"
],
"type": "object"
}
}
},
"description": ""
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-10-28 06:09:27 +02:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
2022-10-28 06:09:27 +02:00
"properties": {
"data": {
"properties": {
"agent": {
"$ref": "../models/Agent.json"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"contract": {
"$ref": "../models/Contract.json"
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"faction": {
"$ref": "../models/Faction.json"
},
"ship": {
"$ref": "../models/Ship.json"
},
"token": {
"description": "A Bearer token for accessing secured API endpoints.",
"type": "string"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"token",
"agent",
"faction",
"contract",
"ship"
2022-09-18 17:49:41 +02:00
],
2022-10-28 06:09:27 +02:00
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"required": [
"data"
],
"type": "object"
}
}
},
"description": "OK"
}
},
"summary": "Register New Agent",
"tags": []
}
},
"/systems": {
"get": {
"description": "Return a list of all systems.",
"operationId": "get-systems",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
"items": {
2022-10-22 18:05:01 +02:00
"$ref": "../models/System.json"
2022-10-28 06:09:27 +02:00
},
"type": "array"
2022-09-18 17:49:41 +02:00
},
"meta": {
2022-10-22 18:05:01 +02:00
"$ref": "../models/Meta.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data",
"meta"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
2022-10-28 06:09:27 +02:00
{
"AgentToken": []
}
],
"summary": "List Systems",
2022-09-18 17:49:41 +02:00
"tags": [
"systems"
2022-10-28 06:09:27 +02:00
]
}
},
"/systems/{systemSymbol}": {
"get": {
"description": "Get the details of a system.",
"operationId": "get-system",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-22 18:05:01 +02:00
"$ref": "../models/System.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-28 06:09:27 +02:00
],
"summary": "Get System",
"tags": [
"systems"
2022-09-18 17:49:41 +02:00
]
2022-10-28 06:09:27 +02:00
},
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The system symbol",
2022-09-18 17:49:41 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "systemSymbol",
2022-09-18 17:49:41 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"default": "X1-OE",
"type": "string"
}
2022-10-06 01:42:15 +02:00
}
2022-10-28 06:09:27 +02:00
]
},
"/systems/{systemSymbol}/waypoints": {
2022-10-06 01:42:15 +02:00
"get": {
2022-10-28 06:09:27 +02:00
"description": "Fetch all of the waypoints for a given system. System must be charted or a ship must be present to return waypoint details.",
"operationId": "get-system-waypoints",
2022-10-06 01:42:15 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"items": {
"$ref": "../models/Waypoint.json"
2022-10-28 06:09:27 +02:00
},
"type": "array"
2022-10-06 01:42:15 +02:00
},
"meta": {
2022-10-22 18:05:01 +02:00
"$ref": "../models/Meta.json"
2022-10-06 01:42:15 +02:00
}
},
"required": [
"data",
"meta"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "List Waypoints",
"tags": [
"systems"
]
},
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The system symbol",
2022-09-18 17:49:41 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "systemSymbol",
2022-09-18 17:49:41 +02:00
"required": true,
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
]
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}": {
2022-09-18 17:49:41 +02:00
"get": {
2022-10-28 06:09:27 +02:00
"description": "View the details of a waypoint.",
"operationId": "get-waypoint",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-16 06:34:08 +02:00
"$ref": "../models/Waypoint.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
2022-10-28 06:09:27 +02:00
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-10-28 06:09:27 +02:00
"summary": "Get Waypoint",
"tags": [
"systems"
]
},
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The system symbol",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "systemSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
},
{
"description": "The waypoint symbol",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "waypointSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-06 01:42:15 +02:00
}
2022-10-28 06:09:27 +02:00
]
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/market": {
2022-10-06 01:42:15 +02:00
"get": {
2022-10-28 06:09:27 +02:00
"description": "Retrieve imports, exports and exchange data from a marketplace. Imports can be sold, exports can be purchased, and exchange trades can be purchased or sold.\n\nMarket data is only available if you have a ship at the location, or the location is charted and has a communications relay deployed.\n\nSee `/my/ships/{shipSymbol}/deploy` for deploying relays at a location.",
"operationId": "get-market",
2022-10-06 01:42:15 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"$ref": "../models/Market.json"
2022-10-06 01:42:15 +02:00
}
},
"required": [
2022-10-28 06:09:27 +02:00
"data"
],
"type": "object"
2022-10-17 01:53:32 +02:00
}
2022-10-06 01:42:15 +02:00
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-10-06 01:42:15 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-17 02:06:16 +02:00
],
2022-10-28 06:09:27 +02:00
"summary": "Get Market",
2022-10-17 02:06:16 +02:00
"tags": [
"systems"
2022-10-06 01:42:15 +02:00
]
2022-10-28 06:09:27 +02:00
},
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The system symbol",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "systemSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
},
{
"description": "The waypoint symbol",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "waypointSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
}
2022-10-06 01:42:15 +02:00
}
2022-10-28 06:09:27 +02:00
]
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/shipyard": {
2022-10-06 01:42:15 +02:00
"get": {
2022-10-28 06:09:27 +02:00
"description": "Get the shipyard for a waypoint.",
"operationId": "get-shipyard",
2022-10-06 01:42:15 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-10-28 06:09:27 +02:00
"$ref": "../models/Shipyard.json"
2022-10-06 01:42:15 +02:00
}
},
"required": [
"data"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-10-06 01:42:15 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "OK"
2022-10-06 01:42:15 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-17 02:06:16 +02:00
],
2022-10-28 06:09:27 +02:00
"summary": "Get Shipyard",
2022-10-17 02:06:16 +02:00
"tags": [
"systems"
2022-10-06 01:42:15 +02:00
]
2022-10-28 06:09:27 +02:00
},
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"description": "The system symbol",
"in": "path",
"name": "systemSymbol",
"required": true,
2022-10-06 01:42:15 +02:00
"schema": {
2022-10-28 06:09:27 +02:00
"type": "string"
}
},
{
"description": "The waypoint symbol",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-10-28 06:09:27 +02:00
"name": "waypointSymbol",
2022-10-06 01:42:15 +02:00
"required": true,
2022-10-28 06:09:27 +02:00
"schema": {
"type": "string"
2022-10-16 06:34:08 +02:00
}
}
2022-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
}
},
2022-10-28 06:09:27 +02:00
"security": [
{
"AgentToken": []
}
],
"servers": [
{
"description": "v2.0.0-rc.2",
"url": "https://api-server-2-0-0-rc-2-vxxwq5xqdq-uc.a.run.app"
}
],
2022-09-18 17:49:41 +02:00
"tags": [
2022-10-06 01:42:15 +02:00
{
2022-10-28 06:09:27 +02:00
"description": "Factions",
2022-10-06 01:42:15 +02:00
"name": "factions"
},
2022-09-18 17:49:41 +02:00
{
2022-10-28 06:09:27 +02:00
"description": "Fleet",
2022-10-17 02:06:16 +02:00
"name": "fleet"
2022-09-18 17:49:41 +02:00
},
{
2022-10-28 06:09:27 +02:00
"description": "Contracts",
2022-09-18 17:49:41 +02:00
"name": "contracts"
},
{
2022-10-28 06:09:27 +02:00
"description": "Systems",
2022-09-18 17:49:41 +02:00
"name": "systems"
},
{
2022-10-28 06:09:27 +02:00
"description": "Agents",
2022-10-17 02:06:16 +02:00
"name": "agents"
2022-09-18 17:49:41 +02:00
}
]
}