Merge pull request #11165 from zhongwencool/hide-global-limiter-from-swagger-api
chore: hide /configs/limiter from swagger api doc
This commit is contained in:
commit
bb1ae808b4
|
@ -145,6 +145,7 @@ schema("/configs/limiter") ->
|
||||||
'operationId' => limiter,
|
'operationId' => limiter,
|
||||||
get => #{
|
get => #{
|
||||||
tags => ?TAGS,
|
tags => ?TAGS,
|
||||||
|
hidden => true,
|
||||||
description => ?DESC(get_node_level_limiter_configs),
|
description => ?DESC(get_node_level_limiter_configs),
|
||||||
responses => #{
|
responses => #{
|
||||||
200 => hoconsc:mk(hoconsc:ref(emqx_limiter_schema, limiter)),
|
200 => hoconsc:mk(hoconsc:ref(emqx_limiter_schema, limiter)),
|
||||||
|
@ -153,6 +154,7 @@ schema("/configs/limiter") ->
|
||||||
},
|
},
|
||||||
put => #{
|
put => #{
|
||||||
tags => ?TAGS,
|
tags => ?TAGS,
|
||||||
|
hidden => true,
|
||||||
description => ?DESC(update_node_level_limiter_configs),
|
description => ?DESC(update_node_level_limiter_configs),
|
||||||
'requestBody' => hoconsc:mk(hoconsc:ref(emqx_limiter_schema, limiter)),
|
'requestBody' => hoconsc:mk(hoconsc:ref(emqx_limiter_schema, limiter)),
|
||||||
responses => #{
|
responses => #{
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Remove `/configs/limiter` api from `swagger.json`, only the api documentation was removed,
|
||||||
|
and the `/configs/limiter` api functionalities have not been changed.
|
Loading…
Reference in New Issue