操作 REST API
Draft comment:
This topic was viewed 407 times since its publication
您可以使用操作 REST API 来自动执行管理操作,而不是使用 wsadmin 命令。 要对在容器环境中运行的应用程序执行管理操作,必须使用这些 API。您可以使用操作 REST API 来自动执行管理操作。 This topic was viewed 407 times since its publication
产品随附了 REST API 的 Swagger 定义。 如果您的安装包含一个托管Swagger UI的Web服务器,则可以通过以下URL 访问Swagger(也称为 OpenAPI )的REST API定义:
https://host_name:port_number/root/ops/explorer 其中 host_name 是 Web 服务器的名称, port_number 是 Web 服务器使用的端口号, root 是服务器的上下文根。 在本地 Business Automation Workflow 中,没有上下文 root 或由管理员分配。 在 IBM® Cloud Pak for Business Automation 中,root 是 bas。 例如, localhost:9080/bas/ops/explorer。 有关配置 Web 服务器的信息,请参阅 自定义 Business Automation Workflow以与 Web 服务器配合使用.您还可以使用以下 REST API 调用来获取 Swagger 定义:
GET root/ops/docs此调用将返回包含 Swagger 定义的 JSON 对象。
This topic is shared by BAW, CP4BA, CP4BASaaS. Last updated on 2025-01-20 10:38