HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
프로그래머스 프론트엔드 데브코스 2기
프로그래머스 프론트엔드 데브코스 2기
/
❤️‍🔥
화랑팀
/
🥀
화면 기획 및 API 기획
/
💡
사용자 정보 변경
사용자 정보 변경
💡

사용자 정보 변경

1. 내 정보 변경[Put]

🌹
/settings/update-user
Request
{ header: { Authorization: 'bearer JWT token' } body: { fullName: String, username: String } }
Response
{ // User _id: String, coverImage: String, // 커버 이미지 image: String, // 프로필 이미지 role: String, // ?? isOnline: Boolean, // 현재 온라인에 접속중 posts: Post[], // 업로드한 포스트 리스트 likes: Like[], // 좋아요를 누른 포스트 리스트 comments: String[], // 자신이 작성한 댓글 리스트 followers: [], // 팔로잉 리스트 following: Follow[], // 팔로워 리스트 notifications: Notification[], // 해당 사용자의 알림 리스트 messages: Message[], // DM 메세지 리스트 fullName: String, userName: String, // 추가 유무 확인 필요🔥 email: String, createdAt: String, updateAt: String }
 
 

2. 비밀번호 변경[Put]

🌹
/settings/update-password
Request
{ header: { Authorization: 'bearer JWT token' } body: { password: String } }
Response
// 뭐가 오는지 확인 필요