mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-18 17:14:10 +02:00
Compare commits
1 commit
6a8a8dd478
...
42e2e73f11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42e2e73f11 |
|
|
@ -1 +0,0 @@
|
||||||
Add `format` query parameter to `GET /state/{eventType}/{stateKey}` to allow fetching metadata of a specific state event.
|
|
||||||
|
|
@ -105,31 +105,13 @@ paths:
|
||||||
example: ""
|
example: ""
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- in: query
|
|
||||||
name: format
|
|
||||||
x-addedInMatrixVersion: "1.16"
|
|
||||||
description: |-
|
|
||||||
The format to use for the returned data. `content` (the default) will
|
|
||||||
return only the content of the state event. `event` will return the entire
|
|
||||||
event in the usual format suitable for clients, including fields like event
|
|
||||||
ID, sender and timestamp.
|
|
||||||
example: event
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
enum:
|
|
||||||
- content
|
|
||||||
- event
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: |-
|
description: The content of the state event.
|
||||||
The content of the state event, or the entire client-formatted event
|
|
||||||
if `?format=event` was used.
|
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
type: object
|
||||||
- type: object
|
|
||||||
- $ref: "../../event-schemas/schema/core-event-schema/state_event.yaml"
|
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue