RESTActivityServer
This class represents the RESTful interface to the activity server.
The following resources are applicable:
/activity/events
GET
This method returns a list of ActivityType (activity event) objects associated with the supplied context type and value.
Parameters
name | description | type | default |
---|---|---|---|
type | The type | query | |
value | The value | query | |
from | The optional 'from' timestamp | query | 0 |
to | The optional 'to' timestamp | query | 0 |
Response Body
element: | (custom) |
media types: | application/json |
The list of ActivityType event objects
/activity/query
This resource has been deprecated.
POST
This operation has been deprecated. No longer supported as it introduces a dependency between clients and the ActivityStore implementation
This method handles queries for activity events.
Request Body
element: | qspec |
media types: | */* application/xml |
The query spec
Response Body
element: | (custom) |
media types: | application/json |
The list of activity events
/activity/store
POST
This method stores the supplied list of ActivityUnit objects.
Request Body
element: | acts |
media types: | application/json |
The list of ActivityUnit objects
Response Body
element: | (custom) |
media types: | text/plain |
A response indicating success or failure
/activity/unit
GET
This method handles queries for activity events.
Parameters
name | description | type | default |
---|---|---|---|
id | The id | query |
Response Body
element: | ActivityUnit |
media types: | application/json |
The list of activity events