소스 검색

Fix typo

master
Skylar Ittner 1 년 전
부모
커밋
02fdca4b60
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      docs/Self-Hosting and Development/API Documentation.md

+ 2
- 2
docs/Self-Hosting and Development/API Documentation.md 파일 보기

@@ -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.

Loading…
취소
저장