简体   繁体   English

WSO2 APIM:通过Store REST API获取API评级和业务信息

[英]WSO2 APIM : Get API Rating and Business Information through Store REST API

I have a custom page where I obtain Published API list using WSO2 Store Restful API https://docs.wso2.com/display/AM220/apidocs/store/#!/operations#APICollection#apisGet 我有一个自定义页面,使用WSO2 Store Restful API https://docs.wso2.com/display/AM220/apidocs/store/#!/operations#APICollection#apisGet获取发布的API列表

The problem is the returned result does not includes API Rating and Business Information whereas the Jaggery API that has been used by the default API Manager UI does include it. 问题是返回的结果不包括API评级和业务信息,而默认API Manager UI使用的Jaggery API确实包含它。 Is there any way to configure it so the REST API returns that data? 有没有办法配置它以便REST API返回该数据?

If I use the jaggery API instead, it is cookie based while I am using OAuth2 OIDC Service Provider of the IS. 如果我使用jaggery API,它是基于cookie的,而我正在使用IS的OAuth2 OIDC服务提供商。 I cant obtain API that has visibility to only its own domain by passing access token to the Authorization header. 通过将访问令牌传递给Authorization标头,我无法获得仅对其自己的域具有可见性的API。

APIM Version: 2.2 APIM版本:2.2

Please Advice. 请指教。 Thanks! 谢谢!

There is no such a way which will change the output response of defined APIs. 没有这样的方法可以更改已定义API的输出响应。 If you want to do that, get source code of wso2 from github & edit the APIs & use the edited source to deploy your application. 如果要这样做,请从github获取wso2的源代码并编辑API,并使用编辑后的源代码部署您的应用程序。 (But this will add lots of maintenance issue) (但这会增加很多维护问题)

The quickest way is to call the get details of api . 最快的方法是调用apiget详细信息

It will return the business information object as well as below: 它将返回商业信息对象以及以下内容:

"businessInformation":    {
      "technicalOwner": "John Doe",
      "technicalOwnerEmail": "architecture@pizzashack.com",
      "businessOwner": "Jane Roe",
      "businessOwnerEmail": "marketing@pizzashack.com"
   },

Here you will get the heavy response as it returns the complete swagger definition as well. 在这里,您将获得高响应,因为它返回完整的swagger定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM