Provides a way to get the latest spaces ordered by last access and to be able to filter spaces, based on the application Id in the spaces.
URL:
http://{domain_name}/{rest_context_name}/private/{portalName}/social/spaces/lastVisitedSpace/list.{format}
Level API: Platform
Requires Authentication: true
Parameters:
Required (path parameters):
Parameter | Description |
---|---|
portalName | The portal container name. |
format | The format of the returned result, for example, JSON, or XML. |
Optional (query parameters):
Parameter | Description |
---|---|
appId | The application Id which is contained in spaces to filter, such as, Wiki, Discussion, Documents, Agenda and more. |
offset | Specifies the staring point of the returned results. It must be greater than or equal to 0. |
limit | Specifies the ending point of the returned results. It must be less than or equal to 10. |
Request example:
GET: {@code http://localhost:8080/rest/private/social/spaces/lastVisitedSpace/list.json?appId=Wiki&offset=0&limit=10}
Response:
{ "spaces":[ {"groupId":"/spaces/space_2","spaceUrl":null,"name":"space_2","displayName":"space 2","url":"space_2"}, {"groupId":"/spaces/space_1","spaceUrl":null,"name":"space_1","displayName":"space 1","url":"space_1"} ], "moreSpacesUrl":null }