bcgov / gwa-cli

Apache License 2.0
6 stars 1 forks source link

Convert hardcoded API URL versions to dynamic #81

Closed Jonesy closed 1 year ago

Jonesy commented 1 year ago

Acceptance Criteria

Several files have hardcoded versions in their URLs, i.e URL := fmt.Sprintf("/gw/api/v2/namespaces"), but we now assign a default version at build or run time via the AppContext.ApiVersion field. Replace the following file's hardcoded URLs with dynamic ones like so URL := fmt.Sprintf("/gwa/api/%s/namespaces", ctx.ApiVersion)

or any other files that may have been missed.