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(),