From 32a0fdf8359226bb77ef539a001ea93cb178a554 Mon Sep 17 00:00:00 2001 From: SpaceAdmiral Date: Fri, 19 May 2023 16:41:22 -0700 Subject: [PATCH] update: add negotiate contract endpoint --- reference/SpaceTraders.json | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 0047373..2544d09 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -2770,6 +2770,68 @@ "fleet" ] } + }, + "/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" + ] + } } } } \ No newline at end of file