From ea0bbab6802a14cbd18e7075ecefa4d2558971be Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Thu, 15 Aug 2024 22:50:01 -0400 Subject: [PATCH] Update api-documents.md --- docs/api-documents.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/api-documents.md b/docs/api-documents.md index 0c3d886..7460c33 100644 --- a/docs/api-documents.md +++ b/docs/api-documents.md @@ -60,6 +60,8 @@ This endpoint is designed for a simple handshake when using API key to connect. ``` > Notice: this `401` response will return at all endpoint if your API Key or session is invalid. +
+ ### Validate Authentication This endpoint if needed for non-cross-server access. This will check if the cookie on the client side is still valid on the server side. @@ -91,6 +93,7 @@ Session is invalid "status": false } ``` +
### Authenticate @@ -141,6 +144,8 @@ If username, password or TOTP is not match } ``` +
+ ### Sign Out To remove the current session on server side @@ -200,6 +205,7 @@ To get all WireGuard configurations in `/etc/wireguard` "status": true } ``` +
### Add WireGuard Configuration @@ -282,6 +288,7 @@ If the new configuration's `Address` is used by another configuration "status": false } ``` +
### Toggle WireGuard Configuration