Skip to content

Commit

Permalink
docs(fix): update users swagger to have security for profile update
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Aug 1, 2023
1 parent df05aa7 commit 1c2dff6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/user_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ type UpdateUserRequest struct {
// @Tags users
// @Accept json
// @Produce json
// @Security firebase
// @Param request body UpdateUserRequest true "프로필 정보 수정 요청"
// @Success 200 {object} UserResponse
// @Router /users/me [put]
Expand Down
5 changes: 5 additions & 0 deletions pkg/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
}
},
"put": {
"security": [
{
"firebase": []
}
],
"consumes": [
"application/json"
],
Expand Down
2 changes: 2 additions & 0 deletions pkg/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ paths:
description: OK
schema:
$ref: '#/definitions/server.UserResponse'
security:
- firebase: []
summary: 내 프로필 정보를 수정합니다.
tags:
- users
Expand Down

0 comments on commit 1c2dff6

Please sign in to comment.