[manual] Extend /api/v1/streams API endpoint.

Previously it only provided the list of all public streams; now it
allows one to specify any union of some of the following:
* all public streams
* all streams the user subscribed to

(the most relevant being the union of those two, which is what we want
for the "streams" page).

Or:
* all streams in realm (superuser only)

The manual task required is that when this is pushed to prod, we need
to also deploy the new sync-public-streams version to zmirror.

(imported from commit 27848b8bd136e2777f399b7d05b2fdcec35e4e21)
This commit is contained in:
Tim Abbott 2013-08-22 11:37:02 -04:00
parent 81aebf897b
commit 0b9ea4db05
3 changed files with 6 additions and 3 deletions

View file

@ -43,4 +43,4 @@ parser.add_option_group(zulip.generate_option_group(parser))
client = zulip.init_from_options(options)
print client.get_public_streams()
print client.get_streams(include_public=True, include_subscribed=False)