feat(api): Add new endpoint to get a user by its username

This commit is contained in:
Jesse Wierzbinski 2024-07-17 14:02:29 +02:00
parent 407eb5e205
commit be881f18cd
No known key found for this signature in database
9 changed files with 124 additions and 3 deletions

View file

@ -50,12 +50,13 @@ Contains the same extensions as `/api/v1/instance`, except `banner` which uses t
(`/api/v1/accounts/:id`, `/api/v1/accounts/verify_credentials`, ...)
An extra attribute has been adding to all returned account objects:
Two extra attributes has been adding to all returned account objects:
```ts
{
// ...
roles: LysandRoles[];
uri: string;
}
```
@ -63,7 +64,11 @@ An extra attribute has been adding to all returned account objects:
An array of roles from [Lysand Roles](./roles.md).
### `/api/v1/accounts/update_credentials`
### `uri`
The URI of the account's Lysand object (for federation). Similar to Mastodon's `uri` field on notes.
## `/api/v1/accounts/update_credentials`
The `username` parameter can now (optionally) be set to change the user's handle.