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.
MODIFY
zulip/zulip/__init__.py
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',
)

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.