Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: APIM-870

In this article

...

  1. In the API Manager, go to the APIs & Proxies tab.

  2. Navigate to the Details page of the item you want to publish.

    • For API versions,

      • Click the API’s name in the list.

      • Go to the Versions tab.

      • Click the version number.

    • For Proxies, click the proxy’s name in the list.

  3. In the Version Details tab or Proxy Details tab, click Publish.

    Image RemovedImage Added
  4. In the first Publish API dialog, configure the following settings:

    Image RemovedImage Added
    • Upload API Documentation: Both JSON and YAML file specifications are supported.
      Choose one of the following options:

      • File from URL. References a file in the specified URL.

      • File from Version. Selects a file asset included in the API Version.

      • Local File. Uploads a file from your local machine.

      • (blue star) . Choose the specification file from the dropdown list.

    • Contact Email: The email address that an API consumer can contact about the API Version or Proxy. This field automatically displays the SnapLogic username of the user publishing the API, which you can change to any valid email address.

    • Contact Slack: Slack channels and recipients (with the appropriate Slack URL) that an API consumer can contact about the API Version or Proxy.

    • Portal Categories: Select from the list of categories that are preconfigured for your Developer Portal.

    • Server: Select the Snaplex to host the API. API Proxies do not support this option.

    • Mark as Featured API: Showcase this API Version or Proxy in the Featured section of the Developer Portal.

    • Dev Portal: select one of the following two options.

      • External - Public: (default option) Makes the API visible to all Developer Portal users.

      • Internal - Private: Makes the API visible only to APIM users.

  5. In the second Publish API dialog, configure the following settings:

    Publish API - second pageImage RemovedPublish API - second pageImage Added
    • Under Subscription Settings:

      • Allow Subscriptions: If selected, API consumers can subscribe to this API Version or Proxy.

      • Auto Approve Keys: If selected, subscriptions are automatically approved.

    • Under Key Settings:

      • Custom Header: Specify the name of the custom header that will hold the subscribed application’s client key, when sending a request to call the API.

      • Query Parameter: Specify the name of the query parameter that will hold the subscribed application’s client key, when sending a request to call the API.
        IMPORTANT: If you modify these settings for an already published API, the subscriber receives an automatically generated email notification.
        NOTE: If neither field value is specified:

        • If API is published with OAS 3.0 the API consumer must pass the secret key in the header as an Authorization key only.

        • If API is published with OAS 2.0 the API consumer must pass the secret key in the header as an Authorization key with the prefix Bearer.

  6. Click Publish and Exit.

...

  1. From the Publish API dialog, click the icon next to your selected file to open the API Specifications Editor.

    Image RemovedImage Added

  2. You can edit your API specifications (both JSON and YAML files) and view any errors with the code. When you are done making changes, click Save to close this window. 

    Image RemovedImage Added

Add Documentation References to your Published API

...

  1. In the Version Details tab or Proxy Details tab, do the following:

    1. Click Generate API Specification and choose the YAML as the file type. The YAML format is more readable. You can select either OAS 2.0 or 3.0 version.

    2. Click Publish to open the Publish API dialog.

  2. Select File from Version, and choose your generated specification file.

  3. Click (blue star) to open the Swagger Editor. The API Editor opens in another browser tab.

In the specification, add the following fields under the version field, as shown in the following image:

...

  • externalDoc

...

    • Description: Enter a description.

    • url:

...

    • Add a valid URL to the API documentation

...

  • "termsOfService": Add a valid URL to the API's service agreement

  • "license"
          "name": Enter the name of the license
          "url": Add the URL for the license agreement

  • On the top right, click Save. The Swagger Editor closes.

  • Return to the Publish API dialog in the tab from which you started.

  • Complete the remaining fields in the Publish API dialog, and then click Publish.

  • Go to the target API in the Developer Portal, and verify that the doc link works.

    Image Modified

Unpublishing an API Version from the Developer Portal

...

  1. In the API Management console, perform one of the following actions:

    • In API Manager, navigate to the target API version, then click Unpublish.

    • Click Portal Manager, scroll to the target API, and in the Actions column, click Unpublish.

  2. Review the Unpublish API confirmation prompt, then click Unpublish.

    Image RemovedImage Added

To verify that the API version is unpublished, check the status in the Portal Manager or Version Details of the API version.

...

  1. In the API Management console, complete one of the following actions:

    • In API Manager, navigate to the target API version, then click Deprecate.

    • Click Portal Manager, scroll to the target API, and in the Actions column, click Deprecate.

  2. Enter a message for the consumers of this API version, and click Deprecate.

    Image RemovedImage Added

  3. To verify that the API version is deprecated check the status in the Portal Manager or Version Details of the API version.

...

  1. In the API Management console, complete one of the following actions:

    • In API Manager, navigate to the target API version, then click Retire.
      The Status must be Deprecated to enable the Retire button.

    • Click Portal Manager, scroll to the target API, and in the Actions column, click Retire.

  2. Review the Retire API confirmation prompt, then click Retire.

    Image RemovedImage Added

To verify that the API version is Retired from the Developer Portal, check the status in the Version Details of the API version. The retired API version is no longer displayed in the Portal Manager or the Developer Portal.

...