Skip to content

Commit

Permalink
Merge pull request #1211 from Tharsanan1/airl
Browse files Browse the repository at this point in the history
Fix dp to cp flow for normal APIs
  • Loading branch information
Tharsanan1 authored Oct 9, 2024
2 parents 5e2c2b0 + bf1febc commit 129ba5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apim-apk-agent/pkg/managementserver/rest_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,11 @@ func createAPIYaml(apiCPEvent *APICPEvent) (string, string) {
"authorizationHeader": authHeader,
"apiKeyHeader": apiKeyHeader,
"scopes": scopes,
"aiConfiguration": aiConfiguration,
},
}
if len(aiConfiguration) > 0 {
data["data"].(map[string]interface{})["aiConfiguration"] = aiConfiguration
}
// TODO when we start to process sandbox we need to have this if condition. For now we remove sandbox endpoint always.
// if apiCPEvent.API.SandEndpoint == "" {
delete(data["data"].(map[string]interface{})["endpointConfig"].(map[string]interface{}), "sandbox_endpoints")
Expand Down

0 comments on commit 129ba5b

Please sign in to comment.