Description:Issue 1:
According to the wso2am-3.2.0 documentation [1] when an application secret re-generate REST call is made, the response gives null values. But the secret is being updated successfully. When testing the application re-generate REST call as mentioned in wso2am-3.1.0 documentation [2] in the wso2am-3.2.0 pack the secret is re-generated and the correct response got retrieved.
Issue 2:
Even when executing the corrected request getting a null response. If the related issue https://github.com/wso2/product-apim/issues/9562 is fixed in the product with the same request then no changes are required in the documentation.
In case if the null response issue needs to be fixed by using the wso2am-3.1.0 request [2], then the wso2am-3.2.0 doc [1] needs to be updated with the wso2am-3.1.0 application secret re-generate request curl command.
Description: Issue 1: According to the wso2am-3.2.0 documentation [1] when an application secret re-generate REST call is made, the response gives null values. But the secret is being updated successfully. When testing the application re-generate REST call as mentioned in wso2am-3.1.0 documentation [2] in the wso2am-3.2.0 pack the secret is re-generated and the correct response got retrieved.
[1] https://apim.docs.wso2.com/en/latest/develop/product-apis/devportal-apis/devportal-v1/devportal-v1/#tag/Application-Keys/paths/1applications1{applicationId}1oauth-keys1{keyMappingId}~1regenerate-secret/post
[2] https://apim.docs.wso2.com/en/3.1.0/develop/product-apis/devportal-apis/devportal-v1/devportal-v1/#tag/Application-Keys/paths/1applications1{applicationId}1keys1{keyType}~1regenerate-secret/post
In [1] doc an additional "/" is added in the curl command after v1. This will give the following error.
The above request should be corrected as follows by removing the additional "/".
Issue 2: Even when executing the corrected request getting a null response. If the related issue https://github.com/wso2/product-apim/issues/9562 is fixed in the product with the same request then no changes are required in the documentation.
In case if the null response issue needs to be fixed by using the wso2am-3.1.0 request [2], then the wso2am-3.2.0 doc [1] needs to be updated with the wso2am-3.1.0 application secret re-generate request curl command.
[1] https://apim.docs.wso2.com/en/latest/develop/product-apis/devportal-apis/devportal-v1/devportal-v1/#tag/Application-Keys/paths/1applications1{applicationId}1oauth-keys1{keyMappingId}~1regenerate-secret/post
[2] https://apim.docs.wso2.com/en/3.1.0/develop/product-apis/devportal-apis/devportal-v1/devportal-v1/#tag/Application-Keys/paths/1applications1{applicationId}1keys1{keyType}~1regenerate-secret/post
Affected Product Version: wso2am-3.2.0
Related Issues: https://github.com/wso2/product-apim/issues/9562