akamai / cli-api-gateway

Apache License 2.0
4 stars 5 forks source link

Host section is not updated when importing a swagger/openApi file #7

Open amosstikal opened 3 years ago

amosstikal commented 3 years ago

Hi,

When running the following CLI: akamai api-gateway import --format swagger --file customerselfservice-api_OAS3.yml --endpoint 671928 --json

The file is imported successfully, but the "host" is not updated

The related API was fixed by adding "?force=true" https://{{host}}/api-definitions/v2/endpoints/671928/versions/75/file**?force=true**

Need to fix the CLI accordingly - I would add a new "--force" flag to reflect that

Amos