Refactor and add new user-related endpoints for projects

This commit is contained in:
faris Aljohari
2024-12-30 18:59:42 -06:00
parent 5220722579
commit 7e6e34a3de
6 changed files with 224 additions and 93 deletions

View File

@ -22,6 +22,19 @@ export class ControllerRoute {
public static readonly DELETE_PROJECT_DESCRIPTION =
'This endpoint deletes an existing project by its unique identifier (UUID).';
public static readonly GET_USERS_BY_PROJECT_SUMMARY =
'Get users by project';
public static readonly GET_USERS_BY_PROJECT_DESCRIPTION =
'This endpoint retrieves all users associated with a specific project.';
public static readonly GET_USER_BY_UUID_IN_PROJECT_SUMMARY =
'Get user by uuid in project';
public static readonly GET_USER_BY_UUID_IN_PROJECT_DESCRIPTION =
'This endpoint retrieves a user by their unique identifier (UUID) associated with a specific project.';
};
};
static PROJECT_USER = class {
public static readonly ROUTE = '/projects/:projectUuid/user';
static ACTIONS = class {
public static readonly GET_USERS_BY_PROJECT_SUMMARY =
'Get users by project';
public static readonly GET_USERS_BY_PROJECT_DESCRIPTION =