运行 Python 脚本以将 API 批量上载到 Oracle API Platform Cloud Service

创建配置文件、CSV 数据文件并安装了 Python 3.x 后,您可以运行 Python 实用程序。Before running the main script, make sure that you have the API Manager role in Oracle API Platform Cloud Service , and that all the .py files are located in the same folder.

要运行该实用程序,请打开命令提示符并执行命令:

$python LoadAPIs.py

输入您的 Oracle API Platform Cloud Service 密码,然后单击 Enter。该实用程序将开始创建 API 并将其部署到 Oracle API Platform Cloud Service 实例。

验证 API 平台管理门户中的 API

在 Oracle API Platform Cloud Service 中创建或部署 API 后,您可以随时验证是否已创建 API。

  1. 登录 Oracle API Platform Cloud Service
  2. 在 API 门户中单击 API。
  3. 单击任意 API 以查看其详细信息。
  4. 在侧面板中查看 API 详细信息。侧面板显示 API 的名称和版本、API 的说明、API 的发布状态,例如已发布从未发布未发布
  5. 要检查部署的 API,请单击部署。请注意,仅部署了具有网关 ID 的 API。