“[文章] 使用 WSO2 API Manager 实现 API 货币化"相关问题 [英] "[Article] Enabling Monetization of APIs with WSO2 API Manager" related questions

查看:11
本文介绍了“[文章] 使用 WSO2 API Manager 实现 API 货币化"相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试根据文章 1,在配置计费引擎步骤 5 定义计费计划,我找不到相关 URL.我尝试了本地部署,似乎所有 URL 都需要用户登录.

I tried to POC WSO2 APIM integration with billing engine according the article 1, at the Configure the billing engine step 5 Define the billing plan, i can't find related URL. I tried my local deployment, it seems all URLs needs user login.

所以我的问题是:

  1. API 订阅者是否使用示例计费引擎"?
  2. 为什么需要用户在示例计费引擎"中重新定义使用计划?使用计划层应由 API 发布者在 APIM 中定义.
  3. 任何在现实世界中使用的配置示例?如何将订阅者选择的使用计划自动同步到计费引擎"?

推荐答案

请在这里找到我的答案,

Please find my answers here,

  1. 没有.Api 开发者是获得报酬的用户,而 API 订阅者是计费者.所以 API 开发者使用计费引擎.

  1. No. Api developer is the user who get paid and api subscriber is who billed. So billing engine is used by API developer.

APIM 使用限制层来管理进入 API 网关的 API 请求.但在计费引擎中,计费计划与 APIM 中使用的 API 层不同.在计费引擎中,我们使用计费计划来定义计费规则.在节流层中,我们定义了 API 节流的规则.所以定义一个基于限流层和映射的计费计划,需要在计费系统中手动定义.在实际计费系统中,您可以有比这更复杂的计费规则.

APIM use throttling tiers to manage the API request coming to the API Gateway. But in a billing engine billing plan is diffrent from the API tiers used in APIM. In the billing engine we used billing plan to define the rules for billing. And in throttling tier we define the rules for API throttling. So define a billing plan based on the throttling tiers and mapping, need to be define manually in the billing system. In the Actual billing system you can have more complex billing rules than this.

在实际情况下,订阅者可以选择多个节流层.这就是为什么在这个例子中没有这样的选项.如果您想自动同步它们,您可能需要向计费引擎编写额外的功能.您可以使用 APIM 存储[1] REST API 找到订阅限制层

In Actual case, there can be multiple throttling tiers subscribers may selected. That's why there is no such a option in this examples. If you want to sync them automatically you may need to write extra function to the billing engine. You can find the subscribe throttling tiers using APIM store[1] REST APIs

[1] https://docs.wso2.com/display/AM1100/Store+API

谢谢.

这篇关于“[文章] 使用 WSO2 API Manager 实现 API 货币化"相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆