WSO2 响应类型和 api 消耗
WSO2 type of response and api consumption
我是WSO2的新手,有一些问题。
我有一个 api,当消耗 returns 一个 XML 响应时,我需要它 JSON,从我读到的必须修改 "Response content type" 但我不知道如何修改
在哪里可以找到通过邮递员调用令牌生成器 api 和我的 api 的文档。
最后,一些关于如何从我的最终应用程序中使用 API 的文档
非常感谢
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/
我是WSO2的新手,有一些问题。
我有一个 api,当消耗 returns 一个 XML 响应时,我需要它 JSON,从我读到的必须修改 "Response content type" 但我不知道如何修改
在哪里可以找到通过邮递员调用令牌生成器 api 和我的 api 的文档。
最后,一些关于如何从我的最终应用程序中使用 API 的文档
非常感谢
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/