From b3b9aba794199ef1dc9198509efa3d22dbcd13a0 Mon Sep 17 00:00:00 2001 From: msm1992 Date: Tue, 30 Nov 2021 15:24:56 +0530 Subject: [PATCH] Add quotation marks to the API name and version to search for the exact API --- import-export-cli/cmd/importAPI.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import-export-cli/cmd/importAPI.go b/import-export-cli/cmd/importAPI.go index 0a7961c7e..0dbfe261b 100644 --- a/import-export-cli/cmd/importAPI.go +++ b/import-export-cli/cmd/importAPI.go @@ -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 }