apigee / apigeecli

This is a tool to interact with Apigee APIs. The tool lets you manage (create, del, get, list) environments, proxies, etc.
Apache License 2.0
51 stars 28 forks source link

apigeecli cache delete always fails because is performing a HTTP GET #500

Closed joaoorosario closed 1 month ago

joaoorosario commented 1 month ago

Hi, The request to the apiclient is missing the DELETE verb parameter, so it is performing a GET. This is why this command is always failing.

https://github.com/apigee/apigeecli/blob/fed602df42dec9ca3414ff1da98369dc4e3b1557/internal/client/cache/cache.go#L28

One additional note to the incorrect documentation, what is passed as name (-n) to the command is the cache resource name and not the proxy name.

Thank you in advance for the time :)