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" : [
{
"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" : {
2023-05-20 01:40:13 +02:00
"/" : {
"get" : {
"description" : "Return the status of the game server." ,
"operationId" : "get-status" ,
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"description" : "OK" ,
"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" ,
"description" : "The date and time when the game server was last reset."
} ,
"description" : {
"type" : "string"
} ,
"stats" : {
"type" : "object" ,
"properties" : {
"agents" : {
"type" : "integer"
} ,
"ships" : {
"type" : "integer"
} ,
"systems" : {
"type" : "integer"
} ,
"waypoints" : {
"type" : "integer"
}
} ,
"required" : [
"agents" ,
"ships" ,
"systems" ,
"waypoints"
]
} ,
"leaderboards" : {
"type" : "object" ,
"properties" : {
"mostCredits" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"agentSymbol" : {
"type" : "string"
} ,
"credits" : {
"type" : "integer"
}
} ,
"required" : [
"agentSymbol" ,
"credits"
]
}
} ,
"mostSubmittedCharts" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"agentSymbol" : {
"type" : "string"
} ,
"chartCount" : {
"type" : "integer"
}
} ,
"required" : [
"agentSymbol" ,
"chartCount"
]
}
}
} ,
"required" : [
"mostCredits" ,
"mostSubmittedCharts"
]
} ,
"serverResets" : {
"type" : "object" ,
"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."
}
} ,
"required" : [
"next" ,
"frequency"
]
} ,
"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"
] ,
"type" : "object"
}
}
} ,
"description" : "OK"
}
} ,
"summary" : "Get Status" ,
2023-05-23 16:27:47 +02:00
"tags" : [ ] ,
"security" : [ ]
2023-05-20 01:40:13 +02:00
}
} ,
2022-11-16 06:55:50 +01:00
"/register" : {
"post" : {
2023-02-17 06:52:29 +01:00
"description" : "Creates a new agent and ties it to a temporary Account.\n\nThe agent symbol is a 3-14 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 and execute the `/my/ships/{shipSymbol}/extract` 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." ,
2022-11-16 06:55:50 +01:00
"operationId" : "register" ,
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"properties" : {
"faction" : {
"description" : "The faction you choose determines your headquarters." ,
2022-12-17 04:03:59 +01:00
"enum" : [
"COSMIC" ,
"VOID" ,
2023-01-02 17:41:04 +01:00
"GALACTIC" ,
2022-12-17 04:03:59 +01:00
"QUANTUM" ,
2023-01-21 17:45:36 +01:00
"DOMINION"
2022-12-17 04:03:59 +01:00
]
2022-11-16 06:55:50 +01:00
} ,
"symbol" : {
"description" : "How other agents will see your ships and information." ,
"example" : "BADGER" ,
2023-02-16 17:24:13 +01:00
"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
} ,
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" ,
2023-05-23 16:27:47 +02:00
"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" : {
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"
}
} ,
2023-05-23 17:33:34 +02:00
"security" : [ ] ,
2022-11-16 06:55:50 +01:00
"summary" : "List Systems" ,
2022-10-28 06:09:27 +02:00
"tags" : [
2022-11-16 06:55:50 +01:00
"systems"
2022-12-31 00:25:28 +01:00
] ,
"parameters" : [
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1
2022-12-31 00:25:28 +01:00
} ,
"in" : "query" ,
"name" : "page" ,
2023-01-02 17:41:04 +01:00
"description" : "What entry offset to request"
2022-12-31 00:25:28 +01:00
} ,
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1 ,
2023-02-26 18:43:11 +01:00
"maximum" : 20
2022-12-31 00:25:28 +01:00
} ,
"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
}
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
}
} ,
2023-05-23 17:33:34 +02:00
"security" : [ ] ,
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"
2023-01-02 17:41:04 +01:00
] ,
"parameters" : [
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1
2023-01-02 17:41:04 +01:00
} ,
"in" : "query" ,
"name" : "page" ,
"description" : "What entry offset to request"
} ,
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1 ,
2023-02-26 18:43:11 +01:00
"maximum" : 20
2023-01-02 17:41:04 +01:00
} ,
"in" : "query" ,
"name" : "limit" ,
"description" : "How many entries to return per page"
}
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
}
} ,
2023-05-23 17:33:34 +02:00
"security" : [ ] ,
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" : {
2022-12-24 22:12:13 +01:00
"description" : "Retrieve imports, exports and exchange data from a marketplace. Imports can be sold, exports can be purchased, and exchange goods can be purchased or sold. Send a ship to the waypoint to access trade good prices and recent transactions." ,
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
} ,
"description" : "OK"
2022-09-18 17:49:41 +02:00
}
} ,
2023-05-23 17:33:34 +02:00
"security" : [ ] ,
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" : {
2023-04-01 14:13:22 +02:00
"description" : "Get the shipyard for a waypoint. Send a ship to the waypoint to access 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
} ,
"description" : "OK"
2022-09-18 17:49:41 +02:00
}
} ,
2023-05-23 17:33:34 +02:00
"security" : [ ] ,
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-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" : {
"description" : "Get jump gate details for a waypoint." ,
"operationId" : "get-jump-gate" ,
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"description" : "" ,
"properties" : {
"data" : {
"$ref" : "../models/JumpGate.json"
}
} ,
"required" : [
"data"
] ,
"type" : "object"
}
}
} ,
"description" : "OK"
}
} ,
2023-05-23 17:33:34 +02:00
"security" : [ ] ,
2022-12-23 17:57:37 +01:00
"summary" : "Get Jump Gate" ,
"tags" : [
"systems"
]
} ,
"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
]
} ,
"/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"
2023-01-02 17:41:04 +01:00
] ,
"parameters" : [
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1
2023-01-02 17:41:04 +01:00
} ,
"in" : "query" ,
"name" : "page" ,
"description" : "What entry offset to request"
} ,
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1 ,
2023-02-26 18:43:11 +01:00
"maximum" : 20
2023-01-02 17:41:04 +01:00
} ,
"in" : "query" ,
"name" : "limit" ,
"description" : "How many entries to return per page"
}
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"
2023-01-02 17:41:04 +01:00
] ,
"parameters" : [
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1
2023-01-02 17:41:04 +01:00
} ,
"in" : "query" ,
"name" : "page" ,
"description" : "What entry offset to request"
} ,
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1 ,
2023-02-26 18:43:11 +01:00
"maximum" : 20
2023-01-02 17:41:04 +01:00
} ,
"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
} ,
"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" : {
2022-12-21 06:44:49 +01:00
"type" : "string"
2022-11-16 06:55:50 +01:00
} ,
"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" : {
"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"
2023-01-02 17:41:04 +01:00
] ,
"parameters" : [
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1
2023-01-02 17:41:04 +01:00
} ,
"in" : "query" ,
"name" : "page" ,
"description" : "What entry offset to request"
} ,
{
"schema" : {
2023-01-04 17:33:31 +01:00
"type" : "integer" ,
"minimum" : 1 ,
2023-02-26 18:43:11 +01:00
"maximum" : 20
2023-01-02 17:41:04 +01:00
} ,
"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" : {
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-12-19 00:04:13 +01:00
"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" : [
2022-12-19 00:04:13 +01:00
"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"
2023-04-13 21:38:29 +02:00
} ,
"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" ,
2023-04-13 21:38:29 +02:00
"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
} ,
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
} ,
2023-04-17 22:16:27 +02:00
"/my/ships/{shipSymbol}/cargo" : {
"parameters" : [
{
"description" : "The symbol of the ship" ,
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"get" : {
"description" : "Retrieve the cargo of your ship." ,
"operationId" : "get-my-ship-cargo" ,
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"description" : "" ,
"properties" : {
"data" : {
"$ref" : "../models/ShipCargo.json"
}
} ,
"required" : [
"data"
] ,
"type" : "object"
}
}
} ,
"description" : "OK"
}
} ,
"security" : [
{
"AgentToken" : [ ]
}
] ,
"summary" : "Get Ship Cargo" ,
"tags" : [
"fleet"
]
}
} ,
2022-12-21 06:40:46 +01:00
"/my/ships/{shipSymbol}/orbit" : {
"parameters" : [
{
"description" : "The symbol of the ship" ,
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"post" : {
"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" ,
"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 it's 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" : {
"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." ,
"operationId" : "ship-refine" ,
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"properties" : {
"produce" : {
"type" : "string" ,
"enum" : [
"IRON" ,
"COPPER" ,
"SILVER" ,
"GOLD" ,
"ALUMINUM" ,
"PLATINUM" ,
"URANITE" ,
"MERITIUM" ,
"FUEL"
]
}
} ,
"required" : [
"produce"
] ,
"type" : "object"
}
}
}
} ,
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"title" : "Ship Refine 200 Response" ,
"description" : "" ,
"properties" : {
"data" : {
"properties" : {
"cargo" : {
"$ref" : "../models/ShipCargo.json"
} ,
2022-12-21 07:07:58 +01:00
"cooldown" : {
"$ref" : "../models/Cooldown.json"
} ,
2022-12-21 06:40:46 +01:00
"produced" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"tradeSymbol" : {
2022-12-21 06:44:49 +01:00
"type" : "string"
2022-12-21 06:40:46 +01:00
} ,
"units" : {
"type" : "integer"
}
}
}
} ,
"consumed" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"tradeSymbol" : {
2022-12-21 06:44:49 +01:00
"type" : "string"
2022-12-21 06:40:46 +01:00
} ,
"units" : {
"type" : "integer"
}
}
}
}
} ,
"type" : "object" ,
"required" : [
"cargo" ,
2022-12-21 07:07:58 +01:00
"cooldown" ,
2022-12-21 06:40:46 +01:00
"produced" ,
"consumed"
]
}
} ,
"required" : [
"data"
] ,
"type" : "object"
}
}
} ,
"description" : "The ship has successfully started refining."
}
} ,
"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" : [
{
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-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" : [
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}/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" : {
2023-05-13 00:52:42 +02:00
"description" : "Jump your ship instantly to a target system. When used while in orbit or docked to a jump gate waypoint, any ship can use this command. When used elsewhere, jumping requires a jump drive unit and consumes a unit of antimatter (which needs to be in your cargo)." ,
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" : {
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" : {
2022-12-19 00:04:13 +01:00
"description" : "Navigate to a target destination. The destination must be located within the same system as the ship. Navigating will consume the necessary fuel and supplies from the ship's manifest, and will pay out crew wages from the agent's account.\n\nThe returned response will detail the route information including the expected time of arrival. Most ship actions are unavailable until the ship has arrived at it's destination.\n\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
} ,
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
}
} ,
2023-04-13 21:38:51 +02:00
"/my/ships/{shipSymbol}/nav" : {
"parameters" : [
{
"description" : "The ship symbol" ,
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"patch" : {
"description" : "Update the nav data of a ship, such as the flight mode." ,
"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 status of the ship."
}
} ,
"security" : [
{
"AgentToken" : [ ]
}
] ,
"summary" : "Patch Ship Nav" ,
"tags" : [
"fleet"
]
} ,
"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"
]
}
} ,
2022-12-19 00:04:13 +01:00
"/my/ships/{shipSymbol}/warp" : {
"parameters" : [
{
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"post" : {
"description" : "Warp your ship to a target destination in another system. Warping 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." ,
"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, supplies, and crew wages paid. 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"
}
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" : {
2022-12-21 06:44:49 +01:00
"type" : "string"
2022-11-16 06:55:50 +01:00
} ,
"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
}
} ,
2022-12-17 18:32:19 +01:00
"/my/ships/{shipSymbol}/scan/systems" : {
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" : {
2022-12-17 18:32:19 +01:00
"description" : "Activate your ship's sensor arrays to scan for system information." ,
"operationId" : "create-ship-system-scan" ,
"responses" : {
"201" : {
"content" : {
"application/json" : {
"schema" : {
"description" : "" ,
"properties" : {
"data" : {
"properties" : {
"cooldown" : {
"$ref" : "../models/Cooldown.json"
} ,
"systems" : {
"items" : {
"$ref" : "../models/ScannedSystem.json"
} ,
"type" : "array"
}
} ,
"required" : [
"cooldown" ,
"systems"
] ,
"type" : "object"
}
} ,
"required" : [
"data"
] ,
"type" : "object"
2022-11-16 06:55:50 +01:00
}
}
2022-12-17 18:32:19 +01:00
} ,
"description" : "Created"
}
2022-11-16 06:55:50 +01:00
} ,
2022-12-17 18:32:19 +01:00
"security" : [
{
"AgentToken" : [ ]
}
] ,
"summary" : "Scan Systems" ,
"tags" : [
"fleet"
]
}
} ,
2023-02-21 17:30:25 +01:00
"/my/ships/{shipSymbol}/scan/waypoints" : {
"parameters" : [
{
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"post" : {
"description" : "Activate your ship's sensor arrays to scan for waypoint information." ,
"operationId" : "create-ship-waypoint-scan" ,
"responses" : {
"201" : {
"content" : {
"application/json" : {
"schema" : {
"description" : "" ,
"properties" : {
"data" : {
"properties" : {
"cooldown" : {
"$ref" : "../models/Cooldown.json"
} ,
"waypoints" : {
"items" : {
"$ref" : "../models/ScannedWaypoint.json"
} ,
"type" : "array"
}
} ,
"required" : [
"cooldown" ,
"waypoints"
] ,
"type" : "object"
}
} ,
"required" : [
"data"
] ,
"type" : "object"
}
}
} ,
"description" : "Created"
}
} ,
"security" : [
{
"AgentToken" : [ ]
}
] ,
"summary" : "Scan Waypoints" ,
"tags" : [
"fleet"
]
}
} ,
2022-12-17 18:32:19 +01:00
"/my/ships/{shipSymbol}/scan/ships" : {
"parameters" : [
{
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"post" : {
"description" : "Activate your ship's sensor arrays to scan for ship information." ,
"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" : {
"description" : "" ,
"properties" : {
"data" : {
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" : {
"items" : {
"$ref" : "../models/ScannedShip.json"
2022-11-16 06:55:50 +01:00
} ,
2022-12-17 18:32:19 +01:00
"type" : "array"
2022-11-16 06:55:50 +01:00
}
2022-12-17 18:32:19 +01:00
} ,
"required" : [
"cooldown" ,
"ships"
2022-11-16 06:55:50 +01:00
] ,
"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-12-17 18:32:19 +01:00
"summary" : "Scan Ships" ,
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"
2023-05-20 03:31:25 +02:00
} ,
"transaction" : {
"$ref" : "../models/MarketTransaction.json"
2022-11-16 06:55:50 +01:00
}
} ,
"required" : [
"agent" ,
2023-05-20 03:31:25 +02:00
"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" : "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" : {
2022-12-21 06:44:49 +01:00
"type" : "string"
2022-11-16 06:55:50 +01:00
} ,
"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-12-17 04:03:59 +01:00
} ,
"/my/ships/{shipSymbol}/transfer" : {
"parameters" : [
{
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"post" : {
"description" : "Transfer cargo between ships." ,
"operationId" : "transfer-cargo" ,
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"title" : "Transfer Cargo Request" ,
"properties" : {
"tradeSymbol" : {
2022-12-21 06:44:49 +01:00
"type" : "string"
2022-12-17 04:03:59 +01:00
} ,
"units" : {
"type" : "integer"
} ,
"shipSymbol" : {
"type" : "string"
}
} ,
"required" : [
"tradeSymbol" ,
"units" ,
"shipSymbol"
] ,
"type" : "object"
}
}
}
} ,
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"title" : "Transfer Cargo 200 Response" ,
"description" : "" ,
"properties" : {
"data" : {
"properties" : {
"cargo" : {
"$ref" : "../models/ShipCargo.json"
}
} ,
"required" : [
"cargo"
] ,
"type" : "object"
}
} ,
"required" : [
"data"
] ,
"type" : "object"
}
}
} ,
"description" : "Created"
}
} ,
"security" : [
{
"AgentToken" : [ ]
}
] ,
"summary" : "Transfer Cargo" ,
"tags" : [
"fleet"
]
}
2023-05-20 01:41:22 +02:00
} ,
"/my/ships/{shipSymbol}/negotiate/contract" : {
"parameters" : [
{
"in" : "path" ,
"name" : "shipSymbol" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"post" : {
"description" : "" ,
"operationId" : "negotiateContract" ,
"requestBody" : {
"content" : {
"application/json" : {
"schema" : { }
}
}
} ,
"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"
}
}
} ,
"description" : "Created"
}
} ,
"security" : [
{
"AgentToken" : [ ]
}
] ,
"summary" : "Negotiate Contract" ,
"tags" : [
"fleet"
]
}
2022-09-18 17:49:41 +02:00
}
2022-11-16 06:55:50 +01:00
}
2023-05-13 20:14:40 +02:00
}