DtUsersController — REST endpoints for managing the local user database at runtime.
All write operations persist changes immediately to the users.json file. Password hashes are never included in any response body.
Routes: GET /api/configure/users — list all users POST /api/configure/users — add a new user DELETE /api/configure/users/{username} — remove a user PUT /api/configure/users/{username}/permissions — replace a user's extra permissions PUT /api/configure/users/{username}/preset — set or clear a user's preset PUT /api/configure/users/{username}/password — set or clear a user's password GET /api/configure/presets — list available permission presets
Required permissions:
- Read operations: users.read
- Write operations: users.write
|
| | DtUsersController (const std::shared_ptr< ObjectMapper > &objectMapper) |
| |
| | ENDPOINT_INFO (getUsers) |
| |
| | ENDPOINT ("GET","/api/configure/users", getUsers, REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
| | ENDPOINT_INFO (addUser) |
| |
| | ENDPOINT ("POST","/api/configure/users", addUser, REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
| | ENDPOINT_INFO (deleteUser) |
| |
| | ENDPOINT ("DELETE","/api/configure/users/{username}", deleteUser, PATH(String, username), REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
| | ENDPOINT_INFO (setUserPermissions) |
| |
| | ENDPOINT ("PUT","/api/configure/users/{username}/permissions", setUserPermissions, PATH(String, username), REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
| | ENDPOINT_INFO (setUserPreset) |
| |
| | ENDPOINT ("PUT","/api/configure/users/{username}/preset", setUserPreset, PATH(String, username), REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
| | ENDPOINT_INFO (setUserPassword) |
| |
| | ENDPOINT ("PUT","/api/configure/users/{username}/password", setUserPassword, PATH(String, username), REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
| | ENDPOINT_INFO (getPresets) |
| |
| | ENDPOINT ("GET","/api/configure/presets", getPresets, REQUEST(std::shared_ptr< IncomingRequest >, request)) |
| |
|
| std::shared_ptr< OutgoingResponse > | handleGetUsers (const std::shared_ptr< IncomingRequest > &req) |
| |
| std::shared_ptr< OutgoingResponse > | handleAddUser (const std::shared_ptr< IncomingRequest > &req) |
| |
| std::shared_ptr< OutgoingResponse > | handleDeleteUser (const std::shared_ptr< IncomingRequest > &req, const String &username) |
| |
| std::shared_ptr< OutgoingResponse > | handleSetUserPermissions (const std::shared_ptr< IncomingRequest > &req, const String &username) |
| |
| std::shared_ptr< OutgoingResponse > | handleSetUserPreset (const std::shared_ptr< IncomingRequest > &req, const String &username) |
| |
| std::shared_ptr< OutgoingResponse > | handleSetUserPassword (const std::shared_ptr< IncomingRequest > &req, const String &username) |
| |
| std::shared_ptr< OutgoingResponse > | handleGetPresets (const std::shared_ptr< IncomingRequest > &req) |
| |