/
home
/
infinitibizsol
/
.trash
/
docs
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs/uploadFile.js
/** * @swagger * components: * schemas: * FileUploader: * type: object * required: * - data * properties: * data: * type: string * format: binary * description: The data file to upload * securitySchemes: * bearerAuth: * type: http * scheme: bearer * bearerFormat: JWT */ /** * @swagger * tags: * - name: File Upload * description: File upload operations */ /** * @swagger * /file: * post: * summary: Upload an file * tags: [File Upload] * consumes: * - multipart/form-data * requestBody: * required: true * content: * multipart/form-data: * schema: * $ref: '#/components/schemas/FileUploader' * responses: * 200: * description: Successfully uploaded the data * content: * application/json: * schema: * type: object * properties: * message: * type: string * example: "Image uploaded successfully" * filename: * type: string * example: "data-1721684906318.png" */
Copyright ©2k19 -
Hexid
|
Tex7ure