WSO2 响应类型和 api 消耗

WSO2 type of response and api consumption

我是WSO2的新手,有一些问题。

非常感谢

I have an api and when consumption returns an XML response, I need it in JSON, from what I have read I must modify the "Response content type" but I don't know how

您必须在输出序列中将 messageType 设置为 application/json。

<property name="messageType" value="application/json" scope="axis2"/>

你可以参考这个了解更多详情https://docs.wso2.com/display/EI640/Working+with+JSON+Message+Payloads

另外请查看此 https://docs.wso2.com/display/AM260/Adding+Mediation+Extensions 以了解如何在 API 管理器

中为 as out 序列添加中介扩展

Where can I find documentation to call the token generator api and my api through postman. Refer this https://apim.docs.wso2.com/en/latest/learn/api-security/oauth2/grant-types/overview/ Select your grant type and analyse it.

Finally, some documentation of how the APIs are consumed from my final application This may help you https://apim.docs.wso2.com/en/3.1.0/learn/consume-api/manage-subscription/subscribe-to-an-api/