From 5747e76c083985c136abccc42f68c3268eb9de88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Tue, 14 Aug 2018 02:13:26 +0200 Subject: [PATCH] api: Make all endpoint paths relative. Most of the endpoints we call in the bindings are put relative to the API's root. These two were absolute paths (i.e. they had a leading slash), so it has been changed for consistency. --- zulip/zulip/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 7b5d00f..c76e7ab 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -860,7 +860,7 @@ class Client(object): See examples/realm-emoji for example usage. ''' return self.call_endpoint( - url='/realm/emoji', + url='realm/emoji', method='GET' ) @@ -873,7 +873,7 @@ class Client(object): {'msg': '', 'result': 'success', 'zulip_version': '1.9.0', 'push_notifications_enabled': False, ...} ''' return self.call_endpoint( - url='/server_settings', + url='server_settings', method='GET', )