chore(emqx_authz): delete put for http type
This commit is contained in:
parent
ef0f94025a
commit
6095253126
|
@ -95,7 +95,7 @@ definitions() ->
|
||||||
},
|
},
|
||||||
method => #{
|
method => #{
|
||||||
type => string,
|
type => string,
|
||||||
enum => [<<"get">>, <<"post">>, <<"put">>],
|
enum => [<<"get">>, <<"post">>],
|
||||||
example => <<"get">>
|
example => <<"get">>
|
||||||
},
|
},
|
||||||
headers => #{type => object},
|
headers => #{type => object},
|
||||||
|
|
|
@ -84,7 +84,7 @@ fields(http_post) ->
|
||||||
, {enable, #{type => boolean(),
|
, {enable, #{type => boolean(),
|
||||||
default => true}}
|
default => true}}
|
||||||
, {url, #{type => url()}}
|
, {url, #{type => url()}}
|
||||||
, {method, #{type => hoconsc:enum([post, put]),
|
, {method, #{type => post,
|
||||||
default => get}}
|
default => get}}
|
||||||
, {headers, #{type => map(),
|
, {headers, #{type => map(),
|
||||||
default => #{ <<"accept">> => <<"application/json">>
|
default => #{ <<"accept">> => <<"application/json">>
|
||||||
|
|
Loading…
Reference in New Issue