-
Notifications
You must be signed in to change notification settings - Fork 121
(Core API) event
Thomas Muldowney edited this page Apr 6, 2011
·
3 revisions
The event is passed as a small JSON wrapper to a JSON object itself. The event is sent to any listeners that are listening for the supplied type. The wrapped object is posted directly to the listener callback.
POST
application/json
A JSON object that must have:
- type: The type for the event
- id: The service id of the event originator
- obj: An arbitrary JSON object of the actual event. This is posted to the callbacks
{
type:"test/event",
id:"9fdfb7e5c6551dc45300aeb0d21fdff4",
obj: {
test:"value"
}
}application/json
- 200: It was registered! OKTHXBI
- 400: The type or cb were not specified.
- 404: The id is not a valid installed service.