From 57845959c67591af2bccb61b89dc4adc2833d260 Mon Sep 17 00:00:00 2001 From: SpaceAdmiral Date: Mon, 17 Apr 2023 13:16:27 -0700 Subject: [PATCH] update: add view ship cargo endpoint --- reference/SpaceTraders.json | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 6b24979..ffcba84 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -1181,6 +1181,53 @@ } ] }, + "/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" + ] + } + }, "/my/ships/{shipSymbol}/orbit": { "parameters": [ {