-
Notifications
You must be signed in to change notification settings - Fork 123
(Core API) event
Thomas Muldowney edited this page Apr 14, 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
This is a service method and must have the sending service id before the method.
/9fdfb7e5c6551dc45300aeb0d21fdff4/event
This would post an event from service 9fdfb7e5c6551dc45300aeb0d21fdff4
application/json
A JSON object that must have:
- type: The type for the event
- obj: An arbitrary JSON object of the actual event. This is posted to the callbacks
{
type:"test/event",
obj: {
test:"value"
}
}
application/json
- 200: It was registered! OKTHXBI
- 400: The type or cb were not specified.
- 404: The service id in the URI is not a valid installed service.