api-docs/reference/SpaceTraders.json

3540 lines
108 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
},
2023-04-13 22:23:34 +02:00
"description": "SpaceTraders is an open-universe game and learning platform that offers a set of HTTP endpoints to control a fleet of ships and explore a multiplayer universe.\n\nThe API is documented using [OpenAPI](https://github.com/SpaceTradersAPI/api-docs). You can send your first request right here in your browser to check the status of the game server.\n\n```json http\n{\n \"method\": \"GET\",\n \"url\": \"https://api.spacetraders.io/v2\",\n}\n```\n\nUnlike a traditional game, SpaceTraders does not have a first-party client or app to play the game. Instead, you can use the API to build your own client, write a script to automate your ships, or try an app built by the community.\n\nWe have a [Discord channel](https://discord.com/invite/jh6zurdWk5) where you can share your projects, ask questions, and get help from other players.\n\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",
2023-01-25 18:03:57 +01:00
"version": "2.0.0"
2022-09-18 17:49:41 +02:00
},
2022-11-16 06:55:50 +01:00
"security": [
{
"AgentToken": []
}
],
"servers": [
{
2023-01-25 18:03:57 +01:00
"description": "v2",
2023-04-13 22:23:34 +02:00
"url": "https://api.spacetraders.io/v2"
2022-11-16 06:55:50 +01:00
}
],
"tags": [
2023-06-09 22:50:36 +02:00
{
"description": "Agents",
"name": "Agents"
},
{
"description": "Contracts",
"name": "Contracts"
},
2022-11-16 06:55:50 +01:00
{
"description": "Factions",
"name": "Factions"
2022-11-16 06:55:50 +01:00
},
{
"description": "Fleet",
"name": "Fleet"
2023-06-09 22:50:36 +02:00
},
2022-11-16 06:55:50 +01:00
{
"description": "Systems",
"name": "Systems"
2023-06-09 22:50:36 +02:00
}
2022-11-16 06:55:50 +01: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
"paths": {
2023-05-20 01:40:13 +02:00
"/": {
"get": {
"description": "Return the status of the game server.\nThis also includes a few global elements, such as announcements, server reset dates and leaderboards.",
2023-05-20 01:40:13 +02:00
"operationId": "get-status",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
2023-06-09 22:50:36 +02:00
"type": "object",
2023-05-20 01:40:13 +02:00
"properties": {
"status": {
"type": "string",
"description": "The current status of the game server."
},
"version": {
"type": "string",
"description": "The current version of the API."
},
"resetDate": {
"type": "string",
2023-06-24 06:50:35 +02:00
"description": "The date when the game server was last reset."
2023-05-20 01:40:13 +02:00
},
"description": {
"type": "string"
},
"stats": {
"type": "object",
2023-06-09 22:50:36 +02:00
"required": [
"agents",
"ships",
"systems",
"waypoints"
],
2023-05-20 01:40:13 +02:00
"properties": {
"agents": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Number of registered agents in the game."
2023-05-20 01:40:13 +02:00
},
"ships": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Total number of ships in the game."
2023-05-20 01:40:13 +02:00
},
"systems": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Total number of systems in the game."
2023-05-20 01:40:13 +02:00
},
"waypoints": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Total number of waypoints in the game."
2023-05-20 01:40:13 +02:00
}
2023-06-09 22:50:36 +02:00
}
2023-05-20 01:40:13 +02:00
},
"leaderboards": {
"type": "object",
2023-06-09 22:50:36 +02:00
"required": [
"mostCredits",
"mostSubmittedCharts"
],
2023-05-20 01:40:13 +02:00
"properties": {
"mostCredits": {
"type": "array",
2023-06-09 22:50:36 +02:00
"description": "Top agents with the most credits.",
2023-05-20 01:40:13 +02:00
"items": {
"type": "object",
"properties": {
"agentSymbol": {
2023-06-09 22:50:36 +02:00
"type": "string",
"description": "Symbol of the agent."
2023-05-20 01:40:13 +02:00
},
"credits": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"format": "int64",
"description": "Amount of credits."
2023-05-20 01:40:13 +02:00
}
},
"required": [
"agentSymbol",
"credits"
]
}
},
"mostSubmittedCharts": {
"type": "array",
2023-06-09 22:50:36 +02:00
"description": "Top agents with the most charted submitted.",
2023-05-20 01:40:13 +02:00
"items": {
"type": "object",
"properties": {
"agentSymbol": {
2023-06-09 22:50:36 +02:00
"type": "string",
"description": "Symbol of the agent."
2023-05-20 01:40:13 +02:00
},
"chartCount": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amount of charts done by the agent."
2023-05-20 01:40:13 +02:00
}
},
"required": [
"agentSymbol",
"chartCount"
]
}
}
2023-06-09 22:50:36 +02:00
}
2023-05-20 01:40:13 +02:00
},
"serverResets": {
"type": "object",
2023-06-09 22:50:36 +02:00
"required": [
"next",
"frequency"
],
2023-05-20 01:40:13 +02:00
"properties": {
"next": {
"type": "string",
"description": "The date and time when the game server will reset."
},
"frequency": {
"type": "string",
"description": "How often we intend to reset the game server."
}
2023-06-09 22:50:36 +02:00
}
2023-05-20 01:40:13 +02:00
},
"announcements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"body": {
"type": "string"
}
},
"required": [
"title",
"body"
]
}
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"name",
"url"
]
}
}
},
"required": [
"status",
"version",
"resetDate",
"description",
"stats",
"leaderboards",
"serverResets",
"announcements",
"links"
2023-06-09 22:50:36 +02:00
]
2023-05-20 01:40:13 +02:00
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Fetched status successfully."
2023-05-20 01:40:13 +02:00
}
},
"summary": "Get Status",
"tags": [],
"security": [
{},
{
"AgentToken": []
}
]
2023-05-20 01:40:13 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/register": {
"post": {
2023-06-09 22:50:36 +02:00
"description": "Creates a new agent and ties it to an account. \nThe agent symbol must consist of a 3-14 character string, and will be used to represent your agent. This symbol will prefix the symbol of every ship you own. Agent symbols will be cast to all uppercase characters.\n\nThis new agent will be tied to a starting faction of your choice, which determines your starting location, and will be granted an authorization token, a contract with their starting faction, a command ship that can fly across space with advanced capabilities, a small probe ship that can be used for reconnaissance, and 150,000 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\nIf you are new to SpaceTraders, It is recommended to register with the COSMIC faction, a faction that is well connected to the rest of the universe. After registering, you should try our interactive [quickstart guide](https://docs.spacetraders.io/quickstart/new-game) which will walk you through basic API requests in just a few minutes.",
2022-11-16 06:55:50 +01:00
"operationId": "register",
"requestBody": {
"content": {
"application/json": {
2023-06-09 22:50:36 +02:00
"schema": {
2022-11-16 06:55:50 +01:00
"properties": {
"faction": {
2023-06-09 22:50:36 +02:00
"$ref": "../models/FactionSymbols.json",
"example": "COSMIC"
2022-11-16 06:55:50 +01:00
},
"symbol": {
"description": "Your desired agent symbol. This will be a unique name used to represent your agent, and will be the prefix for your ships.",
2022-11-16 06:55:50 +01:00
"example": "BADGER",
"maxLength": 14,
"minLength": 3,
2022-11-16 06:55:50 +01:00
"type": "string"
2023-05-13 20:14:40 +02:00
},
"email": {
2023-05-13 20:49:09 +02:00
"type": "string",
2023-05-13 20:14:40 +02:00
"description": "Your email address. This is used if you reserved your call sign between resets."
2022-11-16 06:55:50 +01:00
}
},
"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
},
2023-06-09 22:50:36 +02:00
"description": "Succesfully registered."
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"summary": "Register New Agent",
"tags": [],
"security": []
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": {
"description": "Return a paginated list of all systems.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully listed systems."
2022-10-28 06:09:27 +02:00
}
},
2022-11-16 06:55:50 +01:00
"summary": "List Systems",
2022-10-28 06:09:27 +02:00
"tags": [
"Systems"
2022-12-31 00:25:28 +01:00
],
"parameters": [
{
"schema": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"minimum": 1,
"default": 1
2022-12-31 00:25:28 +01:00
},
"in": "query",
"name": "page",
"description": "What entry offset to request"
2022-12-31 00:25:28 +01:00
},
{
"schema": {
"type": "integer",
"minimum": 1,
2023-06-09 22:50:36 +02:00
"maximum": 20,
"default": 10
2022-12-31 00:25:28 +01:00
},
"in": "query",
"name": "limit",
"description": "How many entries to return per page"
}
2023-06-09 22:50:36 +02:00
],
"security": [
{},
{
"AgentToken": []
}
]
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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched the system."
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"summary": "Get System",
2022-10-28 06:09:27 +02:00
"tags": [
"Systems"
2023-06-09 22:50:36 +02:00
],
"security": [
{},
{
"AgentToken": []
}
]
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": {
2023-06-09 22:50:36 +02:00
"description": "Return a paginated list of all of the waypoints for a given system.\n\nIf a waypoint is uncharted, it will return the `Uncharted` trait instead of its actual traits.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched all waypoints in the system."
2022-09-18 17:49:41 +02:00
}
},
"summary": "List Waypoints in System",
2022-10-17 02:06:16 +02:00
"tags": [
"Systems"
],
"parameters": [
{
"schema": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"minimum": 1,
"default": 1
},
"in": "query",
"name": "page",
"description": "What entry offset to request"
},
{
"schema": {
"type": "integer",
"minimum": 1,
2023-06-09 22:50:36 +02:00
"maximum": 20,
"default": 10
},
"in": "query",
"name": "limit",
"description": "How many entries to return per page"
}
2023-06-09 22:50:36 +02:00
],
"security": [
{},
{
"AgentToken": []
}
]
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": {
"description": "View the details of a waypoint.\n\nIf the waypoint is uncharted, it will return the 'Uncharted' trait instead of its actual traits.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched waypoint."
2022-09-18 17:49:41 +02:00
}
},
2022-11-16 06:55:50 +01:00
"summary": "Get Waypoint",
2022-10-28 06:09:27 +02:00
"tags": [
"Systems"
2023-06-09 22:50:36 +02:00
],
"security": [
{},
{
"AgentToken": []
}
]
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": {
2023-06-09 22:50:36 +02:00
"description": "Retrieve imports, exports and exchange data from a marketplace. Requires a waypoint that has the `Marketplace` trait to use.\n\nSend a ship to the waypoint to access trade good prices and recent transactions. Refer to the [Market Overview page](https://docs.spacetraders.io/game-concepts/markets) to gain better a understanding of the market in the game.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched the market."
2022-09-18 17:49:41 +02:00
}
},
2023-05-27 05:25:56 +02:00
"security": [
2023-06-09 22:50:36 +02:00
{},
{
"AgentToken": []
}
2023-05-27 05:25:56 +02:00
],
2022-11-16 06:55:50 +01:00
"summary": "Get Market",
2022-10-28 06:09:27 +02:00
"tags": [
"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": {
2023-06-09 22:50:36 +02:00
"description": "Get the shipyard for a waypoint. Requires a waypoint that has the `Shipyard` trait to use. Send a ship to the waypoint to access data on ships that are currently available for purchase and recent transactions.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched the shipyard."
2022-09-18 17:49:41 +02:00
}
},
2023-05-27 05:25:56 +02:00
"security": [
2023-06-09 22:50:36 +02:00
{},
{
"AgentToken": []
}
2023-05-27 05:25:56 +02:00
],
2022-11-16 06:55:50 +01:00
"summary": "Get Shipyard",
2022-10-28 06:09:27 +02:00
"tags": [
"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-12-23 17:57:37 +01:00
"in": "path",
"name": "systemSymbol",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "The waypoint symbol",
"in": "path",
"name": "waypointSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/jump-gate": {
"get": {
2023-10-04 22:46:37 +02:00
"description": "Get jump gate details for a waypoint. Requires a waypoint of type `JUMP_GATE` to use.\n\nWaypoints connected to this jump gate can be ",
2022-12-23 17:57:37 +01:00
"operationId": "get-jump-gate",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"$ref": "../models/JumpGate.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched jump gate."
2022-12-23 17:57:37 +01:00
}
},
2023-05-27 05:25:56 +02:00
"security": [
2023-06-09 22:50:36 +02:00
{},
{
"AgentToken": []
}
2023-05-27 05:25:56 +02:00
],
2022-12-23 17:57:37 +01:00
"summary": "Get Jump Gate",
"tags": [
"Systems"
2022-12-23 17:57:37 +01:00
]
},
"parameters": [
{
"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
]
},
2023-10-04 22:46:37 +02:00
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/construction": {
"get": {
"description": "Get construction details for a waypoint. Requires a waypoint with a property of `isUnderConstruction` to be true.",
"operationId": "get-construction",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"$ref": "../models/Construction.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "Successfully fetched construction site."
}
},
"security": [
{},
{
"AgentToken": []
}
],
"summary": "Get Construction Site",
"tags": [
"Systems"
]
}
},
"/systems/{systemSymbol}/waypoints/{waypointSymbol}/construction/supply": {
"post": {
"description": "Supply a construction site with the specified good. Requires a waypoint with a property of `isUnderConstruction` to be true.\n\nThe good must be in your ship's cargo. The good will be removed from your ship's cargo and added to the construction site's materials.",
"operationId": "supply-construction",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"shipSymbol": {
"type": "string",
"description": "Symbol of the ship to use."
},
"tradeSymbol": {
"type": "string",
"description": "The symbol of the good to supply."
},
"units": {
"type": "integer",
"description": "Amount of units to supply."
}
},
"required": [
"shipSymbol",
"tradeSymbol",
"units"
],
"type": "object"
}
}
},
"description": ""
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
"construction": {
"$ref": "../models/Construction.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
}
},
"required": [
"construction",
"cargo"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "Successfully supplied construction site."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Supply Construction Site",
"tags": [
"Systems"
]
},
"parameters": [
{
"description": "The system symbol",
"in": "path",
"name": "systemSymbol",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "The waypoint symbol",
"in": "path",
"name": "waypointSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
},
2022-11-16 06:55:50 +01:00
"/factions": {
"get": {
"description": "Return a paginated list of all the factions in the game.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Succesfully fetched factions."
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": [
"Factions"
],
"parameters": [
{
"schema": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"minimum": 1,
"default": 1
},
"in": "query",
"name": "page",
"description": "What entry offset to request"
},
{
"schema": {
"type": "integer",
"minimum": 1,
2023-06-09 22:50:36 +02:00
"maximum": 20,
"default": 10
},
"in": "query",
"name": "limit",
"description": "How many entries to return per page"
}
2023-06-09 22:50:36 +02:00
],
"security": [
{},
{
"AgentToken": []
}
]
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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched a faction."
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": [
"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": {
2023-06-09 22:50:36 +02:00
"type": "string",
"example": "COSMIC"
2022-09-18 17:49:41 +02:00
}
2022-11-16 06:55:50 +01:00
}
]
},
2023-07-12 16:47:04 +02:00
"/my/agent": {
"get": {
"description": "Fetch your agent's details.",
"operationId": "get-my-agent",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "../models/Agent.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "Successfully fetched agent details."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Get Agent",
"tags": [
"Agents"
]
}
},
2023-07-12 01:44:03 +02:00
"/agents": {
"get": {
"description": "Fetch agents details.",
"operationId": "get-agents",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"items": {
"$ref": "../models/Agent.json"
},
"type": "array"
},
"meta": {
"$ref": "../models/Meta.json"
}
},
"required": [
"data",
"meta"
],
"type": "object"
}
}
},
"description": "Successfully fetched agents details."
}
},
"summary": "List Agents",
"tags": [
"Agents"
],
"parameters": [
{
"schema": {
"type": "integer",
"minimum": 1,
"default": 1
},
"in": "query",
"name": "page",
"description": "What entry offset to request"
},
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 10
},
"in": "query",
"name": "limit",
"description": "How many entries to return per page"
}
],
"security": [
{},
{
"AgentToken": []
}
]
}
},
"/agents/{agentSymbol}": {
"get": {
"description": "Fetch agent details.",
"operationId": "get-agent",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "../models/Agent.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "Successfully fetched agent details."
}
},
2023-07-12 16:47:04 +02:00
"summary": "Get Public Agent",
2023-07-12 01:44:03 +02:00
"tags": [
"Agents"
],
"parameters": [
{
"description": "The agent symbol",
"in": "path",
"name": "agentSymbol",
"required": true,
"schema": {
"default": "FEBA66",
"type": "string"
}
}
],
"security": [
{},
{
"AgentToken": []
}
]
}
},
2022-11-16 06:55:50 +01:00
"/my/contracts": {
2022-10-28 06:09:27 +02:00
"get": {
"description": "Return a paginated list of all your contracts.",
2022-11-16 06:55:50 +01:00
"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"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Succesfully listed contracts."
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": [
"Contracts"
],
"parameters": [
{
"schema": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"minimum": 1,
"default": 1
},
"in": "query",
"name": "page",
"description": "What entry offset to request"
},
{
"schema": {
"type": "integer",
"minimum": 1,
2023-06-09 22:50:36 +02:00
"maximum": 20,
"default": 10
},
"in": "query",
"name": "limit",
"description": "How many entries to return per page"
}
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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched contract."
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": [
"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": {
2023-06-09 22:50:36 +02:00
"type": "string"
2022-10-28 06:09:27 +02:00
}
}
]
},
2022-11-16 06:55:50 +01:00
"/my/contracts/{contractId}/accept": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The contract ID to accept.",
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": {
2023-06-09 22:50:36 +02:00
"type": "string"
2022-10-28 06:09:27 +02:00
}
2022-09-18 17:49:41 +02:00
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Accept a contract by ID. \n\nYou can only accept contracts that were offered to you, were not accepted yet, and whose deadlines has not passed yet.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Succesfully accepted contract."
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": [
"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": [
{
"schema": {
"type": "string"
2023-06-09 22:50:36 +02:00
},
"name": "contractId",
"in": "path",
"required": true,
"description": "The ID of the contract."
2022-09-18 17:49:41 +02:00
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Deliver cargo to a contract.\n\nIn order to use this API, a ship must be at the delivery location (denoted in the delivery terms as `destinationSymbol` of a contract) and must have a number of units of a good required by this contract in its cargo.\n\nCargo that was delivered will be removed from the ship's cargo.",
2022-11-16 06:55:50 +01:00
"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",
2023-06-09 22:50:36 +02:00
"description": "Symbol of a ship located in the destination to deliver a contract and that has a good to deliver in its cargo."
2022-11-16 06:55:50 +01:00
},
"tradeSymbol": {
"type": "string",
2023-06-09 22:50:36 +02:00
"description": "The symbol of the good to deliver."
2022-11-16 06:55:50 +01:00
},
"units": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"description": "Amount of units to deliver."
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"
}
}
2023-06-09 22:50:36 +02:00
},
"description": ""
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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully delivered cargo to contract."
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Deliver Cargo to Contract",
2022-10-28 06:09:27 +02:00
"tags": [
"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": [
{
2023-06-09 22:50:36 +02:00
"description": "The ID of the contract to fulfill.",
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": {
"description": "Fulfill a contract. Can only be used on contracts that have all of their delivery terms fulfilled.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fulfilled a contract."
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": [
"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": {
"get": {
"description": "Return a paginated list of all of ships under your agent's ownership.",
2022-11-16 06:55:50 +01:00
"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"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Succesfully listed ships."
2022-10-28 06:09:27 +02:00
}
2022-11-16 06:55:50 +01:00
},
"security": [
{
"AgentToken": []
}
],
"summary": "List Ships",
"tags": [
"Fleet"
],
"parameters": [
{
"schema": {
"type": "integer",
2023-06-09 22:50:36 +02:00
"minimum": 1,
"default": 1
},
"in": "query",
"name": "page",
"description": "What entry offset to request"
},
{
"schema": {
"type": "integer",
"minimum": 1,
2023-06-09 22:50:36 +02:00
"maximum": 20,
"default": 10
},
"in": "query",
"name": "limit",
"description": "How many entries to return per page"
}
2022-11-16 06:55:50 +01:00
]
},
2022-09-18 17:49:41 +02:00
"post": {
2023-06-09 22:50:36 +02:00
"description": "Purchase a ship from a Shipyard. In order to use this function, a ship under your agent's ownership must be in a waypoint that has the `Shipyard` trait, and the Shipyard must sell the type of the desired ship.\n\nShipyards typically offer ship types, which are predefined templates of ships that have dedicated roles. A template comes with a preset of an engine, a reactor, and a frame. It may also include a few modules and mounts.",
2022-11-16 06:55:50 +01:00
"operationId": "purchase-ship",
2022-09-18 17:49:41 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"shipType": {
"$ref": "../models/ShipType.json"
2022-11-16 06:55:50 +01:00
},
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": [
"shipType",
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"
},
"transaction": {
"$ref": "../models/ShipyardTransaction.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",
"transaction"
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
},
2023-06-09 22:50:36 +02:00
"description": "Purchased ship successfully."
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-28 06:09:27 +02:00
]
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 a ship under your agent's ownership.",
2022-11-16 06:55:50 +01:00
"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
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched ship."
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-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
},
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The symbol of the ship.",
2022-11-16 06:55:50 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
]
2022-09-18 17:49:41 +02:00
},
2023-04-17 22:16:27 +02:00
"/my/ships/{shipSymbol}/cargo": {
"parameters": [
{
"description": "The symbol of the ship.",
2023-04-17 22:16:27 +02:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"get": {
2023-06-09 22:50:36 +02:00
"description": "Retrieve the cargo of a ship under your agent's ownership.",
2023-04-17 22:16:27 +02:00
"operationId": "get-my-ship-cargo",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"$ref": "../models/ShipCargo.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Successfully fetched ship's cargo."
2023-04-17 22:16:27 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Get Ship Cargo",
"tags": [
"Fleet"
2023-04-17 22:16:27 +02:00
]
}
},
"/my/ships/{shipSymbol}/orbit": {
"parameters": [
{
"description": "The symbol of the ship.",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Attempt to move your ship into orbit at its current location. The request will only succeed if your ship is capable of moving into orbit at the time of the request.\n\nOrbiting ships are able to do actions that require the ship to be above surface such as navigating or extracting, but cannot access elements in their current waypoint, such as the market or a shipyard.\n\nThe endpoint is idempotent - successive calls will succeed even if the ship is already in orbit.",
"operationId": "orbit-ship",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Orbit Ship 200 Response",
"description": "",
"properties": {
"data": {
"properties": {
"nav": {
"$ref": "../models/ShipNav.json"
}
},
"type": "object",
"required": [
"nav"
]
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "The ship has successfully moved into orbit at its current location."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Orbit Ship",
"tags": [
"Fleet"
]
}
},
"/my/ships/{shipSymbol}/refine": {
"parameters": [
{
"description": "The symbol of the ship.",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Attempt to refine the raw materials on your ship. The request will only succeed if your ship is capable of refining at the time of the request. In order to be able to refine, a ship must have goods that can be refined and have installed a `Refinery` module that can refine it.\n\nWhen refining, 30 basic goods will be converted into 10 processed goods.",
"operationId": "ship-refine",
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-09 22:50:36 +02:00
"type": "object",
"properties": {
"produce": {
2023-06-09 22:50:36 +02:00
"description": "The type of good to produce out of the refining process.",
"type": "string",
"enum": [
"IRON",
"COPPER",
"SILVER",
"GOLD",
"ALUMINUM",
"PLATINUM",
"URANITE",
"MERITIUM",
"FUEL"
]
}
},
"required": [
"produce"
2023-06-09 22:50:36 +02:00
]
}
}
}
},
"responses": {
2023-06-17 17:04:19 +02:00
"201": {
"content": {
"application/json": {
"schema": {
2023-06-17 17:04:19 +02:00
"title": "Ship Refine 201 Response",
2023-06-09 22:50:36 +02:00
"type": "object",
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"cargo",
"cooldown",
"produced",
"consumed"
],
"properties": {
"cargo": {
"$ref": "../models/ShipCargo.json"
},
2022-12-21 07:07:58 +01:00
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"produced": {
"type": "array",
2023-06-09 22:50:36 +02:00
"description": "Goods that were produced by this refining process.",
"items": {
"type": "object",
"properties": {
"tradeSymbol": {
2023-06-09 22:50:36 +02:00
"type": "string",
"description": "Symbol of the good."
},
"units": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amount of units of the good."
}
},
"required": [
"tradeSymbol",
"units"
]
}
},
"consumed": {
"type": "array",
2023-06-09 22:50:36 +02:00
"description": "Goods that were consumed during this refining process.",
"items": {
"type": "object",
"properties": {
"tradeSymbol": {
2023-06-09 22:50:36 +02:00
"type": "string",
"description": "Symbol of the good."
},
"units": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amount of units of the good."
}
},
"required": [
"tradeSymbol",
"units"
]
}
}
2023-06-09 22:50:36 +02:00
}
}
},
"required": [
"data"
2023-06-09 22:50:36 +02:00
]
}
}
},
"description": "The ship has successfully refined goods."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Ship Refine",
"tags": [
"Fleet"
]
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/chart": {
2022-10-06 01:42:15 +02:00
"parameters": [
{
"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": {
2023-06-09 22:50:36 +02:00
"description": "Command a ship to chart the waypoint at its current location.\n\nMost waypoints in the universe are uncharted by default. These waypoints have their traits hidden until they have been charted by a ship.\n\nCharting a waypoint will record your agent as the one who created the chart, and all other agents would also be able to see the waypoint's traits.",
2022-11-16 06:55:50 +01:00
"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-12-23 16:25:46 +01:00
},
"waypoint": {
"$ref": "../models/Waypoint.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2022-12-23 16:25:46 +01:00
"chart",
"waypoint"
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": [
"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
},
2023-06-09 22:50:36 +02:00
"description": "Succesfully fetched ship's cooldown."
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-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
},
2022-09-18 17:49:41 +02:00
"parameters": [
{
2023-06-09 22:50:36 +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
}
2022-11-16 06:55:50 +01:00
]
},
"/my/ships/{shipSymbol}/dock": {
"parameters": [
{
"description": "The symbol of the ship.",
2022-11-16 06:55:50 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Attempt to dock your ship at its current location. Docking will only succeed if your ship is capable of docking at the time of the request.\n\nDocked ships can access elements in their current location, such as the market or a shipyard, but cannot do actions that require the ship to be above surface such as navigating or extracting.\n\nThe endpoint is idempotent - successive calls will succeed even if the ship is already docked.",
2022-11-16 06:55:50 +01:00
"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
},
"description": "The ship has successfully docked at its 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-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
}
},
2022-11-23 23:45:08 +01:00
"/my/ships/{shipSymbol}/survey": {
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The symbol of the ship.",
2022-11-23 23:45:08 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Create surveys on a waypoint that can be extracted such as asteroid fields. A survey focuses on specific types of deposits from the extracted location. When ships extract using this survey, they are guaranteed to procure a high amount of one of the goods in the survey.\n\nIn order to use a survey, send the entire survey details in the body of the extract request.\n\nEach 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 after surveying in which it is unable to perform certain actions. Surveys will eventually expire after a period of time or will be exhausted after being extracted several times based on the survey's size. Multiple ships can use the same survey for extraction.\n\nA ship must have the `Surveyor` mount installed in order to use this function.",
2022-11-23 23:45:08 +01:00
"operationId": "create-survey",
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
2023-06-09 22:50:36 +02:00
"type": "object",
2022-11-23 23:45:08 +01:00
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"cooldown",
"surveys"
],
2022-11-23 23:45:08 +01:00
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"surveys": {
2023-06-09 22:50:36 +02:00
"type": "array",
"description": "Surveys created by this action.",
2022-11-23 23:45:08 +01:00
"items": {
"$ref": "../models/Survey.json"
2023-06-09 22:50:36 +02:00
}
2022-11-23 23:45:08 +01:00
}
2023-06-09 22:50:36 +02:00
}
2022-11-23 23:45:08 +01:00
}
},
"required": [
"data"
]
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Surveys has been created."
2022-11-23 23:45:08 +01:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Create Survey",
"tags": [
"Fleet"
2022-11-23 23:45:08 +01:00
]
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/extract": {
2022-10-17 02:06:16 +02:00
"parameters": [
{
"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": {
"description": "Extract resources from a waypoint that can be extracted, such as asteroid fields, into your ship. Send an optional survey as the payload to target specific yields.\n\nThe ship must be in orbit to be able to extract and must have mining equipments installed that can extract goods, such as the `Gas Siphon` mount for gas-based goods or `Mining Laser` mount for ore-based goods.\n\nThe survey property is now deprecated. See the `extract/survey` endpoint for more details.",
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": {
"deprecated": true,
2022-11-16 06:55:50 +01:00
"$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
},
2023-06-09 22:50:36 +02:00
"description": "Extracted successfully."
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-10-28 06:09:27 +02:00
]
2022-09-18 17:49:41 +02:00
}
},
2023-10-24 01:33:13 +02:00
"/my/ships/{shipSymbol}/siphon": {
"parameters": [
{
"description": "The ship symbol.",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"description": "Siphon gases, such as hydrocarbon, from gas giants.\n\nThe ship must be in orbit to be able to siphon and must have siphon mounts and a gas processor installed.",
"operationId": "siphon-resources",
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"siphon": {
"$ref": "../models/Siphon.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
}
},
"required": [
"siphon",
"cooldown",
"cargo"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "Siphon successful."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Siphon Resources",
"tags": [
"Fleet"
]
}
},
"/my/ships/{shipSymbol}/extract/survey": {
"parameters": [
{
"description": "The ship symbol.",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
"description": "Use a survey when extracting resources from a waypoint. This endpoint requires a survey as the payload, which allows your ship to extract specific yields.\n\nSend the full survey object as the payload which will be validated according to the signature. If the signature is invalid, or any properties of the survey are changed, the request will fail.",
"operationId": "extract-resources-with-survey",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "../models/Survey.json"
}
}
}
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"extraction": {
"$ref": "../models/Extraction.json"
},
"cargo": {
"$ref": "../models/ShipCargo.json"
}
},
"required": [
"extraction",
"cooldown",
"cargo"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "Extracted successfully."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Extract Resources with Survey",
"tags": [
"Fleet"
]
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/jettison": {
2022-10-17 02:23:20 +02:00
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
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": {
2023-06-09 22:50:36 +02:00
"description": "Jettison cargo from your ship's cargo hold.",
2022-11-16 06:55:50 +01:00
"operationId": "jettison",
"requestBody": {
"content": {
"application/json": {
"schema": {
2023-06-09 22:50:36 +02:00
"type": "object",
2022-11-16 06:55:50 +01:00
"properties": {
"symbol": {
2023-06-09 22:50:36 +02:00
"$ref": "../models/TradeSymbol.json"
2022-11-16 06:55:50 +01:00
},
"units": {
"minimum": 1,
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amount of units to jettison of this good."
2022-11-16 06:55:50 +01:00
}
},
"required": [
"symbol",
"units"
2023-06-09 22:50:36 +02:00
]
2022-11-16 06:55:50 +01:00
}
}
}
},
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
},
2023-06-09 22:50:36 +02:00
"description": "Jettison successful."
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-28 06:09:27 +02:00
]
2022-10-17 02:23:20 +02:00
}
},
2022-11-16 06:55:50 +01:00
"/my/ships/{shipSymbol}/jump": {
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
2022-11-16 06:55:50 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
2022-10-28 06:09:27 +02:00
"post": {
2023-10-04 22:46:37 +02:00
"description": "Jump your ship instantly to a target connected waypoint. The ship must be in orbit to execute a jump.\n\nA unit of antimatter is purchased and consumed from the market when jumping. The price of antimatter is determined by the market and is subject to change. A ship can only jump to connected waypoints",
2022-11-16 06:55:50 +01:00
"operationId": "jump-ship",
2022-10-28 06:09:27 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
2023-10-04 22:46:37 +02:00
"waypointSymbol": {
"description": "The symbol of the waypoint to jump to. The destination must be a connected waypoint.",
2022-10-28 06:09:27 +02:00
"type": "string"
}
},
"required": [
2023-10-04 22:46:37 +02:00
"waypointSymbol"
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
"nav": {
"$ref": "../models/ShipNav.json"
2023-10-04 22:46:37 +02:00
},
2023-10-24 02:02:23 +02:00
"cooldown": {
"$ref": "../models/Cooldown.json"
},
2023-10-04 22:46:37 +02:00
"transaction": {
"$ref": "../models/MarketTransaction.json"
2022-09-18 17:49:41 +02:00
}
2022-10-28 06:09:27 +02:00
},
"required": [
2023-06-06 09:10:25 +02:00
"nav",
2023-10-24 02:02:23 +02:00
"cooldown",
2023-10-04 22:46:37 +02:00
"transaction"
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"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Jump successful."
2022-10-28 06:09:27 +02:00
}
},
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": [
"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.",
2022-11-16 06:55:50 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Navigate to a target destination. The ship must be in orbit to use this function. The destination waypoint must be within the same system as the ship's current location. Navigating will consume the necessary fuel from the ship's manifest based on the distance to the target waypoint.\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\nTo travel between systems, see the ship's Warp or Jump actions.",
2022-11-16 06:55:50 +01:00
"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
},
"description": "The successful transit information including the route details and changes to ship fuel. 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": [
"Fleet"
2022-09-18 17:49:41 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
2023-04-13 21:38:51 +02:00
"/my/ships/{shipSymbol}/nav": {
"parameters": [
{
"description": "The ship symbol.",
2023-04-13 21:38:51 +02:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"patch": {
"description": "Update the nav configuration of a ship.\n\nCurrently only supports configuring the Flight Mode of the ship, which affects its speed and fuel consumption.",
2023-04-13 21:38:51 +02:00
"operationId": "patch-ship-nav",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"flightMode": {
"$ref": "../models/ShipNavFlightMode.json"
}
},
"type": "object"
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"$ref": "../models/ShipNav.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "The updated nav data of the ship."
2023-04-13 21:38:51 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Patch Ship Nav",
"tags": [
"Fleet"
2023-04-13 21:38:51 +02:00
]
},
"get": {
"description": "Get the current nav status of a ship.",
"operationId": "get-ship-nav",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"$ref": "../models/ShipNav.json"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "The current nav status of the ship."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Get Ship Nav",
"tags": [
"Fleet"
2023-04-13 21:38:51 +02:00
]
}
},
"/my/ships/{shipSymbol}/warp": {
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Warp your ship to a target destination in another system. The ship must be in orbit to use this function and must have the `Warp Drive` module installed. Warping will consume the necessary fuel from the ship's manifest.\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 its destination.",
"operationId": "warp-ship",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"waypointSymbol": {
"description": "The target destination.",
"type": "string"
}
},
"required": [
"waypointSymbol"
],
"type": "object"
}
}
},
"description": ""
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "",
"properties": {
"data": {
"properties": {
"fuel": {
"$ref": "../models/ShipFuel.json"
},
"nav": {
"$ref": "../models/ShipNav.json"
}
},
"required": [
"nav",
"fuel"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
"description": "The successful transit information including the route details and changes to ship fuel. The route includes the expected time of arrival."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Warp Ship",
"tags": [
"Fleet"
]
}
},
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"
2023-06-09 22:50:36 +02:00
},
"description": "Symbol of a ship."
2022-10-06 01:42:15 +02:00
}
2022-11-16 06:55:50 +01:00
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Sell cargo in your ship to a market that trades this cargo. The ship must be docked in a waypoint that has the `Marketplace` trait in order to use this function.",
2022-11-16 06:55:50 +01:00
"operationId": "sell-cargo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "SellCargoRequest",
2023-06-09 22:50:36 +02:00
"type": "object",
2022-11-16 06:55:50 +01:00
"properties": {
"symbol": {
2023-06-09 22:50:36 +02:00
"$ref": "../models/TradeSymbol.json"
2022-11-16 06:55:50 +01:00
},
"units": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amounts of units to sell of the selected good."
2022-11-16 06:55:50 +01:00
}
},
"required": [
"symbol",
"units"
2023-06-09 22:50:36 +02:00
]
2022-11-16 06:55:50 +01:00
}
}
}
},
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
},
2023-06-09 22:50:36 +02:00
"description": "Cargo was successfully sold."
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": [
"Fleet"
2022-10-28 06:09:27 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
2022-12-17 18:32:19 +01:00
"/my/ships/{shipSymbol}/scan/systems": {
2022-09-18 17:49:41 +02:00
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
2022-09-18 17:49:41 +02:00
"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": {
2023-06-09 22:50:36 +02:00
"description": "Scan for nearby systems, retrieving information on the systems' distance from the ship and their waypoints. Requires a ship to have the `Sensor Array` mount installed to use.\n\nThe ship will enter a cooldown after using this function, during which it cannot execute certain actions.",
2022-12-17 18:32:19 +01:00
"operationId": "create-ship-system-scan",
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
2023-06-09 22:50:36 +02:00
"type": "object",
2022-12-17 18:32:19 +01:00
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"cooldown",
"systems"
],
2022-12-17 18:32:19 +01:00
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"systems": {
2023-06-09 22:50:36 +02:00
"type": "array",
"description": "List of scanned systems.",
2022-12-17 18:32:19 +01:00
"items": {
"$ref": "../models/ScannedSystem.json"
2023-06-09 22:50:36 +02:00
}
2022-12-17 18:32:19 +01:00
}
2023-06-09 22:50:36 +02:00
}
2022-12-17 18:32:19 +01:00
}
},
"required": [
"data"
2023-06-09 22:50:36 +02:00
]
2022-11-16 06:55:50 +01:00
}
}
2022-12-17 18:32:19 +01:00
},
"description": "Successfully scanned for nearby systems."
2022-12-17 18:32:19 +01:00
}
2022-11-16 06:55:50 +01:00
},
2022-12-17 18:32:19 +01:00
"security": [
{
"AgentToken": []
}
],
"summary": "Scan Systems",
"tags": [
"Fleet"
2022-12-17 18:32:19 +01:00
]
}
},
2023-02-21 17:30:25 +01:00
"/my/ships/{shipSymbol}/scan/waypoints": {
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
2023-02-21 17:30:25 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Scan for nearby waypoints, retrieving detailed information on each waypoint in range. Scanning uncharted waypoints will allow you to ignore their uncharted state and will list the waypoints' traits.\n\nRequires a ship to have the `Sensor Array` mount installed to use.\n\nThe ship will enter a cooldown after using this function, during which it cannot execute certain actions.",
2023-02-21 17:30:25 +01:00
"operationId": "create-ship-waypoint-scan",
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
2023-06-09 22:50:36 +02:00
"type": "object",
2023-02-21 17:30:25 +01:00
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"cooldown",
"waypoints"
],
2023-02-21 17:30:25 +01:00
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
},
"waypoints": {
2023-06-09 22:50:36 +02:00
"type": "array",
"description": "List of scanned waypoints.",
2023-02-21 17:30:25 +01:00
"items": {
"$ref": "../models/ScannedWaypoint.json"
2023-06-09 22:50:36 +02:00
}
2023-02-21 17:30:25 +01:00
}
2023-06-09 22:50:36 +02:00
}
2023-02-21 17:30:25 +01:00
}
},
"required": [
"data"
2023-06-09 22:50:36 +02:00
]
2023-02-21 17:30:25 +01:00
}
}
},
"description": "Successfully scanned for nearby waypoints."
2023-02-21 17:30:25 +01:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Scan Waypoints",
"tags": [
"Fleet"
2023-02-21 17:30:25 +01:00
]
}
},
2022-12-17 18:32:19 +01:00
"/my/ships/{shipSymbol}/scan/ships": {
"parameters": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
2022-12-17 18:32:19 +01:00
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
}
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Scan for nearby ships, retrieving information for all ships in range.\n\nRequires a ship to have the `Sensor Array` mount installed to use.\n\nThe ship will enter a cooldown after using this function, during which it cannot execute certain actions.",
2022-12-17 18:32:19 +01:00
"operationId": "create-ship-ship-scan",
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": {
2023-06-09 22:50:36 +02:00
"type": "object",
2022-09-18 17:49:41 +02:00
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"cooldown",
"ships"
],
2022-12-17 18:32:19 +01:00
"properties": {
"cooldown": {
"$ref": "../models/Cooldown.json"
2022-11-16 06:55:50 +01:00
},
2022-12-17 18:32:19 +01:00
"ships": {
2023-06-09 22:50:36 +02:00
"type": "array",
"description": "List of scanned ships.",
2022-12-17 18:32:19 +01:00
"items": {
"$ref": "../models/ScannedShip.json"
2023-06-09 22:50:36 +02:00
}
2022-11-16 06:55:50 +01:00
}
2023-06-09 22:50:36 +02:00
}
2022-09-18 17:49:41 +02:00
}
},
"required": [
2022-10-28 06:09:27 +02:00
"data"
2023-06-09 22:50:36 +02:00
]
2022-09-18 17:49:41 +02:00
}
}
2022-10-28 06:09:27 +02:00
},
"description": "Successfully scanned for nearby ships."
2022-09-18 17:49:41 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
2022-12-17 18:32:19 +01:00
"summary": "Scan Ships",
2022-10-28 06:09:27 +02:00
"tags": [
"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": [
{
2023-06-09 22:50:36 +02:00
"description": "The ship symbol.",
2022-10-06 01:42:15 +02:00
"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": {
2023-06-09 22:50:36 +02:00
"description": "Refuel your ship by buying fuel from the local market.\n\nRequires the ship to be docked in a waypoint that has the `Marketplace` trait, and the market must be selling fuel in order to refuel.\n\nEach fuel bought from the market replenishes 100 units in your ship's fuel.\n\nShips will always be refuel to their frame's maximum fuel capacity when using this action.",
2022-11-16 06:55:50 +01:00
"operationId": "refuel-ship",
2023-06-17 17:27:48 +02:00
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"units": {
"type": "integer",
"description": "The amount of fuel to fill in the ship's tanks. When not specified, the ship will be refueled to its maximum fuel capacity. If the amount specified is greater than the ship's remaining capacity, the ship will only be refueled to its maximum fuel capacity. The amount specified is not in market units but in ship fuel units.",
"example": "100",
"minimum": 1
}
}
}
}
}
},
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"
},
"transaction": {
"$ref": "../models/MarketTransaction.json"
2022-11-16 06:55:50 +01:00
}
},
"required": [
"agent",
"fuel",
"transaction"
2022-11-16 06:55:50 +01:00
],
"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": "Refueled successfully."
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": [
"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"
2023-06-09 22:50:36 +02:00
},
"description": "The ship's symbol."
2022-10-06 01:42:15 +02:00
}
2022-11-16 06:55:50 +01:00
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Purchase cargo from a market.\n\nThe ship must be docked in a waypoint that has `Marketplace` trait, and the market must be selling a good to be able to purchase it.\n\nThe maximum amount of units of a good that can be purchased in each transaction are denoted by the `tradeVolume` value of the good, which can be viewed by using the Get Market action.\n\nPurchased goods are added to the ship's cargo hold.",
2022-11-16 06:55:50 +01:00
"operationId": "purchase-cargo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "Purchase Cargo Request",
2023-06-09 22:50:36 +02:00
"type": "object",
2022-11-16 06:55:50 +01:00
"properties": {
"symbol": {
2023-06-09 22:50:36 +02:00
"$ref": "../models/TradeSymbol.json"
2022-11-16 06:55:50 +01:00
},
"units": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amounts of units to purchase."
2022-11-16 06:55:50 +01:00
}
},
"required": [
"symbol",
"units"
2023-06-09 22:50:36 +02:00
]
2022-11-16 06:55:50 +01:00
}
}
}
},
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
},
2023-06-09 22:50:36 +02:00
"description": "Purchased goods successfully."
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": [
"Fleet"
2022-10-06 01:42:15 +02:00
]
2022-11-16 06:55:50 +01:00
}
},
"/my/ships/{shipSymbol}/transfer": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
2023-06-09 22:50:36 +02:00
},
"description": "The transferring ship's symbol."
}
],
"post": {
2023-06-09 22:55:01 +02:00
"description": "Transfer cargo between ships.\n\nThe receiving ship must be in the same waypoint as the transferring ship, and it must able to hold the additional cargo after the transfer is complete. Both ships also must be in the same state, either both are docked or both are orbiting.\n\nThe response body's cargo shows the cargo of the transferring ship after the transfer is complete.",
"operationId": "transfer-cargo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "Transfer Cargo Request",
2023-06-09 22:50:36 +02:00
"type": "object",
"properties": {
"tradeSymbol": {
2023-06-09 22:50:36 +02:00
"$ref": "../models/TradeSymbol.json"
},
"units": {
2023-06-09 22:50:36 +02:00
"type": "integer",
"description": "Amount of units to transfer."
},
"shipSymbol": {
2023-06-09 22:50:36 +02:00
"type": "string",
"description": "The symbol of the ship to transfer to."
}
},
"required": [
"tradeSymbol",
"units",
"shipSymbol"
2023-06-09 22:50:36 +02:00
]
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Transfer Cargo 200 Response",
2023-06-09 22:50:36 +02:00
"type": "object",
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"cargo"
],
"properties": {
"cargo": {
"$ref": "../models/ShipCargo.json"
}
2023-06-09 22:50:36 +02:00
}
}
},
"required": [
"data"
2023-06-09 22:50:36 +02:00
]
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Transfer successful."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Transfer Cargo",
"tags": [
"Fleet"
]
}
},
"/my/ships/{shipSymbol}/negotiate/contract": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
2023-06-09 22:50:36 +02:00
},
"description": "The ship's symbol."
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Negotiate a new contract with the HQ.\n\nIn order to negotiate a new contract, an agent must not have ongoing or offered contracts over the allowed maximum amount. Currently the maximum contracts an agent can have at a time is 1.\n\nOnce a contract is negotiated, it is added to the list of contracts offered to the agent, which the agent can then accept. \n\nThe ship must be present at a faction's HQ waypoint to negotiate a contract with that faction.",
"operationId": "negotiateContract",
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"title": "Negotiate Contract 200 Response",
"description": "",
"properties": {
"data": {
"properties": {
"contract": {
"$ref": "../models/Contract.json"
}
},
"required": [
"contract"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Successfully negotiated a new contract."
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Negotiate Contract",
"tags": [
"Fleet"
]
}
2023-06-03 18:12:01 +02:00
},
"/my/ships/{shipSymbol}/mounts": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
2023-06-09 22:50:36 +02:00
},
"description": "The ship's symbol."
2023-06-03 18:12:01 +02:00
}
],
"get": {
2023-06-09 22:50:36 +02:00
"description": "Get the mounts installed on a ship.",
2023-06-03 18:12:01 +02:00
"operationId": "get-mounts",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Get Mounts 200 Response",
"description": "",
"properties": {
"data": {
"items": {
"$ref": "../models/ShipMount.json"
},
"type": "array"
}
},
"required": [
"data"
],
"type": "object"
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Got installed mounts."
2023-06-03 18:12:01 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Get Mounts",
"tags": [
"Fleet"
2023-06-03 18:12:01 +02:00
]
}
},
"/my/ships/{shipSymbol}/mounts/install": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
2023-06-09 22:50:36 +02:00
},
"description": "The ship's symbol."
2023-06-03 18:12:01 +02:00
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Install a mount on a ship.\n\nIn order to install a mount, the ship must be docked and located in a waypoint that has a `Shipyard` trait. The ship also must have the mount to install in its cargo hold.\n\nAn installation fee will be deduced by the Shipyard for installing the mount on the ship. ",
2023-06-03 18:12:01 +02:00
"operationId": "install-mount",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "Install Mount Request",
"properties": {
"symbol": {
"type": "string"
}
},
"required": [
"symbol"
],
"type": "object"
}
}
}
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"title": "Install Mount 201 Response",
2023-06-09 22:50:36 +02:00
"type": "object",
2023-06-03 18:12:01 +02:00
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"agent",
"mounts",
"cargo",
"transaction"
],
2023-06-03 18:12:01 +02:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"mounts": {
"type": "array",
2023-06-09 22:50:36 +02:00
"description": "List of installed mounts after the installation of the new mount.",
2023-06-03 18:12:01 +02:00
"items": {
"$ref": "../models/ShipMount.json"
}
},
"cargo": {
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/ShipModificationTransaction.json"
2023-06-03 18:12:01 +02:00
}
2023-06-09 22:50:36 +02:00
}
2023-06-03 18:12:01 +02:00
}
},
"required": [
"data"
2023-06-09 22:50:36 +02:00
]
2023-06-03 18:12:01 +02:00
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Successfully installed the mount."
2023-06-03 18:12:01 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Install Mount",
"tags": [
"Fleet"
2023-06-03 18:12:01 +02:00
]
}
},
"/my/ships/{shipSymbol}/mounts/remove": {
"parameters": [
{
"in": "path",
"name": "shipSymbol",
"required": true,
"schema": {
"type": "string"
2023-06-09 22:50:36 +02:00
},
"description": "The ship's symbol."
2023-06-03 18:12:01 +02:00
}
],
"post": {
2023-06-09 22:50:36 +02:00
"description": "Remove a mount from a ship.\n\nThe ship must be docked in a waypoint that has the `Shipyard` trait, and must have the desired mount that it wish to remove installed.\n\nA removal fee will be deduced from the agent by the Shipyard.",
2023-06-03 18:12:01 +02:00
"operationId": "remove-mount",
"requestBody": {
"content": {
"application/json": {
"schema": {
"title": "Remove Mount Request",
2023-06-09 22:50:36 +02:00
"type": "object",
2023-06-03 18:12:01 +02:00
"properties": {
"symbol": {
2023-06-09 22:50:36 +02:00
"type": "string",
"description": "The symbol of the mount to remove."
2023-06-03 18:12:01 +02:00
}
},
"required": [
"symbol"
2023-06-09 22:50:36 +02:00
]
2023-06-03 18:12:01 +02:00
}
}
}
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"title": "Remove Mount 201 Response",
2023-06-09 22:50:36 +02:00
"type": "object",
2023-06-03 18:12:01 +02:00
"properties": {
"data": {
2023-06-09 22:50:36 +02:00
"type": "object",
"required": [
"agent",
"mounts",
"cargo",
"transaction"
],
2023-06-03 18:12:01 +02:00
"properties": {
"agent": {
"$ref": "../models/Agent.json"
},
"mounts": {
"type": "array",
2023-06-09 22:50:36 +02:00
"description": "List of installed mounts after the removal of the selected mount.",
2023-06-03 18:12:01 +02:00
"items": {
"$ref": "../models/ShipMount.json"
}
},
"cargo": {
"$ref": "../models/ShipCargo.json"
},
"transaction": {
"$ref": "../models/ShipModificationTransaction.json"
2023-06-03 18:12:01 +02:00
}
2023-06-09 22:50:36 +02:00
}
2023-06-03 18:12:01 +02:00
}
},
"required": [
"data"
2023-06-09 22:50:36 +02:00
]
2023-06-03 18:12:01 +02:00
}
}
},
2023-06-09 22:50:36 +02:00
"description": "Successfully removed the mount."
2023-06-03 18:12:01 +02:00
}
},
"security": [
{
"AgentToken": []
}
],
"summary": "Remove Mount",
"tags": [
"Fleet"
2023-06-03 18:12:01 +02:00
]
}
2022-09-18 17:49:41 +02:00
}
2022-11-16 06:55:50 +01:00
}
}