-
- Bitbucket REST API: GET /user/{userSlug}
- With own resourceExamples:
- JIRA REST API: GET /myself
- GitHub REST API: GET /user
- Stack Exchange REST API: GET /me
- This solution has one resource for users and one additional resource for logged in user.
- With symbolic linkExample:
- Confluence REST API: GET /user/current
- This solution has a symbolic link for the ID of the user.
- With filterExample:
- JIRA REST API: GET /user?username={username}
- This solution uses a filter for the user name.
Designing URI for current logged in user in REST applications
I need a URI in my REST API to retrieve the current logged in user. Usually I use GET on resource with ID, but the client doesn't know the ID of the user. I found the following solutions: By user ...
stackoverflow.com
'misc' 카테고리의 다른 글
[Redis] Sorted Set의 자료구조 - Skip list & Hash table (0) | 2024.08.10 |
---|---|
[발표자료] 개발자의 관점에서 바라본 UX 이론 - 220718 매쓰팡 사내 세션 (0) | 2022.08.21 |
[Git] 이전에 작업한 브랜치로 바꾸기:`git checkout -` (0) | 2022.01.10 |
프로그래밍의 본질 - from 개발자의 평생공부 칼럼 (0) | 2021.08.21 |