MCPcopy
hub / github.com/FoalTS/foal / StoreController

Class StoreController

tests/e2e-tests/src/tests/openapi.spec.ts:430–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 }
429
430 @ApiUseTag('store')
431 @ApiDefineSchema('Order', {
432 properties: {
433 complete: {
434 default: false,
435 type: 'boolean',
436 },
437 id: {
438 format: 'int64',
439 type: 'integer',
440 },
441 petId: {
442 format: 'int64',
443 type: 'integer',
444 },
445 quantity: {
446 format: 'int32',
447 type: 'integer',
448 },
449 shipDate: {
450 format: 'date-time',
451 type: 'string',
452 },
453 status: {
454 description: 'Order Status',
455 enum: [ 'placed', 'approved', 'delivered' ],
456 type: 'string',
457 }
458 },
459 type: 'object',
460 xml: { name: 'Order' }
461 })
462 class StoreController {
463 @Get('/inventory')
464 @ApiOperation({
465 description: 'Returns a map of status codes to quantities',
466 operationId: 'getInventory',
467 responses: {},
468 summary: 'Returns pet inventories by status'
469 })
470 @ApiResponse(200, {
471 content: {
472 'application/json': {
473 schema: {
474 additionalProperties: {
475 format: 'int32',
476 type: 'integer',
477 },
478 type: 'object',
479 }
480 }
481 },
482 description: 'successful operation'
483 })
484 @ApiSecurityRequirement({
485 api_key: []
486 })
487 getInventory() { }

Callers

nothing calls this directly

Calls 10

ApiUseTagFunction · 0.90
ApiDefineSchemaFunction · 0.90
GetFunction · 0.90
ApiOperationFunction · 0.90
ApiResponseFunction · 0.90
ApiSecurityRequirementFunction · 0.90
PostFunction · 0.90
ApiRequestBodyFunction · 0.90
ApiParameterFunction · 0.90
DeleteFunction · 0.90

Tested by

no test coverage detected