Something went wrong. Try again.
OpenAPI 3.0 compliant spec for TLE Community.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748import { operation, buildingBase, buildingCommonMethods, buildingView, requestBodySchema, response200, response500, security, statusSchema, tags,} from '../../chunks.ts';
const base = buildingBase('Capitol');
export const capitol = { ...buildingCommonMethods(base), ...buildingView(base, { rename_empire_cost: { type: 'integer', description: 'The essentia cost to rename the empire via rename_empire.', }, }),
[`${base}/rename_empire`]: { post: { ...tags(base), ...security(), ...operation('Rename the empire.', 'Spends essentia to rename your empire.'), ...requestBodySchema({ type: 'object', required: ['building_id', 'name'], properties: { building_id: { type: 'integer', description: 'The unique id of the building.' }, name: { type: 'string', description: 'The new name of your empire.' }, }, }), responses: { ...response200( "Spends essentia to change the empire's name (cost given by view's rename_empire_cost).", { type: 'object', required: ['status'], properties: { status: statusSchema() } } ), ...response500(), }, }, },};