Skip to content

Commit

Permalink
added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-py committed Jul 17, 2024
1 parent 6466d38 commit a6c3e9f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions swagger/doc.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,31 @@
* 500:
* description: Internal server error
*/

// *************************UPLOAD IMAGE******************************
/**
* @openapi
* /users/upload:
* post:
* tags:
* - Users
* summary: Upload image file
* requestBody:
* required: true
* content:
* multipart/form-data:
* schema:
* type: object
* properties:
* image:
* type: string
* format: binary
* responses:
* 200:
* description: Image uploaded successfully
* content:
* application/json:
* schema:
* 500:
* description: Internal server error
*/

0 comments on commit a6c3e9f

Please sign in to comment.