Function minerva_rest::controller::user::index
source · [−]async fn index(
tenant: String,
session: SessionInfo,
page: Option<i64>
) -> Result<Json<Vec<User>>, ErrorResponse>
Expand description
Route for listing all users.
This route uses the concept of pages, starting with page index 0
. The
page number should be passed as a request parameter through the URL, under
a value named page
. If omitted, it is assumed to be 0
.
Upon success, returns a list of users in JSON format, containing up to the
number of users per page as defined in the USER
microservice.