api-docs/reference/SpaceTraders.json

1989 lines
55 KiB
JSON
Raw Normal View History

2022-09-18 17:49:41 +02:00
{
2022-11-16 06:55:50 +01:00
"openapi": "3.0.0",
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-11-16 06:55:50 +01:00
"security": [
{
"AgentToken": []
}
],
"servers": [
{
"description": "v2.0.0-rc.2",
"url": "https://api-server-2-0-0-rc-2-vxxwq5xqdq-uc.a.run.app"
}
],
"tags": [
{
"description": "Factions",
"name": "factions"
},
{
"description": "Fleet",
"name": "fleet"
},
{
"description": "Contracts",
"name": "contracts"
},
{
"description": "Systems",
"name": "systems"
},
{
"description": "Agents",
"name": "agents"
}
],
"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
"paths": {
2022-11-16 06:55:50 +01: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-11-16 06:55:50 +01:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"contract": {
"$ref": "../models/Contract.json"
},
"faction": {
"$ref": "../models/Faction.json"
},
"ship": {
"$ref": "../models/Ship.json"
},
"token": {
"description": "A Bearer token for accessing secured API endpoints.",
"type": "string"
}
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"required": [
"token",
"agent",
"faction",
"contract",
"ship"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"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
},
2022-11-16 06:55:50 +01:00
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"summary": "Register New Agent",
"tags": []
2022-10-28 06:09:27 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/systems": {
2022-10-28 06:09:27 +02:00
"get": {
2022-11-16 06:55:50 +01:00
"description": "Return a list of all systems.",
"operationId": "get-systems",
2022-10-28 06:09:27 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"description": "",
2022-10-28 06:09:27 +02:00
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"items": {
"$ref": "../models/System.json"
},
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
},
2022-10-28 06:09:27 +02:00
"required": [
2022-11-16 06:55:50 +01:00
"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-11-16 06:55:50 +01:00
"security": [
{
"AgentToken": []
}
],
"summary": "List Systems",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"systems"
2022-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
}
2022-09-18 17:49:41 +02:00
},
2022-11-16 06:55:50 +01:00
"/systems/{systemSymbol}": {
2022-09-18 17:49:41 +02:00
"get": {
2022-11-16 06:55:50 +01:00
"description": "Get the details of a system.",
"operationId": "get-system",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"$ref": "../models/System.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-11-16 06:55:50 +01:00
"summary": "Get System",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"systems"
2022-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
},
"parameters": [
{
"description": "The system symbol",
"in": "path",
"name": "systemSymbol",
"required": true,
"schema": {
"default": "X1-OE",
"type": "string"
}
}
]
2022-09-18 17:49:41 +02:00
},
2022-11-16 06:55:50 +01:00
"/systems/{systemSymbol}/waypoints": {
2022-10-06 01:42:15 +02:00
"get": {
2022-11-16 06:55:50 +01: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-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-11-16 06:55:50 +01:00
"$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-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-11-16 06:55:50 +01:00
"summary": "List Waypoints",
2022-10-17 02:06:16 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"systems"
2022-09-18 17:49:41 +02:00
]
2022-11-16 06:55:50 +01:00
},
"parameters": [
{
"description": "The system symbol",
"in": "path",
"name": "systemSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"/systems/{systemSymbol}/waypoints/{waypointSymbol}": {
2022-10-28 06:09:27 +02:00
"get": {
2022-11-16 06:55:50 +01: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": {
2022-11-16 06:55:50 +01:00
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"$ref": "../models/Waypoint.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-11-16 06:55:50 +01:00
"summary": "Get Waypoint",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"systems"
2022-10-28 06:09:27 +02:00
]
},
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The system symbol",
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "systemSymbol",
2022-10-28 06:09:27 +02:00
"required": true,
"schema": {
"type": "string"
2022-09-18 17:49:41 +02:00
}
2022-11-16 06:55:50 +01:00
},
2022-09-18 17:49:41 +02:00
{
2022-11-16 06:55:50 +01:00
"description": "The waypoint symbol",
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "waypointSymbol",
2022-10-28 06:09:27 +02:00
"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-11-16 06:55:50 +01:00
]
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/market": {
"get": {
"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-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-11-16 06:55:50 +01:00
"$ref": "../models/Market.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
],
2022-11-16 06:55:50 +01:00
"summary": "Get Market",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"systems"
2022-10-06 01:42:15 +02:00
]
2022-11-16 06:55:50 +01:00
},
2022-10-17 02:12:56 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The system symbol",
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "systemSymbol",
2022-10-28 06:09:27 +02:00
"required": true,
2022-10-17 02:12:56 +02:00
"schema": {
"type": "string"
2022-10-28 06:09:27 +02:00
}
},
2022-11-16 06:55:50 +01:00
{
"description": "The waypoint symbol",
"in": "path",
"name": "waypointSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/shipyard": {
"get": {
"description": "Get the shipyard for a waypoint.",
"operationId": "get-shipyard",
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-11-16 06:55:50 +01:00
"$ref": "../models/Shipyard.json"
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
],
2022-11-16 06:55:50 +01:00
"summary": "Get Shipyard",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"systems"
2022-10-06 01:42:15 +02:00
]
2022-11-16 06:55:50 +01:00
},
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The system symbol",
2022-10-06 01:42:15 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "systemSymbol",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "The waypoint symbol",
"in": "path",
"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-11-16 06:55:50 +01:00
]
},
"/factions": {
"get": {
"description": "List all discovered factions in the game.",
"operationId": "get-factions",
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": {
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"items": {
"$ref": "../models/Faction.json"
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
2022-10-17 02:12:56 +02:00
}
},
"required": [
2022-11-16 06:55:50 +01:00
"data",
"meta"
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
},
2022-11-16 06:55:50 +01:00
"description": ""
2022-10-17 02:12:56 +02:00
}
},
2022-11-16 06:55:50 +01:00
"summary": "List Factions",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"factions"
2022-10-28 06:09:27 +02:00
]
2022-10-17 02:12:56 +02:00
}
2022-09-18 17:49:41 +02:00
},
2022-11-16 06:55:50 +01:00
"/factions/{factionSymbol}": {
2022-10-28 06:09:27 +02:00
"get": {
2022-11-16 06:55:50 +01:00
"description": "View the details of a faction.",
"operationId": "get-faction",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"$ref": "../models/Faction.json"
2022-09-18 17:49:41 +02:00
}
},
"required": [
2022-11-16 06:55:50 +01:00
"data"
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
}
},
2022-11-16 06:55:50 +01:00
"summary": "Get Faction",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"factions"
2022-10-28 06:09:27 +02:00
]
},
2022-11-16 06:55:50 +01:00
"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-11-16 06:55:50 +01:00
}
]
},
"/my/agent": {
"get": {
"description": "Fetch your agent's details.",
"operationId": "get-my-agent",
2022-10-17 02:12:56 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"200": {
2022-10-17 02:12:56 +02:00
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"$ref": "../models/Agent.json"
2022-10-17 02:12:56 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "OK"
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "My Agent Details",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"agents"
2022-10-28 06:09:27 +02:00
]
}
},
2022-11-16 06:55:50 +01:00
"/my/contracts": {
2022-10-28 06:09:27 +02:00
"get": {
2022-11-16 06:55:50 +01:00
"description": "List all of your contracts.",
"operationId": "get-contracts",
2022-10-28 06:09:27 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"items": {
"$ref": "../models/Contract.json"
},
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
2022-10-28 06:09:27 +02:00
}
},
"required": [
2022-11-16 06:55:50 +01:00
"data",
"meta"
2022-10-28 06:09:27 +02:00
],
"type": "object"
}
}
},
2022-11-16 06:55:50 +01:00
"description": "OK"
2022-10-28 06:09:27 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "List Contracts",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"contracts"
2022-10-28 06:09:27 +02:00
]
}
},
2022-11-16 06:55:50 +01:00
"/my/contracts/{contractId}": {
2022-10-28 06:09:27 +02:00
"get": {
2022-11-16 06:55:50 +01:00
"description": "Get the details of a contract by ID.",
"operationId": "get-contract",
2022-10-28 06:09:27 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-11-16 06:55:50 +01: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
}
},
2022-10-28 06:09:27 +02:00
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Get Contract",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"contracts"
2022-10-28 06:09:27 +02:00
]
},
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The contract ID",
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "contractId",
2022-10-28 06:09:27 +02:00
"required": true,
"schema": {
"type": "string"
}
}
]
},
2022-11-16 06:55:50 +01:00
"/my/contracts/{contractId}/accept": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "contractId",
2022-10-28 06:09:27 +02:00
"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-11-16 06:55:50 +01:00
"description": "Accept a contract.",
"operationId": "accept-contract",
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": {
"properties": {
2022-11-16 06:55:50 +01:00
"agent": {
"$ref": "../models/Agent.json"
},
"contract": {
"$ref": "../models/Contract.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"contract",
"agent"
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
},
2022-11-16 06:55:50 +01:00
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Accept Contract",
2022-09-18 17:49:41 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"contracts"
2022-09-18 17:49:41 +02:00
]
}
},
2022-11-16 06:55:50 +01:00
"/my/contracts/{contractId}/deliver": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The ID of the contract",
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "contractId",
2022-10-28 06:09:27 +02:00
"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-11-16 06:55:50 +01:00
"description": "Deliver cargo on a given contract.",
"operationId": "deliver-contract",
2022-10-28 06:09:27 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-11-16 06:55:50 +01:00
"shipSymbol": {
"type": "string"
},
"tradeSymbol": {
"type": "string"
},
"units": {
"type": "integer"
2022-10-28 06:09:27 +02:00
}
},
"required": [
2022-11-16 06:55:50 +01:00
"shipSymbol",
"tradeSymbol",
"units"
2022-10-28 06:09:27 +02:00
],
"type": "object"
}
}
2022-11-16 06:55:50 +01:00
}
2022-10-28 06:09:27 +02:00
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
2022-11-16 06:55:50 +01:00
"contract": {
"$ref": "../models/Contract.json"
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"cargo": {
"$ref": "../models/ShipCargo.json"
2022-09-18 17:49:41 +02:00
}
2022-10-22 18:05:01 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"contract",
"cargo"
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
},
2022-11-16 06:55:50 +01:00
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Deliver Contract",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"contracts"
2022-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/my/contracts/{contractId}/fulfill": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The ID of the contract",
2022-10-28 06:09:27 +02:00
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "contractId",
2022-10-28 06:09:27 +02:00
"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-11-16 06:55:50 +01:00
"description": "Fulfill a contract",
"operationId": "fulfill-contract",
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-11-16 06:55:50 +01:00
"agent": {
"$ref": "../models/Agent.json"
},
"contract": {
"$ref": "../models/Contract.json"
2022-10-22 18:05:01 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"contract",
"agent"
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": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Fulfill Contract",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"contracts"
2022-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/orbit": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The symbol of the ship",
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-11-16 06:55:50 +01: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": {
2022-11-16 06:55:50 +01:00
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"title": "Orbit Ship 200 Response",
2022-09-18 17:49:41 +02:00
"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-11-16 06:55:50 +01:00
"type": "object",
2022-09-18 17:49:41 +02:00
"required": [
2022-11-16 06:55:50 +01:00
"nav"
]
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
},
2022-11-16 06:55:50 +01: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-28 06:09:27 +02:00
],
2022-11-16 06:55:50 +01:00
"summary": "Orbit Ship",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
2022-09-18 17:49:41 +02:00
]
}
},
2022-11-16 06:55:50 +01:00
"/my/ships": {
"get": {
"description": "Retrieve all of your ships.",
"operationId": "get-my-ships",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"items": {
"$ref": "../models/Ship.json"
},
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
}
},
"required": [
"data",
"meta"
],
"type": "object"
}
}
},
"description": "OK"
2022-10-28 06:09:27 +02:00
}
2022-11-16 06:55:50 +01:00
},
"security": [
{
"AgentToken": []
}
],
"summary": "List Ships",
"tags": [
"fleet"
]
},
2022-09-18 17:49:41 +02:00
"post": {
2022-11-16 06:55:50 +01:00
"description": "Purchase a ship",
"operationId": "purchase-ship",
2022-09-18 17:49:41 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-11-16 06:55:50 +01:00
"shipSymbol": {
"description": "The symbol of the ship you want to purchase.",
"type": "string"
},
2022-10-28 06:09:27 +02:00
"waypointSymbol": {
2022-11-16 06:55:50 +01:00
"description": "The symbol of the waypoint you want to purchase the ship at.",
2022-09-18 17:49:41 +02:00
"type": "string"
}
},
"required": [
2022-11-16 06:55:50 +01:00
"shipSymbol",
2022-10-28 06:09:27 +02:00
"waypointSymbol"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-11-16 06:55:50 +01:00
}
2022-10-28 06:09:27 +02:00
},
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": {
2022-11-16 06:55:50 +01:00
"agent": {
"$ref": "../models/Agent.json"
2022-09-18 17:49:41 +02:00
},
2022-11-16 06:55:50 +01:00
"ship": {
"$ref": "../models/Ship.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"ship",
"agent"
2022-10-28 06:09:27 +02:00
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"description": "Created"
2022-10-28 06:09:27 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Purchase Ship",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
]
2022-10-06 01:42:15 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}": {
"get": {
"description": "Retrieve the details of your ship.",
"operationId": "get-my-ship",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"$ref": "../models/Ship.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
},
2022-11-16 06:55:50 +01:00
"description": "OK"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-06 01:42:15 +02:00
],
2022-11-16 06:55:50 +01:00
"summary": "Get Ship",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
]
2022-11-16 06:55:50 +01:00
},
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
2022-09-18 17:49:41 +02:00
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/chart": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01: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-11-16 06:55:50 +01: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": {
2022-10-28 06:09:27 +02:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"properties": {
2022-11-16 06:55:50 +01:00
"chart": {
"$ref": "../models/Chart.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"chart"
2022-10-28 06:09:27 +02:00
],
"type": "object"
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"type": "object",
2022-09-18 17:49:41 +02:00
"required": [
"data"
2022-11-16 06:55:50 +01:00
]
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-11-16 06:55:50 +01:00
"summary": "Create Chart",
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-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/cooldown": {
"get": {
"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.",
"operationId": "get-ship-cooldown",
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"$ref": "../models/Cooldown.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-11-16 06:55:50 +01:00
},
"204": {
"description": "No cooldown"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Get Ship Cooldown",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
]
2022-11-16 06:55:50 +01:00
},
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-11-16 06:55:50 +01:00
]
},
"/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",
"requestBody": {
"content": {
"application/json": {
2022-10-28 06:09:27 +02:00
"schema": {
"properties": {
2022-11-16 06:55:50 +01:00
"symbol": {
2022-10-28 06:09:27 +02:00
"type": "string"
}
},
"required": [
2022-11-16 06:55:50 +01:00
"symbol"
2022-10-28 06:09:27 +02:00
],
"type": "object"
}
}
2022-11-16 06:55:50 +01:00
}
2022-10-28 06:09:27 +02:00
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"204": {
"description": "OK"
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Deploy Asset",
"tags": [
"fleet"
]
}
},
"/my/ships/{shipSymbol}/dock": {
"parameters": [
{
"description": "The symbol of the ship",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"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",
"responses": {
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"title": "Dock Ship 200 Response",
2022-10-28 06:09:27 +02:00
"description": "",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"properties": {
"nav": {
"$ref": "../models/ShipNav.json"
2022-10-28 06:09:27 +02:00
}
2022-11-16 06:55:50 +01:00
},
"required": [
"nav"
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"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"description": "The ship has successfully docked at it's current location."
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Dock Ship",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-11-23 23:45:08 +01:00
"/my/ships/{shipSymbol}/survey": {
"parameters": [
{
"description": "The symbol of the ship",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"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": "create-survey",
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"surveys": {
"items": {
"$ref": "../models/Survey.json"
},
"type": "array"
}
},
"required": [
"surveys",
"cooldown"
],
"type": "object"
}
},
"type": "object",
"required": [
"data"
]
}
}
},
"description": "Created"
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Create Survey",
"tags": [
"fleet"
]
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/extract": {
2022-10-17 02:06:16 +02:00
"parameters": [
{
2022-11-16 06:55:50 +01:00
"description": "The ship symbol",
2022-10-17 02:06:16 +02:00
"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-11-23 23:45:08 +01:00
"description": "Extract resources from the waypoint into your ship. Send an optional survey as the payload to target specific yields.",
2022-11-16 06:55:50 +01:00
"operationId": "extract-resources",
2022-10-17 02:06:16 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-11-16 06:55:50 +01:00
"survey": {
"$ref": "../models/Survey.json"
2022-10-17 02:06:16 +02:00
}
},
2022-10-28 06:09:27 +02:00
"type": "object"
2022-10-17 02:06:16 +02:00
}
}
2022-11-23 23:45:08 +01:00
}
2022-10-28 06:09:27 +02:00
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-11-16 06:55:50 +01: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
"properties": {
2022-11-16 06:55:50 +01:00
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"extraction": {
"$ref": "../models/Extraction.json"
2022-10-28 06:09:27 +02:00
},
"cargo": {
"$ref": "../models/ShipCargo.json"
}
},
"required": [
2022-11-16 06:55:50 +01:00
"extraction",
"cooldown",
"cargo"
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"
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Extract Resources",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
]
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/jettison": {
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-11-16 06:55:50 +01:00
"description": "Jettison cargo from your ship's cargo hold.",
"operationId": "jettison",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"symbol": {
"type": "string"
},
"units": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"symbol",
"units"
],
"type": "object"
}
}
}
},
2022-10-17 02:23:20 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"200": {
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": {
2022-11-16 06:55:50 +01:00
"cargo": {
"$ref": "../models/ShipCargo.json"
2022-10-28 06:09:27 +02:00
}
},
"required": [
2022-11-16 06:55:50 +01:00
"cargo"
2022-10-28 06:09:27 +02:00
],
"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
},
2022-11-16 06:55:50 +01:00
"description": "OK"
2022-10-17 02:23:20 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Jettison Cargo",
2022-10-28 06:09:27 +02:00
"tags": [
"fleet"
]
2022-10-17 02:23:20 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/jump": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
2022-10-28 06:09:27 +02:00
"post": {
2022-11-16 06:55:50 +01:00
"description": "Jump your ship from one system to another.",
"operationId": "jump-ship",
2022-10-28 06:09:27 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2022-11-16 06:55:50 +01:00
"systemSymbol": {
"description": "The system symbol to jump to.",
2022-10-28 06:09:27 +02:00
"type": "string"
}
},
"required": [
2022-11-16 06:55:50 +01:00
"systemSymbol"
2022-10-28 06:09:27 +02:00
],
"type": "object"
}
}
2022-11-16 06:55:50 +01:00
}
2022-10-28 06:09:27 +02:00
},
2022-09-18 17:49:41 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"200": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"description": "",
2022-10-28 06:09:27 +02:00
"properties": {
"data": {
"properties": {
2022-11-16 06:55:50 +01:00
"cooldown": {
"$ref": "../models/Cooldown.json"
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"nav": {
"$ref": "../models/ShipNav.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-11-16 06:55:50 +01:00
"route",
"cooldown"
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"
}
},
2022-09-18 17:49:41 +02:00
"security": [
2022-10-28 06:09:27 +02:00
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Jump Ship",
2022-09-18 17:49:41 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"fleet"
2022-10-28 06:09:27 +02:00
]
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/navigate": {
"parameters": [
{
"description": "The ship symbol",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"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",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"waypointSymbol": {
"description": "The target destination.",
"type": "string"
}
},
"required": [
"waypointSymbol"
],
"type": "object"
}
}
},
"description": ""
},
2022-09-18 17:49:41 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"properties": {
"fuel": {
"$ref": "../models/ShipFuel.json"
},
"nav": {
"$ref": "../models/ShipNav.json"
}
},
"required": [
"nav",
"fuel"
],
"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
},
2022-11-16 06:55:50 +01: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."
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-28 06:09:27 +02:00
],
2022-11-16 06:55:50 +01:00
"summary": "Navigate Ship",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"fleet"
2022-09-18 17:49:41 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
"/my/ships/{shipSymbol}/sell": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
"in": "path",
2022-11-16 06:55:50 +01: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-10-06 01:42:15 +02:00
}
2022-11-16 06:55:50 +01:00
],
"post": {
"description": "Sell cargo.",
"operationId": "sell-cargo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "SellCargoRequest",
"properties": {
"symbol": {
"type": "string"
},
"units": {
"type": "integer"
}
},
"required": [
"symbol",
"units"
],
"type": "object"
}
}
}
},
2022-10-06 01:42:15 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"201": {
2022-10-06 01:42:15 +02:00
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"title": "Sell Cargo 201 Response",
2022-10-06 01:42:15 +02:00
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/MarketTransaction.json"
}
2022-10-28 06:09:27 +02:00
},
2022-11-16 06:55:50 +01:00
"required": [
"cargo",
"transaction",
"agent"
],
"type": "object"
2022-10-06 01:42:15 +02:00
}
},
"required": [
2022-11-16 06:55:50 +01:00
"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
},
2022-11-16 06:55:50 +01:00
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Sell Cargo",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"fleet"
2022-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
"/my/ships/{shipSymbol}/scan": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
"in": "path",
2022-11-16 06:55:50 +01:00
"name": "shipSymbol",
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-11-16 06:55:50 +01: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-11-16 06:55:50 +01:00
"201": {
2022-09-18 17:49:41 +02:00
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01: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
}
},
"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
},
2022-11-16 06:55:50 +01:00
"description": "Created"
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-11-16 06:55:50 +01:00
"summary": "Scan",
2022-10-28 06:09:27 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"fleet"
2022-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
"/my/ships/{shipSymbol}/refuel": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
"in": "path",
2022-11-16 06:55:50 +01: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
}
2022-11-16 06:55:50 +01:00
],
"post": {
"description": "Refuel your ship from the local market.",
"operationId": "refuel-ship",
2022-10-06 01:42:15 +02:00
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"description": "",
2022-10-06 01:42:15 +02:00
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"fuel": {
"$ref": "../models/ShipFuel.json"
}
},
"required": [
"agent",
"fuel"
],
"type": "object"
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-11-16 06:55:50 +01:00
"summary": "Refuel Ship",
2022-10-17 02:06:16 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"fleet"
2022-10-06 01:42:15 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
"/my/ships/{shipSymbol}/purchase": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
"in": "path",
2022-11-16 06:55:50 +01: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
}
2022-11-16 06:55:50 +01:00
],
"post": {
"description": "Purchase cargo.",
"operationId": "purchase-cargo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "Purchase Cargo Request",
"properties": {
"symbol": {
"type": "string"
},
"units": {
"type": "integer"
}
},
"required": [
"symbol",
"units"
],
"type": "object"
}
}
}
},
2022-10-06 01:42:15 +02:00
"responses": {
2022-11-16 06:55:50 +01:00
"201": {
2022-10-06 01:42:15 +02:00
"content": {
"application/json": {
"schema": {
2022-11-16 06:55:50 +01:00
"title": "Purchase Cargo 201 Response",
2022-10-06 01:42:15 +02:00
"description": "",
"properties": {
"data": {
2022-11-16 06:55:50 +01:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/MarketTransaction.json"
}
},
"required": [
"cargo",
"transaction",
"agent"
],
"type": "object"
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
},
2022-11-16 06:55:50 +01:00
"description": "Created"
2022-10-06 01:42:15 +02:00
}
},
"security": [
{
"AgentToken": []
}
2022-10-17 02:06:16 +02:00
],
2022-11-16 06:55:50 +01:00
"summary": "Purchase Cargo",
2022-10-17 02:06:16 +02:00
"tags": [
2022-11-16 06:55:50 +01:00
"fleet"
2022-10-06 01:42:15 +02:00
]
2022-11-16 06:55:50 +01:00
}
2022-09-18 17:49:41 +02:00
}
2022-11-16 06:55:50 +01:00
}
2022-09-18 17:49:41 +02:00
}