diff --git a/docs/docs.go b/docs/docs.go index c1ba207..62175ab 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1522,13 +1522,6 @@ const docTemplate = `{ ], "summary": "Update user profile", "parameters": [ - { - "type": "string", - "description": "User ID", - "name": "id", - "in": "path", - "required": true - }, { "description": "Update Profile request", "name": "request", @@ -1648,13 +1641,6 @@ const docTemplate = `{ ], "summary": "Change user password", "parameters": [ - { - "type": "string", - "description": "User ID", - "name": "id", - "in": "path", - "required": true - }, { "description": "Change Password request", "name": "request", diff --git a/docs/swagger.json b/docs/swagger.json index 1ca6d99..52f573c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1515,13 +1515,6 @@ ], "summary": "Update user profile", "parameters": [ - { - "type": "string", - "description": "User ID", - "name": "id", - "in": "path", - "required": true - }, { "description": "Update Profile request", "name": "request", @@ -1641,13 +1634,6 @@ ], "summary": "Change user password", "parameters": [ - { - "type": "string", - "description": "User ID", - "name": "id", - "in": "path", - "required": true - }, { "description": "Change Password request", "name": "request", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index a3a4dca..1dd2a93 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1380,11 +1380,6 @@ paths: - application/json description: Update the profile details of the currently authenticated user parameters: - - description: User ID - in: path - name: id - required: true - type: string - description: Update Profile request in: body name: request @@ -1459,11 +1454,6 @@ paths: - application/json description: Update the password for the currently authenticated user parameters: - - description: User ID - in: path - name: id - required: true - type: string - description: Change Password request in: body name: request diff --git a/internal/controllers/userController.go b/internal/controllers/userController.go index bfffdd3..d683dff 100644 --- a/internal/controllers/userController.go +++ b/internal/controllers/userController.go @@ -174,7 +174,6 @@ func (h *UserController) GetVerificationByUserID(c fiber.Ctx) error { // @Accept json // @Produce json // @Security BearerAuth -// @Param id path string true "User ID" // @Param request body request.UpdateProfileDto true "Update Profile request" // @Success 200 {object} response.CommonResponse // @Failure 400 {object} response.CommonResponse @@ -212,7 +211,6 @@ func (h *UserController) UpdateProfile(c fiber.Ctx) error { // @Accept json // @Produce json // @Security BearerAuth -// @Param id path string true "User ID" // @Param request body request.ChangePasswordDto true "Change Password request" // @Success 200 {object} response.CommonResponse // @Failure 400 {object} response.CommonResponse