From f11bb79396e18d1b1b031a1c8b49ad0558d24d22 Mon Sep 17 00:00:00 2001 From: CasVT Date: Fri, 23 Feb 2024 15:32:53 +0000 Subject: [PATCH] Updated API docs --- docs/api.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/api.md b/docs/api.md index bc4557b..b6c1c02 100644 --- a/docs/api.md +++ b/docs/api.md @@ -662,6 +662,34 @@ Replace `` with the ID of the entry. For example: `/staticreminders/2` | 200| N/A | Success | | 404 | ReminderNotFound | The reminder with the id can not be found | +### `/admin/shutdown` + +| Requires being logged in | Description | +| ------------------------ | ----------- | +| Yes | Shut down the application | + +??? POST + + **Returns** + + | Code | Error | Description | + | ---- | ----- | ----------- | + | 201| N/A | Success | + +### `/admin/restart` + +| Requires being logged in | Description | +| ------------------------ | ----------- | +| Yes | Restart the application | + +??? POST + + **Returns** + + | Code | Error | Description | + | ---- | ----- | ----------- | + | 201| N/A | Success | + ### `/settings` | Requires being logged in | Description |