File tree Expand file tree Collapse file tree 2 files changed +83
-2
lines changed
Expand file tree Collapse file tree 2 files changed +83
-2
lines changed Original file line number Diff line number Diff line change 292292 }
293293 },
294294 "responses" : {
295- "201" : {
296- "description" : " "
295+ "200" : {
296+ "description" : " " ,
297+ "content" : {
298+ "application/json" : {
299+ "schema" : {
300+ "properties" : {
301+ "statusCode" : {
302+ "type" : " number" ,
303+ "enum" : [
304+ 200
305+ ]
306+ },
307+ "data" : {
308+ "$ref" : " #/components/schemas/AccountSubmitedDto"
309+ }
310+ }
311+ }
312+ }
313+ }
314+ },
315+ "404" : {
316+ "description" : " Item not found" ,
317+ "content" : {
318+ "application/json" : {
319+ "schema" : {
320+ "$ref" : " #/components/schemas/NotFoundDto"
321+ }
322+ }
323+ }
297324 }
298325 },
299326 "tags" : [
11331160 " message"
11341161 ]
11351162 },
1163+ "AccountSubmitedDto" : {
1164+ "type" : " object" ,
1165+ "properties" : {
1166+ "accepted" : {
1167+ "type" : " array" ,
1168+ "items" : {
1169+ "type" : " string"
1170+ }
1171+ },
1172+ "rejected" : {
1173+ "type" : " array" ,
1174+ "items" : {
1175+ "type" : " string"
1176+ }
1177+ },
1178+ "ehlo" : {
1179+ "type" : " array" ,
1180+ "items" : {
1181+ "type" : " string"
1182+ }
1183+ },
1184+ "envelopeTime" : {
1185+ "type" : " number"
1186+ },
1187+ "messageTime" : {
1188+ "type" : " number"
1189+ },
1190+ "messageSize" : {
1191+ "type" : " number"
1192+ },
1193+ "response" : {
1194+ "type" : " string"
1195+ },
1196+ "envelope" : {
1197+ "type" : " object"
1198+ },
1199+ "messageId" : {
1200+ "type" : " string"
1201+ }
1202+ },
1203+ "required" : [
1204+ " accepted" ,
1205+ " rejected" ,
1206+ " ehlo" ,
1207+ " envelopeTime" ,
1208+ " messageTime" ,
1209+ " messageSize" ,
1210+ " response" ,
1211+ " envelope" ,
1212+ " messageId"
1213+ ]
1214+ },
11361215 "AccountSubmitDto" : {
11371216 "type" : " object" ,
11381217 "properties" : {
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import { ApiDeletedResponseDecorator } from '~/_common/decorators/api-deleted-re
3232import { ApiTags } from '@nestjs/swagger'
3333import { FilesInterceptor } from '@nestjs/platform-express'
3434import { AccountSubmitDto } from '~/accounts/_dto/account-submit.dto'
35+ import { AccountSubmitedDto } from '~/accounts/_dto/account-submited.dto'
3536
3637@ApiTags ( 'accounts' )
3738@Controller ( 'accounts' )
@@ -119,6 +120,7 @@ export class AccountsController extends AbstractController {
119120 resource : ScopesEnum . Accounts ,
120121 action : ActionEnum . Create ,
121122 } )
123+ @ApiDeletedResponseDecorator ( AccountSubmitedDto )
122124 public async submit (
123125 @Res ( ) res : Response ,
124126 @Param ( 'account' ) id : string ,
You can’t perform that action at this time.
0 commit comments