Skip to content
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.

Method

POST

POST Content-Type

application/json

Arguments

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

Arguments Example

{
    type:"test/event",
    id:"9fdfb7e5c6551dc45300aeb0d21fdff4",
    obj: {
        test:"value"
    }
}

Result Content-Type

application/json

Result

  • 200: It was registered! OKTHXBI
  • 400: The type or cb were not specified.
  • 404: The id is not a valid installed service.

Clone this wiki locally