From 0a124c3e7bc5c0e840d45399ad5e69485bb3e49c Mon Sep 17 00:00:00 2001 From: octycs Date: Wed, 18 Mar 2020 18:33:39 +0100 Subject: [PATCH] Add global Readme and update server Readme --- Readme.md | 4 ++++ server/Readme.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..d4c50a4 --- /dev/null +++ b/Readme.md @@ -0,0 +1,4 @@ +This repo bundles all parts of the keytracker project: +- `server`: The keytracker backend that provides the API +- `frontend`: The web frontend for the keytracker +- `telegram`: The Telegram Bot (which also uses the API) diff --git a/server/Readme.md b/server/Readme.md index dec0f00..6546eaf 100644 --- a/server/Readme.md +++ b/server/Readme.md @@ -19,7 +19,7 @@ The token and history remain in the database and can still be used, however it i to retrieve the key name and get a new auth token to query the keyholder. Changing the key name does also automatically update as the key name is not stored in the database. The same applies for the password. Note that when the password is changed all users that already -have access to the keyholder data keep their access (The auth token remain valid) +have access to the keyholder data keep their access (The auth token remain valid). Changing the key id is equivalent to adding a new key and deleting the old key. Changing the claim token will automatically add the new token to the database, however the old token will not automatically be invalidated. To invalidate the old key (e.g. to invalidate a QR code), @@ -44,7 +44,7 @@ Return up to 3 of the latest keyholder as JSON list (first element is the curren `[{"name": "", "contact": "", "timestamp": }, ...]`. If the auth token is not allowed to query the keyholder a 403 error is returned. -*/status/* (GET) +*/status/\* (GET) Query whether the given claim is still the latest. This is the only request that does not require a token. It may return the following values: `unknown` - the claim id is unknown