wso2 apim 1.10中是否存在类似于RemoteUserStoreManagerService的管理服务,以获取有关特定用户发布的api以及他订阅了什么api的信息?
我知道我们可以从数据库中获取此信息,但我想使用管理服务。
谢谢, 桑托什
答案 0 :(得分:0)
您可以在APIM 1.10.0中使用Store Jaggery APIs。
获取用户john
创建的所有API。
1)以admin
用户(或同时拥有发布者和商店访问权限的任何其他用户)登录
curl -X POST -c cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d 'action=login&username=admin&password=admin'
2)搜索john
发布的API。
curl -X POST -b cookies "http://localhost:9763/store/site/blocks/search/api-search/ajax/search.jag" -d "action=searchAPIs&query=provider:john&start=0&end=3"
获取用户john
订阅的所有API
1)以用户john
登录。
curl -X POST -c cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d 'action=login&username=john&password=pass'
2)获取所有订阅
curl -b cookies http://localhost:9763/store/site/blocks/subscription/subscription-list/ajax/subscription-list.jag?action=getAllSubscriptions