From 0412d3277d981262c19a525208ce4fc9c13d4aa7 Mon Sep 17 00:00:00 2001 From: Space Admiral Date: Thu, 13 Apr 2023 12:38:51 -0700 Subject: [PATCH] update: add ship nav endpoints --- reference/SpaceTraders.json | 95 +++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 26f710e..d2571c5 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -1886,6 +1886,101 @@ ] } }, + "/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" + ] + } + }, "/my/ships/{shipSymbol}/warp": { "parameters": [ {