mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: swagger document endpoints
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user