wowol
0e835c6381
urls: Migrate legacy urls to use modern django pattern.
2020-05-07 16:33:03 -07:00
Alena Volkova
9d1063d362
urls: Move the json/fetch_api_key endpoint to be an API-style route.
2018-01-08 13:15:52 -05:00
Alena Volkova
5515a075ec
urls: Move the report endpoints to be API-style routes.
2017-10-17 22:05:56 -07:00
Alena Volkova
79560e21bf
urls: Move the json/tutorial_status endpoint to be an API-style route.
2017-10-09 15:13:33 -07:00
Tim Abbott
b61d667f68
legacy_urls: Remove unnecessary imports.
2017-10-05 15:44:45 -07:00
Alena Volkova
21bc0e845c
urls: Delete the json/tutorial_send_message endpoint.
...
This endpoint is part of the old tutorial, which we've removed, and
has some security downsides as well.
This includes a minor refactoring of the tests.
2017-10-05 15:41:57 -07:00
Tim Abbott
a9fa1a5527
api: Migrate /json/messages_in_narrow off legacy API.
...
This completes the major endpoint migrations to eliminate legacy API
endpoints from Zulip.
There's a few other things that will happen naturally, so I believe
this fixes #611 .
2017-07-31 13:08:06 -07:00
Tim Abbott
8003428845
api: Document remaining legacy endpoints.
2017-07-31 13:08:06 -07:00
Tim Abbott
ed10ce70d4
invites: Migrate to non-legacy API format.
...
This has the side effect of making it possible for a bot user to
invite users with its API key, which seems useful.
2017-07-31 13:08:06 -07:00
Tim Abbott
6a50e13156
uploads: Remove legacy /json/upload_file endpoint.
...
This migrates Zulip to use the equivalent API endpoint that has been
present for a while.
2017-07-31 13:08:06 -07:00
Tim Abbott
1e5aee054b
settings: Migrate main settings-change code to API.
...
This was one of the few major remaining endpoints that were still on
the old-style legacy API.
2017-07-31 13:08:06 -07:00
Vaida
d5517bae36
Delete the old zulip.com "referrals" system.
...
This system hasn't been in active use for several years, and had some
problems with it's design. So it makes sense to just remove it to declutter
the codebase.
Fixes #5655 .
2017-07-07 14:59:18 -07:00
kunall17
e087bc24f8
streams: Migrate stream property changes to new REST endpoint.
...
This is one of the last major endpoints that were still done in the
pre-REST style.
While we're at it, we change the endpoint to expect a stream ID, not a
stream name.
2017-05-09 13:39:23 -07:00
Amy Liu
e5ab3123af
Migrate json/set_muted_topics to muting/topics.
2017-03-09 20:52:29 -08:00
Amy Liu
9500c88e32
Migrate legacy url json/bulk_invite_users to invite/bulk_invite.
2017-03-09 20:51:03 -08:00
Tim Abbott
d6e38e2a5c
lint: Clean up E123 PEP-8 rule.
2017-01-23 21:34:26 -08:00
Tim Abbott
9cc83f87fc
lint: Clean up E241 PEP-8 rule.
2017-01-23 21:21:14 -08:00
Tim Abbott
48f1b4e1ab
views: Extract zerver.views.muting.
2017-01-08 16:21:15 -08:00
Rafid Aslam
d0502537ab
API: Migrate POST `/ui_settings/change` to PATCH `/settings/ui`
2016-12-24 11:02:02 -08:00
Juanvulcano
2fd1316d70
Removed json/update_message
...
Update test_alert_words.py
Update test_messages.py
Update messages.py
2016-12-24 10:08:22 -08:00
JefftheBest1
b8ee0e91d2
Migrated json/subscribtions/remove to REST endpoint
2016-12-24 09:27:25 -08:00
Jackson
3a109a56df
Migrate notify_settings to settings/notifications
...
Remove notify_settings from legacy_url.py
2016-12-24 09:24:23 -08:00
anirudhjain75
8acdbef8aa
Eliminate legacy json/make_stream_public and json/make_stream_private URL
...
Migrate from POST to PATCH
2016-12-24 08:54:49 -08:00
Sampriti Panda
87e7dc6799
urls: Remove legacy URL for left_side_userlist and move over to REST PATCH endpoint
2016-12-24 08:38:33 -08:00
Jackson
333cf0f015
Migrate legacy /json/time_setting to new REST style endpoint.
2016-12-23 08:08:27 -08:00
Tommy Ip
1e0de94293
API: convert get_subscribers from legacy URL to REST endpoint.
2016-12-22 09:25:12 -08:00
anirudhjain75
c9db6b6658
Clean up legacy language_settings endpoint.
2016-12-22 06:54:04 -08:00
Sampriti Panda
e72cd0b1cc
urls: convert set_avatar from legacy URL to REST endpoint
2016-12-21 13:35:22 -08:00
Rafid Aslam
73acebb729
API: Remove `json/fetch_raw_message` from `zproject/legacy_urls.py`
2016-12-21 13:08:40 -08:00
Umair Khan
fa6b607fc2
Django 1.10: Upgrade legacy urls.
2016-11-10 16:20:02 +05:00
Steve Howell
ff6404cb3c
Add comment about /json/subscriptions/exists endpoint.
...
We should remove this endpoint. For now I'm just adding
the comment to the code explaining why we should do that.
2016-10-17 16:11:04 -07:00
Tim Abbott
5b7dfafcac
views: Move json_refer_friend to invite.py.
2016-10-11 21:27:06 -07:00
Tim Abbott
dd352dd456
views: Move invitation views to their own file.
2016-10-11 21:27:06 -07:00
Tim Abbott
67d9e19ccf
views: Split views/auth.py out of core views file.
2016-10-11 21:27:06 -07:00
baali
142dce2cd4
Replace legacy endpoint for renaming a stream and add tests.
...
This moves the logic for renaming a stream to the REST API
update_stream_backend method, eliminating the legacy API endpoint for
doing so.
It also adds a nice test suite covering international stream names.
2016-10-02 20:33:49 -07:00
Tim Abbott
03bf8893e2
Remove legacy /api/v1/send_message endpoint.
...
This was the original way to send messages via the Zulip API in the
very early days of Zulip, but was replaced by the REST API back in
2013.
Fixes : #730 .
2016-09-27 14:51:54 -07:00
Steve Howell
edfa022bac
Remove json/get_active_statuses endpoint.
2016-09-27 14:33:56 -07:00
Tim Abbott
6dc5681171
views: Move presence views to presence.py.
2016-07-26 14:29:32 -07:00
Umair Khan
035fceb814
Add dynamically loaded language dropdown.
2016-07-04 11:56:02 -07:00
Tim Abbott
28b6f1d850
urls: Move non-legacy URLs back out of legacy_urls.py.
...
Only the old API endpoints were actually legacy URLs.
2016-06-25 10:49:56 -07:00
acrefoot
e4ed9195dc
Remove rest_dispatch hack and optimize imports.
...
For a long time, rest_dispatch has had this hack where we have to
create a copy of it in each views file using it, in order to directly
access the globals list in that file. This removes that hack, instead
making rest_dispatch just use Django's import_string to access the
target method to use.
[tweaked and reorganized from acrefoot's original branch in various
ways by tabbott]
2016-06-24 16:11:03 -07:00
acrefoot
b36bc051af
Move old-style API endpoints to legacy_urls.py.
2016-06-24 15:14:03 -07:00