Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Update descriptions in /get_stream_id for channel.

Lauryn Menard030863a58575
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index de00e2145f9..66e003d1767 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -5095,15 +5095,15 @@ paths:
/get_stream_id:
get:
operationId: get-stream-id
- summary: Get stream ID
+ summary: Get channel ID
tags: ["streams"]
description: |
- Get the unique ID of a given stream.
+ Get the unique ID of a given channel.
parameters:
- name: stream
in: query
description: |
- The name of the stream to access.
+ The name of the channel to access.
schema:
type: string
example: Denmark
@@ -5124,7 +5124,7 @@ paths:
stream_id:
type: integer
description: |
- The ID of the given stream.
+ The ID of the given channel.
example: {"msg": "", "result": "success", "stream_id": 15}
"400":
description: Bad request.
@@ -5140,7 +5140,7 @@ paths:
"result": "error",
}
description: |
- An example JSON response for when the supplied stream does not exist:
+ An example JSON response for when the supplied channel does not exist:
/mark_all_as_read:
post:
deprecated: true
diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py
index 8183a7ac881..cd5b211d751 100644
--- a/zerver/tests/test_docs.py
+++ b/zerver/tests/test_docs.py
@@ -172,7 +172,7 @@ class DocPageTest(ZulipTestCase):
"/api/delete-queue": "Delete a previously registered queue",
"/api/get-events": "dont_block",
"/api/get-own-user": "does not accept any parameters.",
- "/api/get-stream-id": "The name of the stream to access.",
+ "/api/get-stream-id": "The name of the channel to access.",
"/api/get-streams": "include_public",
"/api/get-subscriptions": "Get all streams that the user is subscribed to.",
"/api/get-users": "client_gravatar",