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:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
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
|
type: object
|
||||||
|
|
|
@ -75,6 +75,13 @@ paths:
|
||||||
description: |-
|
description: |-
|
||||||
The maximum number of events to return. Default: 10.
|
The maximum number of events to return. Default: 10.
|
||||||
x-example: "3"
|
x-example: "3"
|
||||||
|
- in: query
|
||||||
|
type: string
|
||||||
|
name: filter
|
||||||
|
description: |-
|
||||||
|
A JSON RoomEventFilter to filter returned events with.
|
||||||
|
x-example: |-
|
||||||
|
{"contains_url":true}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: A list of messages with a new token to request more.
|
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
|
- Add top-level ``account_data`` key to the responses to ``GET /sync`` and
|
||||||
``GET /initialSync``
|
``GET /initialSync``
|
||||||
(`#380 <https://github.com/matrix-org/matrix-doc/pull/380>`_).
|
(`#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
|
r0.2.0
|
||||||
======
|
======
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue