Exporting an OpenAPI (Swagger 2.0) definition file for a REST API

After you create a REST API definition, you can export a file that contains the OpenAPI (Swagger 2.0) definition for the API.

About this task

The file that is exported is in YAML format.

Procedure

To export an OpenAPI (Swagger 2.0) definition file for a REST API, complete the following steps:

  1. If you have not previously pinned the UI navigation pane then click the Navigate to icon The Navigate to icon.
    The API Manager UI navigation pane opens. To pin the UI navigation pane, click the Pin menu icon The Pin menu icon..
  2. Click Drafts in the UI navigation pane, and then click APIs.
    The APIs tab opens.
  3. Click the REST API definition that you want to work with.
  4. Click the More Actions icon The More Actions icon and then click Download.

Results

A file that contains the OpenAPI (Swagger 2.0) definition for your API is downloaded.