fgksgf commented on a change in pull request #601:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/601#discussion_r672318911



##########
File path: pkg/apisix/cluster.go
##########
@@ -550,3 +557,27 @@ func readBody(r io.ReadCloser, url string) string {
        }
        return string(data)
 }
+
+// getSchema returns the schema of APISIX object.
+func (c *cluster) getSchema(ctx context.Context, url string) (string, error) {
+       req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)

Review comment:
       I found `/apisix/admin/schema/plugins/<plugin_name>` and 
`/apisix/admin/plugins/<plugin_name>` return the same result.

##########
File path: pkg/types/apisix/v1/types.go
##########
@@ -463,3 +463,23 @@ func ComposeConsumerName(namespace, name string) string {
 
        return buf.String()
 }
+
+// Schema represents the schema of APISIX objects.
+type Schema struct {

Review comment:
       I did it but nothing updates.




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

To unsubscribe, e-mail: [email protected]

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


Reply via email to