5234 Commits

Author SHA1 Message Date
Jimmy Cuadra
995fa6e1ae Use ruma-api-macros for the tag endpoints. 2017-07-06 23:26:52 -07:00
Jimmy Cuadra
f94cb9d62a Use ruma-api-macros for the server endpoints. 2017-07-06 22:59:42 -07:00
Jimmy Cuadra
e71760bb65 Use ruma-api-macros for the search endpoints. 2017-07-06 22:50:56 -07:00
Jimmy Cuadra
fc29d7bf40 Use ruma-api-macros for the redact endpoints. 2017-07-06 01:11:11 -07:00
Jimmy Cuadra
651fe9b3e3 Use ruma-api-macros for the receipt endpoints. 2017-07-06 00:57:29 -07:00
Jimmy Cuadra
beacb5f268 Use ruma-api-macros for the profile endpoints. 2017-07-05 22:45:33 -07:00
Jimmy Cuadra
a5427a5daf Use UserId instead of String for the login endpoint. 2017-07-05 20:37:57 -07:00
Jimmy Cuadra
6aceca259e Add missing docs, fix a bunch of bugs and inconsistencies. 2017-07-04 22:47:14 -07:00
Jimmy Cuadra
c447a612d3 Use ruma-api-macros for the presence endpoints. 2017-07-04 16:39:30 -07:00
Jimmy Cuadra
ebb05dc076 Merge pull request #20 from jplatte/more-modules
Use ruma-api-macros for more endpoints
2017-07-04 12:09:55 -07:00
Jonas Platte
351a6dbd0c Add event body to send requests 2017-07-04 22:02:47 +10:00
Jonas Platte
5c43a32b00 Use ruma-api-macros for the create_room endpoint 2017-07-04 22:02:47 +10:00
Jonas Platte
0a997d28a4 Remove unused serde attributes 2017-07-04 22:02:47 +10:00
Ross Schulman
a1a9064d28 Squash a bunch of bugs 2017-07-04 22:02:47 +10:00
Ross Schulman
3a854bf64a Update lib.rs with newly available calls 2017-07-04 22:02:47 +10:00
Ross Schulman
a097aa02f2 Port session.rs to ruma_api_macro 2017-07-04 22:02:47 +10:00
Ross Schulman
f715124190 Implement ruma_api macro 2017-07-04 22:02:47 +10:00
Jimmy Cuadra
06ddfdd681 Use ruma-api-macros for the membership endpoints. 2017-07-03 16:41:25 -07:00
Jimmy Cuadra
7f78253539 Update ruma-client-macros for bug fix. 2017-07-01 17:24:00 -07:00
Jimmy Cuadra
0f32ca01db Add complete documentation. 2017-07-01 17:22:40 -07:00
Jimmy Cuadra
b292a3e776 Improve test coverage, fix a misplaced comma bug, implement missing newtype body support for responses. 2017-07-01 16:24:44 -07:00
Jimmy Cuadra
e0bb81ad67 Use ruma-api-macros for the media endpoints. 2017-07-01 15:39:45 -07:00
Jimmy Cuadra
84562c4260 Strip serde attributes on aggregate Request and Response types. 2017-07-01 15:26:03 -07:00
Jimmy Cuadra
dce17dbb64 Add support for header fields in responses. 2017-07-01 11:29:23 -07:00
Jimmy Cuadra
c0c4b0949a Add missing dev dependency for url. 2017-06-30 18:33:43 -07:00
Jimmy Cuadra
4893be93f8 Impl conversion from serde_urlencoded errors. 2017-06-30 18:14:24 -07:00
Jimmy Cuadra
6d82e06600 Derive Serialize for RequestPath so the serde attributes get stripped. 2017-06-30 18:09:34 -07:00
Jonas Platte
62971e63cd Implement substitution of variables in endpoint paths 2017-07-01 01:53:19 +10:00
Jonas Platte
5180297d81 Refactor request module to reduce code duplication 2017-07-01 01:53:19 +10:00
Jonas Platte
170e00a487 Implement setting of query parameters 2017-07-01 01:53:19 +10:00
Jimmy Cuadra
e40496b460 Update dependencies and reorganize modules. 2017-06-29 04:33:06 -07:00
Jonas Platte
5f880dfbb1 Use ruma-api-macros for the send endpoints. 2017-06-29 03:35:41 +10:00
Jimmy Cuadra
fb90929aa1 Merge pull request #19 from neosam/macros
Make aliases optional for global rooms query.
2017-06-19 17:59:24 -07:00
Simon Goller
6f9cb39506 Make aliases optional for global rooms query.
The server response cannot be deserialized because the aliases
attribute can be missing.  Wrapped the alias attribute with an
Option to fix the issue.
2017-06-18 18:20:12 +02:00
Jimmy Cuadra
5d5e70cf3e Merge pull request #18 from jplatte/macros
Bump dependency versions
2017-06-14 03:16:04 -07:00
Jonas Platte
f9309e652a Bump dependency versions 2017-06-14 11:57:06 +02:00
Jimmy Cuadra
f5a935384e Merge pull request #1 from jplatte/patch-2
Bump dependency versions
2017-06-14 02:53:23 -07:00
Jonas Platte
fb2082237b Bump dependency versions 2017-06-14 10:21:15 +02:00
Jimmy Cuadra
211cf5e353 Merge pull request #11 from jplatte/hyper-0.11
Bump dependency versions
2017-06-14 01:16:00 -07:00
Jonas Platte
dd62620a4b Bump dependency versions 2017-06-14 09:49:16 +02:00
Jimmy Cuadra
4ef45b3022 Bump ruma-events and ruma-signatures. 2017-06-01 17:55:24 -07:00
Jimmy Cuadra
c3fd65c650 Bump version to 0.9.0. 2017-06-01 17:46:05 -07:00
Jimmy Cuadra
42439ea608 Merge pull request #13 from neosam/master
Use ruma-signatures 0.4 instead of 0.3.
2017-06-01 09:25:30 -07:00
Simon Goller
03dc54d7db Use ruma-signatures 0.4 instead of 0.3. 2017-06-01 18:08:22 +02:00
Jimmy Cuadra
392dc69b17 Use ruma-api-macros for the filter endpoints. 2017-05-21 02:19:54 -07:00
Jimmy Cuadra
35362e78a6 Add newtype body field support for responses. 2017-05-21 01:52:16 -07:00
bors[bot]
bdb7468bcb Merge #25
25: Deserialize () from input without key/value pairs. r=nox
Currently there's no input that can be deserialized to `()`, this changes the crate to support deserializing strings without any key/value pair to a `()` (such as the empty string, or just `"&"`).

Would be great if you could release a patch for this, I have a project that needs this behavior.

EDIT: To expand on my use case, I have a trait which parses the body of an HTTP Request into a type (e.g. for a `POST` request). However, this is abstract over HTTP methods, and its expected to be able to parse an empty body (e.g. from a `GET` request) into `()`.
2017-05-21 07:34:36 +00:00
Without Boats
ecb91cfcd7 Deserialize () from input without key/value pairs. 2017-05-21 00:28:04 -07:00
Jimmy Cuadra
dfb45a762f Use ruma-api-macros for the directory endpoints. 2017-05-19 21:25:18 -07:00
Jimmy Cuadra
4b728514ca Use ruma-api-macros for the context endpoints. 2017-05-19 21:09:58 -07:00