You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
현재 상황
Authorizatino Header
를 통해 요청자 정보를 확인하는 상태위의 API 뿐 만 아니라, 전체적으로 다른 사용자의 페이지(홈, 책장, 책 상세보기)에 대한 처리가 명확하지 않은 상태입니다.
이로 인해서, 1) 계층형 URI 구조 적용, 2) 현재 URI 유지 + 응답에 소유자 정보(ownerId) 추가 두 가지 케이스를 생각을 해봤어요.
방안 1. 계층형 URI 구조
장점
단점
/home
), 책장(/books
)와 같은 형태로 이동하며 토큰 기반으로 API를 호출하고 있어 백/프론트 둘 다 변경하는 작업이 불가피해보입니다. (이건 필수인 것 같아요.)방안 2. 현재 URI 유지 + 응답에 소유자 정보(ownerId) 추가
장점
단점
위와 같은 상황이라 제 생각은 다음과 같아요
어떤 방식으로 처리하는게 좋을까요?
Beta Was this translation helpful? Give feedback.
All reactions