mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add refetching API
This commit is contained in:
parent
f081941474
commit
7c285ee14d
3 changed files with 81 additions and 0 deletions
22
docs/api/federation.md
Normal file
22
docs/api/federation.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Federation API
|
||||
|
||||
The Federation API contains a variety of endpoints for interacting with the Lysand remote network.
|
||||
|
||||
## Refetch User
|
||||
|
||||
```http
|
||||
POST /api/v1/accounts/:id/refetch
|
||||
```
|
||||
|
||||
Refetches the user's account from the remote network.
|
||||
|
||||
### Response
|
||||
|
||||
Returns the updated account object.
|
||||
```ts
|
||||
// 200 OK
|
||||
{
|
||||
id: string,
|
||||
... // Account object
|
||||
}
|
||||
```
|
||||
|
|
@ -23,6 +23,10 @@ For client developers. Please read [the documentation](./challenges.md).
|
|||
|
||||
For client developers. Please read [the documentation](./moderation.md).
|
||||
|
||||
## Federation API
|
||||
|
||||
For client developers. Please read [the documentation](./federation.md).
|
||||
|
||||
## Frontend API
|
||||
|
||||
For frontend developers. Please read [the documentation](./frontend.md).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue