call code iff user is logged in
call code iff user is logged in
Disable a route without having to comment out the entry in the routes file.
Disable a route without having to comment out the entry in the routes file. Useful for when we want to keep the code around but we don't want users to have access to it.
call code iff user has right permission for resource
call code iff user has right permission for resource
Use when you want to require the user to be logged in on a private server or the server is public.
Use when you want to require the user to be logged in on a private server or the server is public.
call code iff user is a server admin
call code iff user is a server admin
get user if logged in
get user if logged in
Return user based on request object
Return user based on request object
String name of the Space such as 'Project space' etc.
String name of the Space such as 'Project space' etc., parsed from conf/messages
REST endpoint: POST call to update the configuration information associated with a specific Space
REST endpoint: POST call to update the configuration information associated with a specific Space
Takes one arg, id:
id, the UUID associated with the space that will be updated
The data contained in the request body will defined by the following String key-value pairs:
description -> The text for the updated description for the space name -> The text for the updated name for this space timetolive -> Text that represents an integer for the number of hours to retain resources enabled -> Text that represents a boolean flag for whether or not the space should purge resources that have expired
REST endpoint: POST call to update the user information associated with a specific Space
REST endpoint: POST call to update the user information associated with a specific Space
Takes one arg, spaceId:
spaceId, the UUID associated with the space that will be updated
The data contained in the request body will defined by the following String key-value pairs:
rolesandusers -> A map that contains a role level as a key and a comma separated String of user IDs as the value
Spaces allow users to partition the data into realms only accessible to users with the right permissions.