mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
api_docs: Add documentation for delete_stream.
This commit is contained in:
committed by
Tim Abbott
parent
487861554f
commit
0ceea2713c
@@ -229,8 +229,11 @@ def get_stream_id(client):
|
||||
def delete_stream(client, stream_id):
|
||||
# type: (Client, int) -> None
|
||||
|
||||
# {code_example|start}
|
||||
# Delete the stream named 'new stream'
|
||||
stream_id = client.get_stream_id('new stream')['stream_id']
|
||||
result = client.delete_stream(stream_id)
|
||||
|
||||
# {code_example|end}
|
||||
validate_against_openapi_schema(result, '/streams/{stream_id}', 'delete', '200')
|
||||
|
||||
assert result['result'] == 'success'
|
||||
|
||||
Reference in New Issue
Block a user