mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-07 10:58:25 +02:00
Add user profile endpoint (#541)
* feat: Implement UserProfile serializer and add API endpoint per #457 * chore: Document API addition * Address review comments --------- Co-authored-by: fkulla <mail@florian.direct>
This commit is contained in:
32
docs/API.md
32
docs/API.md
@@ -236,3 +236,35 @@ Example payload:
|
||||
"name": "example"
|
||||
}
|
||||
```
|
||||
|
||||
### User
|
||||
|
||||
**Profile**
|
||||
|
||||
```
|
||||
GET /api/user/profile/
|
||||
```
|
||||
|
||||
User preferences.
|
||||
|
||||
Example response:
|
||||
|
||||
```json
|
||||
{
|
||||
"theme": "auto",
|
||||
"bookmark_date_display": "relative",
|
||||
"bookmark_link_target": "_blank",
|
||||
"web_archive_integration": "enabled",
|
||||
"tag_search": "lax",
|
||||
"enable_sharing": true,
|
||||
"enable_public_sharing": true,
|
||||
"enable_favicons": false,
|
||||
"display_url": false,
|
||||
"permanent_notes": false,
|
||||
"search_preferences": {
|
||||
"sort": "title_asc",
|
||||
"shared": "off",
|
||||
"unread": "off"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user