added root tokens and endpoint for adding api keys (#742)

* added root tokens and endpoint for adding api keys

* Change down revision to current alembic head

* removed added_by_root_token

* refactored description

* fixed jinja errors

Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com>
This commit is contained in:
Yannic Kilcher
2023-01-15 21:24:25 +00:00
committed by GitHub
co-authored by Andreas Köpf
parent e58ffd64fa
commit cc03376d86
8 changed files with 97 additions and 19 deletions
@@ -17,6 +17,7 @@ class OasstErrorCode(IntEnum):
GENERIC_ERROR = 0
DATABASE_URI_NOT_SET = 1
API_CLIENT_NOT_AUTHORIZED = 2
ROOT_TOKEN_NOT_AUTHORIZED = 3
TOO_MANY_REQUESTS = 429
SERVER_ERROR0 = 500