Skip to content
Snippets Groups Projects

Resolve "Create Review Page"

Merged Daniel Göbel requested to merge feature/46-create-review-page into development
10 files
+ 1271
987
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -13,6 +13,7 @@ export class UserService {
/**
* Get the logged in user
* Return the user associated with the used JWT.
* Permission 'user:read' required.
* @returns User Successful Response
* @throws ApiError
*/
@@ -31,16 +32,18 @@ export class UserService {
/**
* List users and search by their name
* Return the users that have a specific substring in their name.
* Permission 'user:read_any' required, except when 'name_substring' as only query parameter is set.
* Then permission 'user:search' required.
* @param nameSubstring Filter users by a substring in their name. Permission 'search_user' required
* @param filterRoles Filter users by their role. If multiple are selected, they are concatenating by an OR Expresssion. Permission 'read_any' required
* @param includeRole Flag whether to include the roles of the users in the response. If True, permission 'read_any' required.
* @param includeRoles Flag whether to include the roles of the users in the response. If True, permission 'read_any' required.
* @returns User Successful Response
* @throws ApiError
*/
public static userListUsers(
nameSubstring?: string,
filterRoles?: Array<RoleEnum>,
includeRole: boolean = false,
includeRoles: boolean = false,
): CancelablePromise<Array<User>> {
return __request(OpenAPI, {
method: 'GET',
@@ -48,7 +51,7 @@ export class UserService {
query: {
'name_substring': nameSubstring,
'filter_roles': filterRoles,
'include_role': includeRole,
'include_roles': includeRoles,
},
errors: {
400: `Error decoding JWT Token`,
@@ -63,11 +66,13 @@ export class UserService {
* Get a user by its uid
* Return the user with the specific uid. A user can only view himself.
* @param uid UID of a user
* @param includeRoles Flag whether to include the roles of the users in the response. If True, permission 'read_any' required.
* @returns User Successful Response
* @throws ApiError
*/
public static userGetUser(
uid: string,
includeRoles: boolean = false,
): CancelablePromise<User> {
return __request(OpenAPI, {
method: 'GET',
@@ -75,6 +80,9 @@ export class UserService {
path: {
'uid': uid,
},
query: {
'include_roles': includeRoles,
},
errors: {
400: `Error decoding JWT Token`,
403: `Not Authorized`,
Loading