Merge pull request #2344 from matrix-org/travis/spec/fix-2338

Add filter query param to /context
This commit is contained in:
Travis Ralston 2019-11-06 10:53:21 -07:00 committed by GitHub
commit 14d609e766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -59,6 +59,18 @@ paths:
description: |-
The maximum number of events to return. Default: 10.
x-example: 3
- in: query
name: filter
type: string
description: |-
A JSON ``RoomEventFilter`` to filter the returned events with. The
filter is only applied to ``events_before``, ``events_after``, and
``state``. It is not applied to the ``event`` itself. The filter may
be applied before or/and after the ``limit`` parameter - whichever the
homeserver prefers.
See `Filtering <#filtering>`_ for more information.
x-example: "66696p746572"
responses:
200:
description: The events and state surrounding the requested event.

View file

@ -0,0 +1 @@
Add missing information on how filters are meant to work with ``/context``.