Eeshan Garg
0500639d01
api_tests: Test zulip.Client.add_reaction.
2019-02-18 10:24:13 -08:00
Anders Kaseorg
f0ecb93515
zerver core: Remove unused imports.
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-02-02 17:41:24 -08:00
Roger Souza
69da22d998
api docs: Document the custom emoji upload endpoint.
...
Tweaked by tabbott to fix some English phrasing and make the file
pointer thing require less Python knowledge.
Fixes : #10746 .
2018-12-14 14:19:28 -08:00
Steve Howell
b666a6bd6c
subject -> topic: Fix most of api_test_helpers.
...
We don't want to change anything that can end
up in docs yet, but for test setup, we can switch
to topic_name.
2018-11-14 23:24:06 -08:00
Roman Godov
aa3682f9fc
api: Add GET /user_groups documentation.
...
This documents our GET endpoint for interacting with Zulip's user
groups feature.
Fixes #10298 .
2018-11-08 22:19:30 -08:00
Rishi Gupta
1c264dedc5
api docs: Change Shakespeare quote.
...
The previous quote doesn't come off well if you don't know the reference
(which the majority of our users will not).
2018-10-22 15:44:36 -07:00
Yago González
3eeec94d03
api docs: Document the POST /users/me/subscriptions/properties endpoint.
2018-10-16 12:38:27 -07:00
Yago González
3d2b3f8fa4
api docs: Document the POST /messages/flags endpoint.
2018-10-16 12:19:24 -07:00
Yago González
7a4103eee6
api docs: Document POST /mark_(all|stream|topic)_as_read.
2018-10-16 12:12:05 -07:00
Yago González
3bdc8f9946
api: Document the GET /realm/emoji endpoint.
2018-10-16 11:51:48 -07:00
Yago González
7a7b507e86
api docs: Document DELETE /realm/filters/<filter_id>.
2018-10-16 11:51:48 -07:00
Yago González
a7c48acc8e
api docs: Document GET /realm/filters.
2018-10-16 11:51:48 -07:00
Yago González
ea10f5eb2c
api docs: Document GET /users/<email>/presence.
...
Tweaked by tabbott to describe more clearly what this is for.
2018-08-31 15:15:54 -07:00
Yago González
78f85ef960
api docs: Document the GET /messages/<message_id>/history endpoint.
2018-08-28 17:33:02 -07:00
Yago González
5c6f381f32
api docs: Document the DELETE /messages/<message_id> endpoint.
2018-08-28 17:26:49 -07:00
Yago González
9575f1b51f
api docs: Document the GET /messages/<message_id> endpoint.
2018-08-28 17:22:28 -07:00
Yago González
ab164ba740
api docs: Document the GET /messages endpoint.
2018-08-28 17:17:46 -07:00
Yago González
c36cf95dc8
api docs: Document GET /server_settings.
2018-08-27 17:45:50 -07:00
Yago González
54464feda7
api docs: Document the PATCH /users/me/subscriptions/muted_topics endpoint.
2018-08-26 23:10:21 -07:00
Yago González
e7c7b19507
api docs: Document POST /realm/filters.
2018-08-22 17:42:14 -07:00
Yago González
c70d051031
test-api: Add function for server & realm tests.
...
There are some endpoints that don't fall into the currently available
categories, so this new function will be used for calling the tests for
server and realm-related endpoints.
2018-08-22 17:19:09 -07:00
Yago González
aa5185fdf8
api docs: Document POST /typing.
2018-08-17 12:57:40 -07:00
Yago González
8d0cf3ebe5
api docs: Migrate POST /user_uploads to OpenAPI.
2018-08-08 09:29:27 -07:00
Yago González
119b3c0bc4
api docs: Migrate DELETE /users/me/subscriptions to OpenAPI.
2018-08-08 09:29:27 -07:00
Yago González
14c9277095
api docs: Migrate POST /users to OpenAPI.
2018-08-08 09:29:27 -07:00
Yago González
936d8c32c0
test-api: Fix typo in message event types.
...
The event type for messages is "message", not "messages" as the test
(and hence the API docs Python example) reflected.
2018-08-02 15:54:41 -07:00
Yago González
2b8bb2ffc6
api docs: Migrate DELETE /events to OpenAPI.
2018-08-02 15:54:41 -07:00
Yago González
5631645d9f
api docs: Migrate /register to OpenAPI.
2018-08-02 15:54:41 -07:00
Yago González
db81726bcb
api docs: Use method from our Python bindings in the example.
...
One of the code examples for GET /users was using the raw call_endpoint
method from our Python bindings, rather than get_members, which has been
specifically designed to interact with this endpoint.
Now all the examples here use the appropiate method.
2018-07-26 15:34:31 -07:00
Yago González
40a21f6077
api docs: Migrate GET /users to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
7c50f6cdd4
api docs: Migrate POST /messages/render to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
57c2d8c72a
api docs: Migrate GET /get_stream_id to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
679319a735
api docs: Migrate GET /streams to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
7ddc6e8d10
api docs: Migrate POST /messages to OpenAPI.
2018-07-26 10:24:01 -07:00
Yago González
cb24756edc
api docs: Merge docs for sending stream and private messages.
2018-07-26 10:24:01 -07:00
Yago González
fa1a695e08
test-api: Fix broken check for get_members.
...
The tests for GET /users were looking for a specific user, asuming that
it would always be in the same position. Since the users' sorting isn't
guaranteed in any way, this can lead to errors in the tests.
Now we make sure the user we grab from the list is the one we need by
checking its email address.
This is just a hotfix that addresses the short-term problem: we have
already made some efforts to make sure these tests are more
deterministic, and now we only need to finish the migration of the old
enpoints to the new system as a long-term solution.
2018-07-12 18:54:06 +05:30
Yago González
a3d42d9901
test-api: Pass non-admin client to the test helpers.
2018-07-11 23:54:00 +05:30
Yago González
fa2daf0044
api docs: Migrate POST /users/me/subscriptions to OpenAPI.
2018-07-03 20:15:34 +02:00
Yago González
2d1adc8d99
api docs: Allow validation against schemas for any response.
2018-07-03 20:11:05 +02:00
Yago González
8b420da653
api docs: Remove unnecessary imports.
2018-06-23 12:42:11 +02:00
Yago González
8e50564717
api docs: Document the /users/me/<stream_id>/topics endpoint.
2018-06-23 12:42:11 +02:00
Eeshan Garg
52c3c00ea0
test-api: Test against generic fixtures.
...
In a few commits before this one, we just added de-duplicated
generic fixtures that apply to multiple API tests. The tests
needed to be modified to accommodate that change.
2018-06-01 14:06:26 -07:00
Yago González
9f98002b76
tests: Allow testing our REST API against the OpenAPI docs.
2018-06-01 12:03:31 -07:00
Yago González
f84c9b919b
api docs: Read parameters and response fixtures from OpenAPI files.
2018-05-26 22:49:55 +02:00
Eeshan Garg
7d14ce2cb6
pypi packaging: Upgrade to release 0.4.6.
...
As a part of the upgrade, we had to update our API tests in
zerver/lib/api_test_helpers.
2018-04-27 14:50:25 -07:00
Tim Abbott
abef9f203b
api: Don't use ujson library unecessarily.
...
ujson is very fast, but doesn't provide good error messages for
parsing errors.
2018-04-27 14:49:46 -07:00
Eeshan Garg
bd2270eecb
test-api: Add test helpers that pretty-print JSON output.
2018-04-27 14:49:34 -07:00
Eeshan Garg
ce56ee80e7
api_docs: Document the `POST /api/v1/user_uploads` endpoint.
...
Fixes #1353 .
2018-03-02 09:44:17 -08:00
Eeshan Garg
e80609a3e9
api docs: Test sample fixture for invalid stream name error.
...
This commit adds a test for the sample fixture for when an invalid
stream name is passed to a query that expects a valid stream name
as an argument. This is the case with almost all of our queries
documented under the sidebar heading "Streams".
EDIT: Actually, I was wrong. This payload is highly specific to
get-stream-id, so it shouldn't be a part of common-error-payloads
at all.
2018-02-20 20:03:55 -03:30
Eeshan Garg
9add5bf6a7
api/delete-queue: Test fixture for BAD_EVENT_QUEUE_ID error.
...
In templates/zerver/api/delete-queue.md, we have a sample fixture
for when the queue_id passed to client.deregister_queue is not
valid or the event queue in question has already been deleted.
This commit tests that fixture.
Note that this error payload is specific to client.deregister_queue.
2018-02-20 14:54:12 -08:00