RephiWeb.UserController (Rephi v0.0.2)

View Source

Controller for user management endpoints.

This controller handles user-related operations including listing all users. All actions require authentication and specific permissions.

Endpoints

  • GET /api/users - List all users (requires admin role)

Permission Requirements

All actions require authentication and admin role.

Summary

Functions

delete(conn, map)

get_user_roles(conn, map)

index(conn, params)

show(conn, map)

swagger_definitions()

swagger_path_delete(route)

Deletes a user.

Permanently removes a user from the system. Only accessible by users with admin role.

swagger_path_get_user_roles(route)

Gets roles for a specific user.

Returns a list of roles assigned to the user. Only accessible by users with admin role.

swagger_path_index(route)

Lists all users in the system.

Returns a list of all users with their roles and permissions. Only accessible by users with admin role.

swagger_path_show(route)

Shows a specific user by ID.

Returns detailed information about a user including roles and permissions. Only accessible by users with admin role.

swagger_path_update(route)

Updates a user.

Allows updating user information. Only accessible by users with admin role.

update(conn, params)