Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this Articlearticle

Table of Contents
maxLevel2
absoluteUrltrue

Overview 

You can create and manage multiple versions of your APIs. A version of an API contains SnapLogic assets such as Pipelines, Tasks, and Open API Specification files. Clicking an API on the API Details page opens the Version Details page, where you can view details about the version and add API policies. You can also search assets through assets in a Version and view Permission sets.

When you are viewing an API version, you can navigate to the API Details and APIM API Management landing page by clicking the respective folders in the folder path.

The following example illustrates the path of an API version:

API Manager - /apim/API_Test/1.1

From this view, you can click at on any component in the path to navigate to that level of the APIM API Management hierarchy:

  • Feature Landing Page: APIM --

    API Management > API Manager: Landing Page

  • API: API_Test

  • API

    Version: 1.1

Prerequisites

  • Your Org must have a subscription to the API Management feature; otherwise, the API Management UI is not enabled.

  • You must have Write permissions to create an API.

API Manager

You can navigate to the API Manager console by clicking Manager > API Management > API Manager.

...

Anchor
creating-api-version-design-first
creating-api-version-design-first
Creating an API Version

...

Using Design First

  1. Navigate to API Management > API Manager, and click the target API to display the API Details page.

...

  1. Click the Versions tab, then click 

...

  1. (blue star)  to display the Create Version dialog window.

...

  1. Image Added
  2. In the Create

...

  1. API version dialog window, import the

...

  1. API Specification by

...

  1. selecting one of the following options, then click Continue:

    • Select Upload File to choose a file from your local machine

...

    • . Both JSON and YAML file formats are supported.

      Image Added
    • Select Enter URL to refer to the API specification by URL.

...

    • Image Added

...

  1. Select/deselect the Import Configuration options, then click Import and Continue.
    The options for import are selected by default.

    • Create Specification: Select to include the specification as a File Asset in the API. Both Deselect to omit the specification file you uploaded.

    • Create Endpoints from Path: Select to include all default Assets for this API.

...

    • Deselect to leave the API an empty container for you to provide the Assets later.

      Image Added
  1. Enter

...

  1. information about your Version, then click Create.

...

    • General Info: Provide basic information about your API. The name is the API name plus the version number.

      • Description

...

      • : Enter a brief description.

      • Version

...

      • : Define the version. By default, the

...

      • version is 1.0 when you create an API

...

      • for the

...

      • first time.

...

      • Tags

...

      • : Enter any tags associated with your API.

    • Endpoint Configuration: The base path for the endpoint.

    • Server Configuration: Enter the Snaplex associated with this API.

      Image Added

    You must enter a name and Snaplex. You can also change the version from this dialog window, and therefore create another version of the API.

...

  1. After you create a version of an API, the Version asset is displayed on the Versions Details page. You can view information about the assets used in the API version by clicking it.

Anchor
creating-api-version-from-existing-assets
creating-api-version-from-existing-assets
Creating an API Version from Existing Project Assets

  1. Navigate to API Management > API Manager, and click the target API to display the API Details page.

  2. Click the Versions tab, then click Image Added to display the Create Version dialog window.

    Image Added
  3. In the Create API version dialog window, select Create from Existing Project, then click Continue:

    Image Added
  4. In the Create API Version-Select Assets dialog window, select/deselect the assets from the Project to use in the API Version, then click Import and Continue.
    An Asset selected at the root level also imports the leaf-level Assets.

    Image Added
  5. Enter information about your API Version, then click Create.
    Image Added

    • General Info: Provide basic information about your API. The name is the API name plus the version number.

      • Description: Enter a brief description.

      • Version: Define the version. By default, the version is 1.0 when you create an API for the first time.

      • Tags: Enter any tags associated with your API.

    • Endpoint Configuration: The base path for the endpoint.

    • Server Configuration: Enter the Snaplex associated with this API.

    You must enter a name and Snaplex. You can also change the version from this dialog window, and therefore create another version of the API.

    After you create a version of an API, the Version asset is displayed on the Versions Details page. You can view information about the assets used in the API version by clicking it.

Anchor
creating-empty-api-version
creating-empty-api-version
Creating an Empty API Version

  1. Navigate to API Management > API Manager, and click the target API to display the API Details page.

  2. Click the Versions tab, then click Image Added to display the Create Version dialog window.

    Image Added
  3. In the Create API version dialog window, select Create Empty API Version click Continue.
    Image Added

  4. Enter information about your Version, then click Create.

    • General Info: Provide basic information about your API. The name is the API name plus the version number.

      • Description: Enter a brief description.

      • Version: Define the version. By default, the version is 1.0 when you create an API for the first time.

      • Tags: Enter any tags associated with your API.

    • Endpoint Configuration: The base path for the endpoint.

    • Server Configuration: Enter the Snaplex associated with this API.

    You must enter a name and Snaplex. You can also change the version from this dialog window, and

...

  1. therefore create another version of the API.
    Image Added

    After you create a version of an API, the Version asset is displayed on the Versions Details page. You can view information about the assets used in the API

...

  1. version by clicking it.

...

Edit API Version

You can edit the API Version

...

with the below steps:

  1. Navigate to API Manager > API > Versions:

    version-api.pngImage Added

     

  2. Click the Version you want to edit:

    versiondetails-api.pngImage Added
  3. Click Edit Details to update the Version:

    editdetails-versiondetails-api.pngImage Added
  4. Click Save. A message “Version details has been updated successfully” displays in the UI.

  • You can only edit the Version of the unpublished APIs.

  • Unpublish the API to edit the API Version.

  • Special characters such as |, <, >, [, ], {, },#, ?, /, and \. cannot be used.

Anchor
deleting-api-version
deleting-api-version
Deleting an API version

Note

You must delete all of the Assets in a Version before you can delete the Version.

  1. Navigate to API Management > API Manager, click the target API to display the API details page.

  2. Click the Versions tab and point your cursor on the target Version.
    The

...

  1. delete icon is displayed.

...

  1. Image Added

  2. Click 

...

  1. Image Added to delete the API Version, then click Delete on the confirmation prompt.
    Image Added

The API Version is deleted from the API Manager console.