| 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() { } |
nothing calls this directly
no test coverage detected