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

bug: fixes api version spec updates #498 #499

Closed srinandan closed 1 month ago

kurtkanaskie commented 1 month ago

OK, so update works better.

One other issue, --file and --source-uri are mutually exclusive

gorun --org=$ORG --region=us-central1 apihub apis versions specs update \
>     --api-id=apigeecli-api-v1 \
>     --id=spec-v1_0_0 \
>     --version=v1_0_0 \
>     --display-name="spec-v1_0_0 updated via CLI" \
>     --file=apihub/foodtrucks.yaml \
>     --source-uri=https://developeri.kurtkanaskie.net/portals/api/sites/apigeex-mint-kurt-exco/liveportal/apis/food-trucks-v1-dev/download_spec
Error: contents and sourceURI cannot be set together
exit status 1

And just using --source-uri throws error

gorun --org=$ORG --region=us-central1 apihub apis versions specs update \
>     --api-id=apigeecli-api-v1 \
>     --id=spec-v1_0_0 \
>     --version=v1_0_0 \
>     --display-name="spec-v1_0_0 updated via CLI" \
>     --source-uri=https://developeri.kurtkanaskie.net/portals/api/sites/apigeex-mint-kurt-exco/liveportal/apis/food-trucks-v1-dev/download_spec
Error: required flag(s) "file" not set