mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-11 07:38:49 +00:00
space management without roles
This commit is contained in:
@ -70,6 +70,16 @@ export class ControllerRoute {
|
||||
};
|
||||
};
|
||||
|
||||
static USER_SPACE = class {
|
||||
public static readonly ROUTE = '/user/:userUuid/spaces';
|
||||
static ACTIONS = class {
|
||||
public static readonly GET_USER_SPACES_SUMMARY =
|
||||
'Retrieve list of spaces a user belongs to';
|
||||
public static readonly GET_USER_SPACES_DESCRIPTION =
|
||||
'This endpoint retrieves all the spaces that a user is associated with, based on the user ID. It fetches the user spaces by querying the UserSpaceEntity to find the spaces where the user has an association.';
|
||||
};
|
||||
};
|
||||
|
||||
static SPACE = class {
|
||||
public static readonly ROUTE = '/communities/:communityId/spaces';
|
||||
static ACTIONS = class {
|
||||
@ -93,9 +103,30 @@ export class ControllerRoute {
|
||||
public static readonly UPDATE_SPACE_DESCRIPTION =
|
||||
'Updates a space by its UUID and community ID. You can update the name, parent space, and other properties. If a parent space is provided and not already a parent, its `isParent` flag will be set to true.';
|
||||
|
||||
public static readonly GET_HEIRARCHY_SUMMARY = 'Get spaces hierarchy';
|
||||
public static readonly GET_HEIRARCHY_SUMMARY = 'Get space hierarchy';
|
||||
public static readonly GET_HEIRARCHY_DESCRIPTION =
|
||||
'Fetches all spaces within a community and returns them in a hierarchical structure with parent-child relationships.';
|
||||
'This endpoint retrieves the hierarchical structure of spaces under a given space ID. It returns all the child spaces nested within the specified space, organized by their parent-child relationships. ';
|
||||
|
||||
public static readonly CREATE_INVITATION_CODE_SPACE_SUMMARY =
|
||||
'Generate a new invitation code for a specific space';
|
||||
public static readonly CREATE_INVITATION_CODE_SPACE_DESCRIPTION =
|
||||
'This endpoint generates a new 6-character invitation code for a space identified by its UUID and stores it in the space entity';
|
||||
};
|
||||
};
|
||||
|
||||
static SPACE_USER = class {
|
||||
public static readonly ROUTE =
|
||||
'/communities/:communityId/spaces/:spaceId/user';
|
||||
static ACTIONS = class {
|
||||
public static readonly ASSOCIATE_SPACE_USER_SUMMARY =
|
||||
'Associate a user to a space';
|
||||
public static readonly ASSOCIATE_SPACE_USER_DESCRIPTION =
|
||||
'Associates a user with a given space by their respective UUIDs';
|
||||
|
||||
public static readonly DISSOCIATE_SPACE_USER_SUMMARY =
|
||||
'Disassociate a user from a space';
|
||||
public static readonly DISSOCIATE_SPACE_USER_DESCRIPTION =
|
||||
'Disassociates a user from a space by removing the existing association.';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user