Skip to content

Commit

Permalink
Add rest api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekeSnider committed Dec 29, 2019
1 parent 97b8a92 commit 051db5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file modified Screenshots/MainWindow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions restapi.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# REST API

If enabled, Jared exposes a webserver on the port `3000`.

If enabled, Jared exposes a webserver on the port `3000`. You can configure what port it starts up in the `config.json` file under the `webserver.port` property.

## Endpoints
`POST` `/message`

This allows you to send (current) text messages to any Person. You will receive a 200 status code if Jared successfully parsed your request and passed it on to the handler. Otherwise, you may receive a 400 bad request exception.
This allows you to send text messages to any Person. You will receive a 200 status code if Jared successfully parsed your request and passed it on to the handler. Otherwise, you may receive a 400 bad request exception. Note that the message will not be send if Jared is not "enabled" in the UI.

```
{
Expand Down

0 comments on commit 051db5f

Please sign in to comment.