From a4bc7a6272dcf966280ae39d11dc207b1adcc730 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Sat, 22 Aug 2026 09:35:57 +1000 Subject: [PATCH] Add get_body_status --- src/spec/paths/body.ts | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/spec/paths/body.ts b/src/spec/paths/body.ts index 4f3c405..26f8953 100644 --- a/src/spec/paths/body.ts +++ b/src/spec/paths/body.ts @@ -12,13 +12,40 @@ export const body = { }), responses: { - ...response200('Returns information about the current state of the empire.', { + ...response200( + 'Returns information about the current state of this body. Must be owned or a sitter of the current empire.', + { + type: 'object', + required: ['empire', 'body'], + properties: { + server: { $ref: '#/components/schemas/server_status' }, + empire: { $ref: '#/components/schemas/empire_status' }, + body: { $ref: '#/components/schemas/body_status' }, + }, + } + ), + ...response500(), + }, + }, + }, + + '/v2/body/get_body_status': { + post: { + ...security(), + + ...requestBodySchema({ + type: 'object', + required: ['body_id'], + properties: { body_id: { type: 'string' } }, + }), + + responses: { + ...response200('Usd in the Star Map. Returns public information about the given body.', { type: 'object', required: ['empire', 'body'], properties: { - server: { $ref: '#/components/schemas/server_status' }, - empire: { $ref: '#/components/schemas/empire_status' }, body: { $ref: '#/components/schemas/body_status' }, + status: statusSchema(), }, }), ...response500(), -- 2.51.2