회원가입 한다.
google 회원가입 버튼 누른다 → google 권한 공유 허락하는 화면으로 이동 →
허락합니다
버튼 클릭 → google 로그인 수행 (newEgoDoc@haha.com) → redirectUrl 로 linkOcean 으로 이동
Redirect www.linkOcean/register/profile
- 로그인 된 상태요청
Post /profiles { "oauthType" :"github" "email":"newEgoDoc@haha.com" "username":"Old Harry", "bio":"Hi, my name is Harry", "image":"https://noticon-static.tammolo.com/dgggcrkxq/image/upload/v1593397832/noticon/xmudzlguiuwsxfi3wjkj.png", }
서버에서는 프로필 등록 처리
→ 페이지 넘어감
Get www.linkOcean/register/favorite-categories
- 로그인 된 상태POST /profiles/{profileId}/categories { "categories": [ "코믹", "멜로" ] }
Post /profiles { "oauthType" :"github" "email":"newEgoDoc@haha.com" "username":"Old Harry", "bio":"Hi, my name is Harry", "image":"https://noticon-static.tammolo.com/dgggcrkxq/image/upload/v1593397832/noticon/xmudzlguiuwsxfi3wjkj.png", "favorite-categories" : [ "코믹", "멜로" ] }
나중에 더 고민해 봐야될듯…ㅠ