From ddd6ee998821a62cdc87b05fc54303a190dec73f Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Tue, 18 Aug 2015 11:32:56 -0700 Subject: [PATCH] Add GET /export endpoint, which dumps important tables in json. Meant to be used in tandem with the manage.py import command. The following sensitive data is scrubbed: * user api keys * user password hashes * stream email keys * invite-only streams * messages from invite-only streams * messages from users from other domains (imported from commit 8e58dcdcb80ef1c7127d3ab15accf40c6187633f) --- zulip/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zulip/__init__.py b/zulip/__init__.py index b7b0626..bca2c02 100644 --- a/zulip/__init__.py +++ b/zulip/__init__.py @@ -416,6 +416,7 @@ Client._register('update_message', method='PATCH', url='messages', make_request= Client._register('get_messages', method='GET', url='messages/latest', longpolling=True) Client._register('get_events', url='events', method='GET', longpolling=True, make_request=(lambda **kwargs: kwargs)) Client._register('register', make_request=_mk_events) +Client._register('export', method='GET', url='export') Client._register('deregister', url="events", method="DELETE", make_request=_mk_deregister) Client._register('get_profile', method='GET', url='users/me') Client._register('get_streams', method='GET', url='streams', make_request=_kwargs_to_dict)