membphis commented on a change in pull request #2268:
URL: https://github.com/apache/apisix/pull/2268#discussion_r492522932



##########
File path: doc/admin-api.md
##########
@@ -660,4 +661,33 @@ Config Example:
 }
 ```
 
+## Plugin Metadata
+
+*API*:/apisix/admin/plugin_metadata/{plugin_name}
+
+*Description*: plugin metadata.
+
+> Request Methods:
+
+|Method      |Request URI|Request Body|Description        |
+|---------|-------------------------|--|------|
+|GET      |/apisix/admin/plugin_metadata/{plugin_name}|NULL|Fetch resource|
+|PUT      |/apisix/admin/plugin_metadata/{plugin_name}|{...}|Create resource 
by plugin name|
+|DELETE   |/apisix/admin/plugin_metadata/{plugin_name}|NULL|Remove resource|
+
+> Request Body Parameters:
+
+An object with at least one property and at most 10 properties.
+
+
+Config Example:
+
+```shell

Review comment:
       we need a real example, how about we use plugin `example-plugin`

##########
File path: apisix/schema_def.lua
##########
@@ -602,6 +602,11 @@ _M.stream_route = {
     }
 }
 
+_M.plugin_metadata = {

Review comment:
       do we need to delete those code? it should be wrong.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to