Fix tests
This commit is contained in:
parent
68aaa59eda
commit
ed42aaef6a
@ -4,7 +4,7 @@ pub mod some_endpoint {
|
|||||||
ruma_api! {
|
ruma_api! {
|
||||||
metadata {
|
metadata {
|
||||||
description: "Does something.",
|
description: "Does something.",
|
||||||
method: GET, // An `http::Method` constant. No imports required.
|
method: POST, // An `http::Method` constant. No imports required.
|
||||||
name: "some_endpoint",
|
name: "some_endpoint",
|
||||||
path: "/_matrix/some/endpoint/:baz",
|
path: "/_matrix/some/endpoint/:baz",
|
||||||
rate_limited: false,
|
rate_limited: false,
|
||||||
@ -51,7 +51,7 @@ pub mod newtype_body_endpoint {
|
|||||||
ruma_api! {
|
ruma_api! {
|
||||||
metadata {
|
metadata {
|
||||||
description: "Does something.",
|
description: "Does something.",
|
||||||
method: GET,
|
method: PUT,
|
||||||
name: "newtype_body_endpoint",
|
name: "newtype_body_endpoint",
|
||||||
path: "/_matrix/some/newtype/body/endpoint",
|
path: "/_matrix/some/newtype/body/endpoint",
|
||||||
rate_limited: false,
|
rate_limited: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user