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 optional context type and value and optional time range. If a context is not provided then at time range must be supplied, otherwise an error will be reported.

Parameters

name description type default
type The optional type query
value The optional value query
from The optional 'from' timestamp query 0
to The optional 'to' timestamp query 0

Response Body

element: ActivityType
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: ActivityUnit
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