Add 'event' to event context API

also link through to the event schemas
pull/977/head
Richard van der Hoff 8 years ago
parent 2ed95a9a40
commit b2e0a855cc

@ -67,23 +67,28 @@ paths:
A list of room events that happened just before the
requested event.
items:
type: object
title: RoomEvent
allOf:
- "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml"
event:
description: |-
Details of the requested event.
allOf:
- "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml"
events_after:
type: array
description: |-
A list of room events that happened just after the
requested event.
items:
type: object
title: RoomEvent
allOf:
- "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml"
state:
type: array
description: |-
The state of the room at the last event returned.
items:
type: object
title: RoomEvent
allOf:
- "$ref": "../../event-schemas/schema/core-event-schema/state_event.yaml"
examples:
application/json: |-
{

@ -9,6 +9,8 @@ specified event. This allows clients to get the context surrounding an event.
Client behaviour
----------------
There is a single HTTP API for retrieving event context, documented below.
{{event_context_http_api}}
Security considerations

Loading…
Cancel
Save