Skip to content

Commit c8b9fe5

Browse files
authored
Merge pull request #3336 from lukaslihotzki/include-peek-events
OpenAPI: include peekEvents
2 parents 5425585 + 2a7fb01 commit c8b9fe5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disambiguate getEvents and peekEvents, and include both in swagger.

data/api/client-server/peeking_events.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ produces:
2727
securityDefinitions:
2828
$ref: definitions/security.yaml
2929
paths:
30-
"/events":
30+
# With an extra " " to disambiguate from the getEvents endpoint
31+
# The extra space makes it sort first for what I'm sure is a good reason.
32+
"/events ":
3133
get:
32-
summary: Listen on the event stream.
34+
summary: Listen on the event stream of a particular room.
3335
description: |-
3436
This will listen for new events related to a particular room and return
3537
them to the caller. This will block until an event is received, or until
@@ -103,4 +105,5 @@ paths:
103105
- "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml"
104106
400:
105107
description: "Bad pagination `from` parameter."
106-
# No tags to exclude this from the swagger UI - use the normal version instead.
108+
tags:
109+
- Room participation

0 commit comments

Comments
 (0)