Response Code Details: 200 plus data; 404 if not found, 406 if format unavailable
Retrieves the list of all sites that the current user can access. Supply a value for '_limit' to specify how many sites should be returned. Note that there is a system maximum that will override a specified value if it is larger than allowed. Supply a value for '_start' to page through results in multiple requests. For example, with 42 sites, requests with '_start' = 1, '_limit' = 50 and then '_start' = 51, '_limit' = 50 could be used to retrieve the first batch of 42 sites and the second being empty would signify the end of available results.
Response Code Details: 201 plus id (EntityId); 400 if inputs invalid
Adding a site will always set the owner/created by to the current user unless 'owner' is set to a userId, the minimum to create a site is the id and the type, all other fields are optional
Response Code Details: 200 plus data; 404 if not found, 406 if format unavailable
Allows viewing of data from a single site, use 'includeGroups' (boolean) to also get the groups data with the site
Response Code Details: 204; 400 if inputs invalid
Can update all writeable fields in the site including owner
Response Code Details: 204; 404 if not found
pages :
show (GET) :
[/site/:ID:/pages] (
xml) (
json) (
html) (
form)
Allows retrieval of all pages and tools in a site, use "props" (true/false, default false) to include page properties, use "config" (true/false, default false) to include tool configurations
setPerms :
edit (PUT) :
[/site/:ID:/setPerms]
Allows the setting of the permissions for the specified site by posting to the url /site/:SITEID:/setPerms. This is done by passing a set of post parameters where the key takes the form of 'ROLEID:FUNCTION' and the value is a boolean 'true' or 'false'. For example, passing the parameter 'maintain:blog.post.create=true' would switch the blog.post.create function on for the maintain role in the specified site.
exists :
show (GET) :
[/site/:ID:/exists] (
xml) (
json) (
html) (
form)
Returns an empty 200 if the site exists, and a failure (possibly 404) if it does not.
Note that you can also check this by simply using the show view of a site but that returns the site information as well so this is faster
perms :
show (GET) :
[/site/:ID:/perms] (
xml) (
json) (
html) (
form)
Allows the retrieval of the permissions for the specified site using a url like /site/:SITEID:/perms[/:PREFIX].json, where PREFIX allows the caller to limit the returned permissions to a subset. For example, the url '/direct/site/XYZ/perms/calendar.json' would return the calendar permissions for each role in the site 'XYZ'. Missing the PREFIX off would result in the permissions for all the tools in the site being returned.
userPerms :
show (GET) :
[/site/:ID:/userPerms] (
xml) (
json) (
html) (
form)
Allows the retrieval of the current user's permissions within the specified site using a url like /site/:SITEID:/userPerms[/:PREFIX], where PREFIX allows the caller to limit the returned permissions to a subset. For example, the url '/direct/site/XYZ/userPerms/calendar.json' would return the calendar permissions of the current user in the site 'XYZ'. Missing the PREFIX off would result in the permissions for all the tools in the site being returned.
withPerm :
* :
[/site/withPerm] (
xml) (
json) (
html) (
form)
The URL for example, /site/withPerm/.json?permission=site.upd
group :
* :
[/site/group] (
xml) (
json) (
html) (
form)
Allows access to group information directly using a url like: /site/siteId/group/groupId For membership actions use the Membership Provider
(GET) /direct/site/siteid/group/groupid - gets metadata for group but not membership.
(POST) /direct/site/siteid/group/groupid - updates metadata for group but not membership.
(PUT) /direct/site/siteid/group - create a new group in the site (returns group id). Parameters include title, description, optionally initial list of members.
(DELETE) /direct/site/siteid/group/groupid - delete an existing group in the site.
Output formats : xml, json, html, form
Input formats : html, xml, json
No Access Provider registered for request processing
| Name | Type | Description |
1 | CoreEntityProvider | org.sakaiproject.entitybroker.entityprovider.CoreEntityProvider | |
2 | EntityProvider | org.sakaiproject.entitybroker.entityprovider.EntityProvider | |
3 | ActionsExecutable | org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsExecutable | |
4 | CRUDable | org.sakaiproject.entitybroker.entityprovider.capabilities.CRUDable | |
5 | CollectionResolvable | org.sakaiproject.entitybroker.entityprovider.capabilities.CollectionResolvable | |
6 | Createable | org.sakaiproject.entitybroker.entityprovider.capabilities.Createable | |
7 | Deleteable | org.sakaiproject.entitybroker.entityprovider.capabilities.Deleteable | |
8 | DepthLimitable | org.sakaiproject.entitybroker.entityprovider.capabilities.DepthLimitable | |
9 | Describeable | org.sakaiproject.entitybroker.entityprovider.capabilities.Describeable | |
10 | Inputable | org.sakaiproject.entitybroker.entityprovider.capabilities.Inputable | |
11 | Outputable | org.sakaiproject.entitybroker.entityprovider.capabilities.Outputable | |
12 | RESTful | org.sakaiproject.entitybroker.entityprovider.capabilities.RESTful | |
13 | Redirectable | org.sakaiproject.entitybroker.entityprovider.capabilities.Redirectable | |
14 | RequestStorable | org.sakaiproject.entitybroker.entityprovider.capabilities.RequestStorable | |
15 | Resolvable | org.sakaiproject.entitybroker.entityprovider.capabilities.Resolvable | |
16 | Sampleable | org.sakaiproject.entitybroker.entityprovider.capabilities.Sampleable | |
17 | Saveable | org.sakaiproject.entitybroker.entityprovider.capabilities.Saveable | |
18 | Updateable | org.sakaiproject.entitybroker.entityprovider.capabilities.Updateable | The owner (a userId) value can now be changed once the site is created |