mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-11-15 06:40:51 +01:00
fix: clean up descriptions
This commit is contained in:
parent
13bf621930
commit
8d3b4e5a0f
@ -457,7 +457,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "View Ship",
|
"summary": "Get Ship",
|
||||||
"tags": [
|
"tags": [
|
||||||
"fleet"
|
"fleet"
|
||||||
],
|
],
|
||||||
@ -535,7 +535,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "View Ship",
|
"summary": "Get Ship Cooldown",
|
||||||
"tags": [
|
"tags": [
|
||||||
"fleet"
|
"fleet"
|
||||||
],
|
],
|
||||||
@ -547,41 +547,9 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"x-examples": {
|
|
||||||
"example-1": {
|
|
||||||
"data": {
|
|
||||||
"symbol": "653298-1",
|
|
||||||
"crew": null,
|
|
||||||
"officers": null,
|
|
||||||
"frame": "FRAME_DRONE",
|
|
||||||
"reactor": "REACTOR_SOLAR_I",
|
|
||||||
"engine": "ENGINE_SOLAR_PROPULSION",
|
|
||||||
"modules": [
|
|
||||||
"MODULE_CARGO_HOLD"
|
|
||||||
],
|
|
||||||
"mounts": [
|
|
||||||
"MOUNT_MINING_LASER_I"
|
|
||||||
],
|
|
||||||
"registration": {
|
|
||||||
"factionSymbol": "COMMERCE_REPUBLIC",
|
|
||||||
"agentSymbol": "653298",
|
|
||||||
"fee": 100,
|
|
||||||
"role": "EXCAVATOR"
|
|
||||||
},
|
|
||||||
"integrity": {
|
|
||||||
"frame": 1,
|
|
||||||
"reactor": 1,
|
|
||||||
"engine": 1
|
|
||||||
},
|
|
||||||
"status": "DOCKED",
|
|
||||||
"location": "X1-OE-PM",
|
|
||||||
"cargo": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"data": {
|
"data": {
|
||||||
"$ref": "../models/Ship.json"
|
"$ref": "../models/Cooldown.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@ -590,20 +558,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"data": {
|
|
||||||
"$ref": "../models/Cooldown.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operationId": "get-ship-cooldown",
|
"operationId": "get-ship-cooldown",
|
||||||
@ -786,7 +740,7 @@
|
|||||||
},
|
},
|
||||||
"/my/ships/{shipSymbol}/chart": {
|
"/my/ships/{shipSymbol}/chart": {
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Chart Waypoint",
|
"summary": "Create Chart",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
@ -824,7 +778,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operationId": "chart-system",
|
"operationId": "create-chart",
|
||||||
"description": "Command a ship to chart the current system and/or waypoint.\n\nSystems and waypoints 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.\n\nReturns an array of system / waypoint symbols that have been charted.",
|
"description": "Command a ship to chart the current system and/or waypoint.\n\nSystems and waypoints 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.\n\nReturns an array of system / waypoint symbols that have been charted.",
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
@ -911,7 +865,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operationId": "create-extraction",
|
"operationId": "extract-resources",
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
@ -1137,7 +1091,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operationId": "create-ship-survey",
|
"operationId": "survey-waypoint",
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"AgentToken": []
|
"AgentToken": []
|
||||||
@ -1732,7 +1686,11 @@
|
|||||||
"system": {
|
"system": {
|
||||||
"$ref": "../models/System.yaml"
|
"$ref": "../models/System.yaml"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"cooldown",
|
||||||
|
"system"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1742,7 +1700,11 @@
|
|||||||
"waypoint": {
|
"waypoint": {
|
||||||
"$ref": "../models/Waypoint.json"
|
"$ref": "../models/Waypoint.json"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"cooldown",
|
||||||
|
"waypoint"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
@ -1762,7 +1724,7 @@
|
|||||||
"AgentToken": []
|
"AgentToken": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Execute a ship scan to view approach / departing ships, system information or details about a waypoint. Send a scan mode to select the type of scan performed by your ship.",
|
"description": "Activate your ship's sensor arrays to scan for arriving ships, departing ships, system information, or waypoint information. Send a scan mode to select the type of scan performed by your ship.",
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
@ -1976,7 +1938,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operationId": "get-my-contracts",
|
"operationId": "list-contracts",
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"AgentToken": []
|
"AgentToken": []
|
||||||
@ -1998,7 +1960,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "Contract Details",
|
"summary": "Get Contract",
|
||||||
"tags": [
|
"tags": [
|
||||||
"contracts"
|
"contracts"
|
||||||
],
|
],
|
||||||
@ -2048,7 +2010,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"operationId": "get-my-contract",
|
"operationId": "get-contract",
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"AgentToken": []
|
"AgentToken": []
|
||||||
@ -2070,7 +2032,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Deliver on Contract",
|
"summary": "Deliver Contract",
|
||||||
"tags": [
|
"tags": [
|
||||||
"contracts"
|
"contracts"
|
||||||
],
|
],
|
||||||
@ -2180,6 +2142,63 @@
|
|||||||
"description": "Accept a contract."
|
"description": "Accept a contract."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/my/contracts/{contractId}/fulfill": {
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": "contractId",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"post": {
|
||||||
|
"summary": "Fulfill Contract",
|
||||||
|
"tags": [
|
||||||
|
"contracts"
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"$ref": "../models/Contract.yaml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"$ref": "../models/Contract.yaml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Contract has been successfully fulfilled."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"operationId": "fulfill-contract",
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"AgentToken": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Fulfill a contract."
|
||||||
|
}
|
||||||
|
},
|
||||||
"/systems": {
|
"/systems": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "List Systems",
|
"summary": "List Systems",
|
||||||
@ -2328,7 +2347,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "View System",
|
"summary": "Get System",
|
||||||
"tags": [
|
"tags": [
|
||||||
"systems"
|
"systems"
|
||||||
],
|
],
|
||||||
@ -2550,7 +2569,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "View Waypoint",
|
"summary": "Get Waypoint",
|
||||||
"tags": [
|
"tags": [
|
||||||
"systems"
|
"systems"
|
||||||
],
|
],
|
||||||
@ -2675,7 +2694,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "View Market",
|
"summary": "Get Market",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
@ -2738,7 +2757,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "View Faction",
|
"summary": "Get Faction",
|
||||||
"tags": [
|
"tags": [
|
||||||
"factions"
|
"factions"
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user