Skylar Ittner 1 anno fa
parent
commit
02fdca4b60
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      docs/Self-Hosting and Development/API Documentation.md

+ 2
- 2
docs/Self-Hosting and Development/API Documentation.md Vedi File

@@ -1,6 +1,6 @@
# API Documentation

The NotePost API is extremely simple to use. Requests can be sent via GET or POST, and responses are sent in JSON.
The AccountHub API is extremely simple to use. Requests can be sent via GET or POST, and responses are sent in JSON.

## Request Structure

@@ -46,4 +46,4 @@ If the request is not well-formed (missing required arguments, invalid credentia
| `getnotifications` | `username` or `uid` | Get notifications for the user. When successful, returns an array `notifications` with items similar to: `{"id": 1, "timestamp": "YYYY-MM-DD HH:MM:SS", "title": "text", "content": "text", "url": "text", "seen": false, "sensitive": false}`
| `readnotification` | `username` or `uid`, `id` | Mark the notification identified by the user and notification ID as read. Sets `seen` to `true` in future calls to `getnotifications`, and changes how the notification is displayed in the UI.
| `addnotification` | `username` or `uid`, `title`, `content`, `timestamp` (optional, defaults to current date/time), `url` (optional, defaults to empty string), `sensitive` (optional, defaults to `false`) | Add a notification for the given user with the content.
| `deletenotification` | `username` or `uid`, `id` | Delete the notification identified by the user and notifiation ID.
| `deletenotification` | `username` or `uid`, `id` | Delete the notification identified by the user and notifiation ID.

Caricamento…
Annulla
Salva