-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…le-image-default #423-set-nickname-and-profile-image-default
- Loading branch information
Showing
4 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
const tag = "users"; | ||
const apiPrefix = "/users"; | ||
|
||
const usersDocs = {}; | ||
usersDocs[`${apiPrefix}/resetNickname`] = { | ||
get: { | ||
tags: [tag], | ||
summary: "유저 닉네임 기본값으로 재설정", | ||
description: "유저의 별명을 기본값(랜덤한 닉네임)으로 초기화합니다", | ||
responses: { | ||
200: { | ||
content: { | ||
"text/html": { | ||
example: "User/resetNickname : reset user nickname successful", | ||
}, | ||
}, | ||
}, | ||
400: { | ||
content: { | ||
"text/html": { | ||
example: "User/resetNickname : such user does not exist", | ||
}, | ||
}, | ||
}, | ||
500: { | ||
content: { | ||
"text/html": { | ||
example: "User/resetNickname : internal server error", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
usersDocs[`${apiPrefix}/resetProfileImg`] = { | ||
get: { | ||
tags: [tag], | ||
summary: "유저 프로필 사진 기본값으로 재설정", | ||
description: "유저의 프로필 사진을 기본값(랜덤한 사진)으로 초기화합니다", | ||
responses: { | ||
200: { | ||
content: { | ||
"text/html": { | ||
example: | ||
"User/resetProfileImg : reset user profile image successful", | ||
}, | ||
}, | ||
}, | ||
400: { | ||
content: { | ||
"text/html": { | ||
example: "User/resetProfileImg : such user does not exist", | ||
}, | ||
}, | ||
}, | ||
500: { | ||
content: { | ||
"text/html": { | ||
example: "User/resetProfileImg : internal server error", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = usersDocs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters