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:
zhongwencool 2023-06-30 11:54:01 +08:00 committed by GitHub
commit bb1ae808b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,7 @@ schema("/configs/limiter") ->
'operationId' => limiter,
get => #{
tags => ?TAGS,
hidden => true,
description => ?DESC(get_node_level_limiter_configs),
responses => #{
200 => hoconsc:mk(hoconsc:ref(emqx_limiter_schema, limiter)),
@ -153,6 +154,7 @@ schema("/configs/limiter") ->
},
put => #{
tags => ?TAGS,
hidden => true,
description => ?DESC(update_node_level_limiter_configs),
'requestBody' => hoconsc:mk(hoconsc:ref(emqx_limiter_schema, limiter)),
responses => #{

View File

@ -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.