Repository navigation
feat: add GET /1/account and deprecate GET /1/users/self - #379
Conversation
GET /1/account returns the current user's account information as a plain
object (no legacy { message, data } wrapper). It lives on the account
controller and, unlike the rest of it, also accepts API tokens so token
clients can migrate off /1/users/self.
/1/users/self keeps working with its legacy wrapper and is marked
obsolete, which shows as deprecated in the OpenAPI document.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
GET /1/account returns the current user's account information as a plain object (no legacy { message, data } wrapper). It lives on the account controller and, unlike the rest of it, also accepts API tokens so token clients can migrate off /1/users/self.
/1/users/self keeps working with its legacy wrapper and is marked obsolete, which shows as deprecated in the OpenAPI document.
Summary by CodeRabbit
GET /1/accountfor retrieving the current user’s ID, name, email, image, roles, and password status. It supports session and API-token authentication.GET /1/users/selfendpoint is deprecated, with callers directed toGET /1/account. It remains available with the legacyrankfield for compatibility.