Skip to content

Commit

Permalink
Merge pull request #837 from msm1992/3.0.x-343
Browse files Browse the repository at this point in the history
[3.0] Add quotation marks to the API name and version to search for the exact API
  • Loading branch information
msm1992 authored Dec 3, 2021
2 parents 4fd3923 + b3b9aba commit 31aa318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import-export-cli/cmd/importAPI.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func injectParamsToAPI(importPath, paramsPath, importEnvironment string) error {

// getApiID returns id of the API by using apiInfo which contains name, version and provider as info
func getApiID(name, version, provider, environment, accessOAuthToken string) (string, error) {
apiQuery := fmt.Sprintf("name:%s version:%s", name, version)
apiQuery := fmt.Sprintf("name:\"%s\" version:\"%s\"", name, version)
if provider != "" {
apiQuery += " provider:" + provider
}
Expand Down

0 comments on commit 31aa318

Please sign in to comment.