apim-apps
apim-apps copied to clipboard
Fix #3657: Set default Subscription Plan during Async API creation
Issue Reference
Fixes wso2/api-manager#3657
Description
When creating an Async API by providing a URL or uploading a file, the subscription plan was set to null. This caused issues where no default subscription policy was applied in the deployment.
Fix
- Set the default subscription policy to
['AsyncUnlimited'], ensuring that every Async API has a default subscription policy unless explicitly changed by the user. - This implementation follows the same approach as the REST API, where a default subscription policy is assigned unless a different value is explicitly set.
Changes
- Applied the default policy value at the reducer level to ensure that the policy is set during the API creation process.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code