feat: swagger document endpoints

This commit is contained in:
Ahmed Bouhuolia
2025-06-19 21:04:54 +02:00
parent 26c1f118c1
commit 4d52059dba
9 changed files with 218 additions and 14 deletions

View File

@@ -60,6 +60,14 @@ export class WarehousesController {
@Get()
@ApiOperation({ summary: 'Get all warehouses' })
@ApiResponse({
status: 200,
description: 'The warehouses have been successfully retrieved.',
schema: {
type: 'array',
items: { $ref: getSchemaPath(WarehouseResponseDto) },
},
})
getWarehouses() {
return this.warehousesApplication.getWarehouses();
}