|
|
@ -33,37 +33,37 @@ paths:
|
|
|
|
- in: path
|
|
|
|
- in: path
|
|
|
|
name: roomId
|
|
|
|
name: roomId
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The room ID to get state for
|
|
|
|
description: The room ID to get state for.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "!abc123:matrix.org"
|
|
|
|
x-example: "!abc123:matrix.org"
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: The room state for the room (kept under ``pdus``)
|
|
|
|
description: The room state for the room (kept under ``pdus``).
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
$ref: "definitions/transaction.yaml"
|
|
|
|
$ref: "definitions/transaction.yaml"
|
|
|
|
"/event/{eventId}":
|
|
|
|
"/event/{eventId}":
|
|
|
|
get:
|
|
|
|
get:
|
|
|
|
summary: Get a single event
|
|
|
|
summary: Get a single event
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
Retrieves a single event
|
|
|
|
Retrieves a single event.
|
|
|
|
operationId: getEvent
|
|
|
|
operationId: getEvent
|
|
|
|
parameters:
|
|
|
|
parameters:
|
|
|
|
- in: path
|
|
|
|
- in: path
|
|
|
|
name: eventId
|
|
|
|
name: eventId
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The event ID to get
|
|
|
|
description: The event ID to get.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "$abc123:matrix.org"
|
|
|
|
x-example: "$abc123:matrix.org"
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: A transaction containing a single PDU which is the event requested
|
|
|
|
description: A transaction containing a single PDU which is the event requested.
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
$ref: "definitions/transaction.yaml"
|
|
|
|
$ref: "definitions/transaction.yaml"
|
|
|
|
"/backfill/{roomId}":
|
|
|
|
"/backfill/{roomId}":
|
|
|
|
get:
|
|
|
|
get:
|
|
|
|
summary: Retrieves the events which precede the given event
|
|
|
|
summary: Retrieves the events which precede the given event
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
Retreives a sliding-window history of previous PDUs that occurred on the given room.
|
|
|
|
Retreives a sliding-window history of previous PDUs that occurred in the given room.
|
|
|
|
Starting from the PDU ID(s) given in the ``v`` argument, the PDUs that preceded it
|
|
|
|
Starting from the PDU ID(s) given in the ``v`` argument, the PDUs that preceded it
|
|
|
|
are retrived, up to the total number given by the ``limit``.
|
|
|
|
are retrived, up to the total number given by the ``limit``.
|
|
|
|
operationId: backfillRoom
|
|
|
|
operationId: backfillRoom
|
|
|
@ -71,19 +71,19 @@ paths:
|
|
|
|
- in: path
|
|
|
|
- in: path
|
|
|
|
name: roomId
|
|
|
|
name: roomId
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The room ID to backfill
|
|
|
|
description: The room ID to backfill.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "!abc123:matrix.org"
|
|
|
|
x-example: "!abc123:matrix.org"
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
|
name: v
|
|
|
|
name: v
|
|
|
|
type: string # TODO: The description says this is plural - figure out how to specify multiple, and spec it
|
|
|
|
type: string # TODO: The description says this is plural - figure out how to specify multiple, and spec it
|
|
|
|
description: The event ID to backfill from
|
|
|
|
description: The event ID to backfill from.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "$abc123:matrix.org"
|
|
|
|
x-example: "$abc123:matrix.org"
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
|
name: limit
|
|
|
|
name: limit
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
description: The maximum number of events to retrieve
|
|
|
|
description: The maximum number of events to retrieve.
|
|
|
|
required: true # TODO: Verify
|
|
|
|
required: true # TODO: Verify
|
|
|
|
x-example: 10
|
|
|
|
x-example: 10
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
@ -91,6 +91,7 @@ paths:
|
|
|
|
description: A transaction containing the PDUs that preceded the given event(s).
|
|
|
|
description: A transaction containing the PDUs that preceded the given event(s).
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
$ref: "definitions/transaction.yaml"
|
|
|
|
$ref: "definitions/transaction.yaml"
|
|
|
|
|
|
|
|
# TODO: It's possible that this endpoint doesn't exist anymore - verify
|
|
|
|
"/pull":
|
|
|
|
"/pull":
|
|
|
|
get:
|
|
|
|
get:
|
|
|
|
summary: Stream events later than a given point in history
|
|
|
|
summary: Stream events later than a given point in history
|
|
|
@ -101,7 +102,7 @@ paths:
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
|
name: v
|
|
|
|
name: v
|
|
|
|
type: string # TODO: The description says this is plural - figure out how to specify multiple, and spec it
|
|
|
|
type: string # TODO: The description says this is plural - figure out how to specify multiple, and spec it
|
|
|
|
description: The event ID to backfill from
|
|
|
|
description: The event ID to backfill from.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "$abc123:matrix.org"
|
|
|
|
x-example: "$abc123:matrix.org"
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
|