Merge pull request #13028 from kjellwinblad/kjell/swagger_example_missing_ruleid_paramter/EMQX-12325

fix: include ruleid parameter in swagger example for apply rule endpoint
This commit is contained in:
Kjell Winblad 2024-05-13 17:35:31 +02:00 committed by GitHub
commit 1c34a84dd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ schema("/rules/:id/test") ->
tags => [<<"rules">>],
description => ?DESC("api11"),
summary => <<"Apply a rule for testing">>,
parameters => param_path_id(),
'requestBody' => rule_apply_test_schema(),
responses => #{
400 => error_schema('BAD_REQUEST', "Invalid Parameters"),