Skip to content

Commit aad8b51

Browse files
committed
fix ticket api doc
1 parent 7c361d1 commit aad8b51

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

service/src/tickets/ticket/ticket.controller.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,6 @@ export class TicketController extends AbstractController {
2323
}
2424

2525
@Post()
26-
@ApiOkResponse({
27-
description: 'Search tickets with pagination',
28-
schema: {
29-
allOf: [
30-
{
31-
properties: {
32-
data: {
33-
type: 'array',
34-
items: { $ref: getSchemaPath(TicketDto) },
35-
},
36-
},
37-
},
38-
],
39-
},
40-
})
41-
@ApiBadRequestResponse({
42-
description: 'Search tickets with pagination',
43-
schema: {
44-
allOf: [
45-
{
46-
properties: {
47-
data: {
48-
type: 'array',
49-
items: { $ref: getSchemaPath(TicketDto) },
50-
},
51-
},
52-
},
53-
],
54-
},
55-
})
5626
public async create(@Req() req: Request, @Res() res: Response, @Body() body: TicketCreateDto) {
5727
const data = await this._service.create(body)
5828
return res.status(HttpStatus.CREATED).json({

0 commit comments

Comments
 (0)