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

Add support for generating the SecuritySchema of the Swagger using real Key Manager information. #12538

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

YasasRangika
Copy link
Contributor

Purpose

To add the improvement to the code when the key manager ID will be passed as a query param to the GET swagger request in the devportal, the grants available for that particular key manager will be appended to the swagger definition.

Goal

Resolves: wso2/api-manager#3044

Approach

After this code enhancement, users at the devportal can download the OAS3 definition with the default key manager information because the try-out page only supports the default key manager.

Additionally, users can pass the key manager ID as a query parameter in the curl request as follows to retrieve an OAS3 definition with the specific key manager information supported by OAS3.

curl 'https://<HOST>:<PORT>/api/am/devportal/v2/apis/<API_UUID>/swagger?environmentName=Default&query=kmId%3A<KEY_MANGER_UUID>' -H 'Accept: application/json' -H 'Authorization: Bearer <ACCESS_TOKEN>' -k -i

@YasasRangika YasasRangika force-pushed the yasas-master branch 3 times, most recently from f0d0ffb to 7fc7f46 Compare September 6, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APIM v4.0.0] Pass KM along with grant types as a query param to the swagger
1 participant