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

Method

POST

URI

This is a service method and must have the sending service id before the method.

URI Example

/9fdfb7e5c6551dc45300aeb0d21fdff4/event

This would post an event from service 9fdfb7e5c6551dc45300aeb0d21fdff4

POST Content-Type

application/json

Arguments

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

Arguments Example

{
    type:"test/event",
    obj: {
        test:"value"
    }
}

Result Content-Type

application/json

Result

  • 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.
Clone this wiki locally