Skip to content

Commit

Permalink
Merge pull request #224 from matrix-org/markjh/filter_inline
Browse files Browse the repository at this point in the history
Allow the filter JSON to be passed inline in the /sync request
  • Loading branch information
NegativeMjark committed Dec 9, 2015
2 parents f22adad + c3a1318 commit a33e49f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/client-server/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ paths:
name: filter
type: string
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"
- in: query
name: since
Expand Down

0 comments on commit a33e49f

Please sign in to comment.