mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-29 13:54:10 +02:00
Compare commits
6 commits
553cdbdb45
...
e9babef2ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9babef2ba | ||
|
|
3877598b1e | ||
|
|
c4bbef30d1 | ||
|
|
efa676dbf9 | ||
|
|
a14740e8da | ||
|
|
1947f2a72b |
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify that `format` is required if `formatted_body` is specified.
|
||||||
1
changelogs/client_server/newsfragments/2175.feature
Normal file
1
changelogs/client_server/newsfragments/2175.feature
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Add `format` query parameter to `GET /state/{eventType}/{stateKey}` to allow fetching metadata of a specific state event.
|
||||||
|
|
@ -105,13 +105,30 @@ paths:
|
||||||
example: ""
|
example: ""
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: format
|
||||||
|
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: The content of the state event.
|
description: |-
|
||||||
|
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:
|
||||||
type: object
|
oneOf:
|
||||||
|
- type: object
|
||||||
|
- $ref: "../../event-schemas/schema/core-event-schema/state_event.yaml"
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: {
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ properties:
|
||||||
"1.10": This property can act as a caption for the audio.
|
"1.10": This property can act as a caption for the audio.
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
x-addedInMatrixVersion: "1.10"
|
x-addedInMatrixVersion: "1.10"
|
||||||
formatted_body:
|
formatted_body:
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
formatted_body:
|
formatted_body:
|
||||||
description: |-
|
description: |-
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ properties:
|
||||||
"1.10": This property can act as a caption for the file.
|
"1.10": This property can act as a caption for the file.
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
x-addedInMatrixVersion: "1.10"
|
x-addedInMatrixVersion: "1.10"
|
||||||
formatted_body:
|
formatted_body:
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ properties:
|
||||||
"1.10": This property can act as a caption for the image.
|
"1.10": This property can act as a caption for the image.
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
x-addedInMatrixVersion: "1.10"
|
x-addedInMatrixVersion: "1.10"
|
||||||
formatted_body:
|
formatted_body:
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ properties:
|
||||||
verification.
|
verification.
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
formatted_body:
|
formatted_body:
|
||||||
description: |-
|
description: |-
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
formatted_body:
|
formatted_body:
|
||||||
description: |-
|
description: |-
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
formatted_body:
|
formatted_body:
|
||||||
description: |-
|
description: |-
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ properties:
|
||||||
"1.10": This property can act as a caption for the video.
|
"1.10": This property can act as a caption for the video.
|
||||||
format:
|
format:
|
||||||
description: |-
|
description: |-
|
||||||
The format used in the `formatted_body`. Currently only
|
The format used in the `formatted_body`. This is required if `formatted_body`
|
||||||
`org.matrix.custom.html` is supported.
|
is specified. Currently only `org.matrix.custom.html` is supported.
|
||||||
type: string
|
type: string
|
||||||
x-addedInMatrixVersion: "1.10"
|
x-addedInMatrixVersion: "1.10"
|
||||||
formatted_body:
|
formatted_body:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue