Admin API for managing Registration Tokens #26
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Telodendria/Telodendria#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The administrator API should provide functions for managing registration tokens. This issue documents the endpoints and how they should be implemented.
GET /_telodendria/admin/tokens
Gets a list of all tokens present, and additional information.
200 Response JSON Format:
TokenInfo
JSON Format:403 Response JSON Format:
200 Response Example:
403 Response JSON Format:
GET /_telodendria/admin/tokens/[token]
Returns information about a specific registration token.
200 Response JSON Format:
200 Response Example:
POST /_telodendria/admin/tokens
Adds a registration token, and setup expiry date and max uses.
Request JSON Format:
Request Example:
200 Response JSON Format:
200 Response Example:
403 Response JSON Format:
DELETE /_telodendria/admin/tokens/[tokenname]
Description: Deletes an existing registration token.
403 Response JSON Format:
And here's the checklist that we can update as we implement these: