mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Merge pull request #224 from matrix-org/markjh/filter_inline
Allow the filter JSON to be passed inline in the /sync request
This commit is contained in:
commit
a33e49fd1e
|
|
@ -32,7 +32,13 @@ paths:
|
||||||
name: filter
|
name: filter
|
||||||
type: string
|
type: string
|
||||||
description: |-
|
description: |-
|
||||||
The ID of a filter created using the filter API.
|
The ID of a filter created using the filter API or a filter JSON
|
||||||
|
object enocoded as a string. The server will detect whether it is
|
||||||
|
an ID or a JSON object by whether the first character is a ``"{"``
|
||||||
|
open brace. Passing the JSON inline is best suited to one off
|
||||||
|
requests. Creating a filter using the filter API is recommended for
|
||||||
|
clients that reuse the same filter multiple times, for example in
|
||||||
|
long poll requests.
|
||||||
x-example: "66696p746572"
|
x-example: "66696p746572"
|
||||||
- in: query
|
- in: query
|
||||||
name: since
|
name: since
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue