12 Commits

Author SHA1 Message Date
Jonathan de Jong
f72d6601fc
ruma-api-macros: Fix argument ordering 2022-02-12 20:51:59 +01:00
Jonathan de Jong
397727726e
api: Add multiple path support to OutgoingRequest 2022-02-12 13:44:11 +01:00
Jonathan de Jong
689d911cdc
api-macros: Simplify IncomingRequest impl generation 2022-02-09 17:54:57 +01:00
Jonathan de Jong
abd702cfbc
api: Don't extract request path arguments in IncomingRequest impls
… instead requiring callers to pass them as a list of strings.
Parsing is still done within the trait implementations though.
2022-02-02 11:57:29 +01:00
ftilde
6b78988d39
ruma-api-macros: Avoid empty POST/PUT request bodys 2021-12-18 20:06:37 +01:00
Jonas Platte
7df5a0f09d
api: Fix inverse condition for sending application/json content-type 2021-09-21 18:54:10 +02:00
Jonas Platte
d16db420e3
api: Stop adding Content-Type to requests without any fields 2021-09-21 11:32:18 +02:00
Jonas Platte
dc842f028f
Add missing commas 2021-08-30 17:34:20 +02:00
Jonas Platte
15ec0bd78e
api-macros: Fix issues from previous refactoring 2021-08-16 22:37:06 +02:00
Jonas Platte
96ab1674af
api-macros: Use serde(transparent) for newtype bodies
… rather than special casing them in many places.
2021-08-16 22:23:30 +02:00
Jonas Platte
42fda7c89f
api: Rename newtype raw body => raw body 2021-08-16 22:23:30 +02:00
Jonas Platte
696c9fba4e
api-macros: Move ruma_api! trait impl generation into derive macros 2021-08-05 21:00:43 +02:00