Skip to content

Commit

Permalink
API endpoints for chat
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbrendel committed Oct 11, 2024
1 parent 2bd5471 commit a71de5f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,24 @@ Remove an existing calendar entry
ANY /api/calendar/remove?ident=(entry item ID)
```

### Chat

#### Fetch chat content

Fetches recent content of the chat

```
ANY /api/chat/fetch?limit=(maximum amount of returned chat messages)
```

#### Add chat message

Adds a new chat message using `System` as username.

```
ANY /api/chat/message/add?message=(message content)
```

### API call results

The returned responses of an API call depends on whether the operation succeeded or failed.
Expand Down

0 comments on commit a71de5f

Please sign in to comment.