Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add API specific policy using YAML format via Publisher REST API #1635

Closed
ug205 opened this issue Mar 20, 2023 · 1 comment · Fixed by wso2/product-apim#13191 or wso2/carbon-apimgt#12237

Comments

@ug205
Copy link

ug205 commented Mar 20, 2023

Description

Unable to add an API specific policy through the publisher rest api as provided in the documentation[1] when using YAML format.
[1].https://apim.docs.wso2.com/en/latest/reference/product-apis/publisher-apis/publisher-v3/publisher-v3/#tag/API-Operation-Policies/operation/addAPISpecificOperationPolicy

Steps to Reproduce

Start APIM Server.
Create an API.
Try to add the policy as below for the API_ID using [email protected] and [email protected] , policy spec file in YAML.

curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -H "Content-Type: multipart/form-data" -F [email protected] -F [email protected] "https://127.0.0.1:9443/api/am/publisher/v3/apis/96077508-fd01-4fae-bc64-5de0e2baf43c/operation-policies"

Affected Component

APIM

Version

4.1.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@YasasRangika
Copy link

Need to merge the public fix: wso2/product-apim#13191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment