Skip to content

Commit

Permalink
feat(upload-file): create schema body for upload file api to it can w…
Browse files Browse the repository at this point in the history
…ork in swagger

this is just a local change in hotfix branch, will be replace by another commit in actual develop
branch
  • Loading branch information
quannhg committed Nov 17, 2023
1 parent 298f878 commit a8e9fd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/routes/apis/printingRequest.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ export const printingRequestPlugin = createRoutes('Printing Request', [
roles: ['*'],
schema: {
summary: 'Upload file to printing request',
consumes: ['multipart/form-data'],
params: UploadFileParamsDto,
body: {
type: 'object',
required: ['file'],
properties: {
file: { isFile: true }
}
},
response: {
200: UploadFileResultDto
}
Expand Down

0 comments on commit a8e9fd1

Please sign in to comment.