iinuwa
301d38c104
Refactor send and sync modules
...
This commit moves the message, member and state event endpoints from the
send and sync modules to make interaction with those events more
consistent with how other events are used, for example,
`r0::<event type>::<create, get, update, delete>_event`.
2019-12-26 15:44:45 +01:00
Alejandro Domínguez
d48fc54c96
Use folders instead of mods
2019-01-22 18:41:41 +01:00
Jonas Platte
bc968c8e14
Update to Rust 2018
2019-01-13 21:22:37 +01:00
Jonas Platte
586bca680d
Re-run 'cargo fmt'
2019-01-13 21:12:33 +01:00
Victor Berger
7a7697e9e2
InviteState in Sync response is stripped events
2019-01-08 18:34:40 +01:00
Jonas Herzig
ec8198964a
get_state_events_for_key::Request::event_type should be of type EventType
2018-09-11 14:14:09 +02:00
Jimmy Cuadra
d042f63146
Update dependencies and convert to ruma-api-macros 0.2.
2018-05-19 02:28:43 -07:00
Florian Jacob
ca99939ca6
/rooms/{room_id}/members requires authentication
...
it was just an omission from the spec.
See https://github.com/matrix-org/matrix-doc/pull/1244
2018-05-17 19:08:21 +02:00
tilpner
478106fd42
Serialize sync_events::Filter untagged
...
This is to make Filter::FilterId(String::from("0")) serialize
as "0", instead of to a JSON object that cannot be passed
as a query paramater
2017-09-28 20:34:43 +02:00
tilpner
15bd7d2641
Pass sync request as query parameters instead of data
...
Before, it would silently ignore them for defaults,
so long-polling was not possible because no timeout
was passed
2017-09-28 20:34:29 +02:00
Jonas Platte
fcd2a50f4f
UnreadNotificationsCount: Make fields optional
2017-08-03 22:42:08 +02:00
Jonas Platte
46fa6d21a2
Fix timeline.events type in sync_events response
2017-07-17 18:57:22 +02:00
Jimmy Cuadra
6aceca259e
Add missing docs, fix a bunch of bugs and inconsistencies.
2017-07-04 22:47:14 -07:00
Ross Schulman
a1a9064d28
Squash a bunch of bugs
2017-07-04 22:02:47 +10:00
Ross Schulman
f715124190
Implement ruma_api macro
2017-07-04 22:02:47 +10:00
Andreas Brönnimann
3da855c56e
The member event response contains the field chunk, not chunks
2017-01-15 16:05:40 +01:00
Victor Berger
8ab3c737b8
Update to ruma-api v0.3.
...
Also fixes a few errors encountered in the process and remove depcrecated tokenrefresh endpoint.
2017-01-08 18:19:27 +01:00
Jimmy Cuadra
0535405ae6
Derive Clone, Copy, and Debug for Endpoint structs.
2016-12-30 23:13:19 -08:00
Jimmy Cuadra
0b295fe0f0
Use consistent wording for QueryParams docs.
2016-12-30 17:42:46 -08:00
Jimmy Cuadra
b103b87090
Link endpoint paths directly to the spec.
2016-12-30 14:53:51 -08:00
Jimmy Cuadra
e7562be4db
Rename various modules.
2016-12-30 05:59:25 -08:00
Jimmy Cuadra
48727f1968
The filter parameter to /sync can be a full filter definition or a filter ID.
2016-12-30 05:13:58 -08:00
Victor Berger
3c324d526c
Add serde attributes to Option and Vec, and missing #[derive]s
2016-12-28 19:38:50 +01:00
Victor Berger
81469d8d04
Add sync endpoint.
2016-12-23 16:09:47 +01:00
Jimmy Cuadra
409b8202f7
Define module layout and fill in types for a few APIs.
2016-09-30 16:13:59 -07:00