Skip to content

Commit

Permalink
Merge pull request #348 from wasuradananjith/import-update-with-simil…
Browse files Browse the repository at this point in the history
…ar-name-2.0.x

[2.x] Add quotation marks to the API name when searching the exact API
  • Loading branch information
npamudika authored Jun 19, 2020
2 parents c9fa663 + 638329d commit 32f2719
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 @@ -480,7 +480,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 32f2719

Please sign in to comment.