JimMoen пре 1 година
родитељ
комит
c180b6a417
1 измењених фајлова са 5 додато и 7 уклоњено
  1. 5 7
      apps/emqx_management/src/emqx_mgmt_api_plugins.erl

+ 5 - 7
apps/emqx_management/src/emqx_mgmt_api_plugins.erl

@@ -170,10 +170,9 @@ schema("/plugins/:name/config") ->
     #{
     #{
         'operationId' => plugin_config,
         'operationId' => plugin_config,
         get => #{
         get => #{
-            summary =>
-                <<"Get plugin config">>,
+            summary => <<"Get plugin config">>,
             description =>
             description =>
-                "Get plugin config by avro encoded binary config. Schema defined by user's schema.avsc file.<br/>",
+                "Get plugin config. Config schema is defined by user's schema.avsc file.<br/>",
             tags => ?TAGS,
             tags => ?TAGS,
             parameters => [hoconsc:ref(name)],
             parameters => [hoconsc:ref(name)],
             responses => #{
             responses => #{
@@ -186,7 +185,7 @@ schema("/plugins/:name/config") ->
             summary =>
             summary =>
                 <<"Update plugin config">>,
                 <<"Update plugin config">>,
             description =>
             description =>
-                "Update plugin config by avro encoded binary config. Schema defined by user's schema.avsc file.<br/>",
+                "Update plugin config. Config schema defined by user's schema.avsc file.<br/>",
             tags => ?TAGS,
             tags => ?TAGS,
             parameters => [hoconsc:ref(name)],
             parameters => [hoconsc:ref(name)],
             'requestBody' => #{
             'requestBody' => #{
@@ -215,9 +214,8 @@ schema("/plugins/:name/schema") ->
     #{
     #{
         'operationId' => plugin_schema,
         'operationId' => plugin_schema,
         get => #{
         get => #{
-            summary => <<"Get installed plugin's avro schema">>,
-            description =>
-                "Get plugin's config avro schema.",
+            summary => <<"Get installed plugin's AVRO schema">>,
+            description => "Get plugin's config AVRO schema.",
             tags => ?TAGS,
             tags => ?TAGS,
             parameters => [hoconsc:ref(name)],
             parameters => [hoconsc:ref(name)],
             responses => #{
             responses => #{