Merge pull request #390 from matrix-org/erikj/filter_url
Add contains_url filter option and /messages filter
This commit is contained in:
commit
2dde1a8d28
3 changed files with 15 additions and 0 deletions
|
@ -28,4 +28,8 @@ properties:
|
|||
items:
|
||||
type: string
|
||||
type: array
|
||||
contains_url:
|
||||
type: boolean
|
||||
description: If ``true``, includes only events with a url key in their content. If
|
||||
``false``, excludes those events.
|
||||
type: object
|
||||
|
|
|
@ -75,6 +75,13 @@ paths:
|
|||
description: |-
|
||||
The maximum number of events to return. Default: 10.
|
||||
x-example: "3"
|
||||
- in: query
|
||||
type: string
|
||||
name: filter
|
||||
description: |-
|
||||
A JSON RoomEventFilter to filter returned events with.
|
||||
x-example: |-
|
||||
{"contains_url":true}
|
||||
responses:
|
||||
200:
|
||||
description: A list of messages with a new token to request more.
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
- Add top-level ``account_data`` key to the responses to ``GET /sync`` and
|
||||
``GET /initialSync``
|
||||
(`#380 <https://github.com/matrix-org/matrix-doc/pull/380>`_).
|
||||
- Add ``contains_url`` option to ``RoomEventFilter``.
|
||||
(`#390 <https://github.com/matrix-org/matrix-doc/pull/390>`_).
|
||||
- Add ``filter`` optional query param to ``/messages``
|
||||
(`#390 <https://github.com/matrix-org/matrix-doc/pull/390>`_).
|
||||
|
||||
r0.2.0
|
||||
======
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue