api-manager
api-manager copied to clipboard
Displaying the default value as empty in the Endpoint Security Configuration dropdown when API has been created only setting production endpoint security
Description
Please find the payload and swagger for sample API to be imported.
Endpoint : {{basepath}}/apis/import-openapi additionalProperties :
{"name":"cats","version":"1.0.0","context":"/cats","policies":["Gold","Silver"],
"endpointConfig":{
"endpoint_type":"http",
"endpoint_security":{ "production": {
"password": "",
"tokenUrl": null,
"clientId": null,
"clientSecret": null,
"customParameters": {},
"additionalProperties": {},
"type": "BASIC",
"grantType": null,
"enabled": true,
"uniqueIdentifier": null,
"username": "abc"
}},
"sandbox_endpoints":{"url":"https://catfact.ninja/fact"},
"production_endpoints":{"url":"https://catfact.ninja/fact"}
}
}
file : swagger.yaml.zip
Steps to Reproduce
Import an API via postman, providing only production endpoint security info, without providing security configs for sandbox endpoint.
Affected Component
APIM
Version
4.3.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response