处理草稿
将 API 和应用程序放置在您的本地源代码控制系统中的同一位置,以便支持典型的开发活动,例如落实、分支、合并和连续集成等。 开发者工具箱 提供了从开发者环境到 IBM® API Connect 运行时服务的网桥。
API Connect 提供了称为 草稿 的联机开发功能,您可以在其中定义 API 和产品定义。 apic drafts 命令支持在本地源代码控制系统和草稿之间同步产品和 API 工件。
您可使用 drafts 来清除和列示草稿。 例如:
apic config:set catalog=https://platform-api.myserver.com/api/catalogs/climbon/sandbox # set the default Catalog
apic login --username some-user --password some-password --server platform-api.myserver.com --realm provider/myldap # login into the management server
apic create:api --title routes --product ClimbOn
apic drafts # list what is in drafts
apic drafts:clear --confirm drafts # clear drafts collection
apic drafts:list # list the available drafts
有关如何从 CLI 登录到管理服务器的完整详细信息,请参阅 登录到管理服务器。