Create or upload an API definition 编辑

Create or upload an API definition

An API definition is a document that describes an API using OpenAPI Specification standards (Swagger 2.0, OpenApi 3.0.x). This definition can contain API resource paths and methods to operate them. You can add API definitions to Citrix ADM then deploy them to an API gateway (Citrix ADC).

You can create API definitions in one of the following ways:

Note

Currently, Citrix ADM supports parsing OAS specification files that use Swagger 2.0 or openapi 3.0.1.

Upload the OAS specification

You can upload the OAS specification to the Citrix ADM GUI.

  1. Navigate to Security > API Gateway > API Definitions.

  2. Click Add.

  3. Select Upload OAS Specification.

    Note

    Ensure the OAS Specification file is in YAML or JSON format. And, this file must not contain external references. Currently, Citrix ADM supports Swagger version 2.0.

  4. Browse an OAS specification from your local computer and upload to Citrix ADM.

Create an API definition

You can create your own API definition in the Citrix ADM GUI.

  1. Navigate to Security > API Gateway > API Definitions.

  2. Click Add.

  3. Select Create Your Definition and specify the following:

    • Name - A name for the API definition.

    • API Definition - A definition must include title, version, base path, and host. You can specify a domain name or IP address in the Host field.

    • API Resources - Add multiple API resources to your definition. Each resource has a path and supported method.

    Create an API definition

  4. Click Create.

View API definitions

The API Definitions page lists the uploaded definition. Click View to see the following API definition details:

  • Name – Displays the name of an API definition.

  • API Definition – Displays title, version, base path, and host of a definition.

  • API resources – Lists the API resources in an API definition and their methods to operate them.

Next, deploy this definition to an API gateway.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:27 次

字数:3440

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文