Skip to content

Commit

Permalink
moved event documentation from concepts to features (eclipse-archived…
Browse files Browse the repository at this point in the history
…#2422)

Signed-off-by: Kai Kreuzer <[email protected]>
  • Loading branch information
kaikreuzer authored and maggu2810 committed Nov 9, 2016
1 parent 864aa67 commit b400be4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion docs/_includes/documentation-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<li><a href="{{docu}}/concepts/items.html">Items</a></li>
<li><a href="{{docu}}/concepts/things.html">Things</a></li>
<li><a href="{{docu}}/concepts/discovery.html">Inbox & Discovery</a></li>
<li><a href="{{docu}}/concepts/events.html">Events</a></li>
</ul></li>
<li><a href="{{docu}}/features/index.html">Features</a>
<ul>
Expand Down
File renamed without changes.
12 changes: 3 additions & 9 deletions docs/documentation/features/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To subscribe to events a developer can listen to `/rest/events`. In general any

### Events

The framework broadcasts all events on the Eclipse SmartHome event bus also as an SEE event. A complete list of the framework event types can found in the [Core Event chapter](../concepts/events.html).
The framework broadcasts all events on the Eclipse SmartHome event bus also as an SEE event. A complete list of the framework event types can found in the [Event chapter](events.html).

All events are represented as JSON objects on the stream with the following format:

Expand All @@ -47,8 +47,8 @@ All events are represented as JSON objects on the stream with the following form
}
```

* `topic`: the event topic (see also [Runtime Events](../concepts/events.html))
* `type`: the event type (see also [Runtime Events](../concepts/event-type-definition.html))
* `topic`: the event topic (see also [Runtime Events](events.html))
* `type`: the event type (see also [Runtime Events](event-type-definition.html))
* `payload`: String, which contains the payload of the Eclipse SmartHome event. For all core events, the payload will be in the JSON format. For example the `smarthome/items/item123/added` event will include the new item that was added and the `smarthome/items/item123/updated` event will include both old and new item.

### Filtering
Expand Down Expand Up @@ -82,9 +82,3 @@ eventSource.addEventListener('message', function (eventPayload) {
}
});
```






0 comments on commit b400be4

Please sign in to comment.