Contact Us 1-800-596-4880

Importing an API Definition from Design Center

Anypoint Studio allows you to import an API Definition from Design Center and implement it either into a new Mule Project, or an existing one.

Importing an API from Design Center into a New Project

  1. Select File > New > Mule Project to create a project.

  2. Set the field values in the project wizard:

    1. Type a name for your project.

    2. Select a Mule runtime version.

    3. Select Specify API definition file location or URL.

    4. To the right of the Location field, click the "…​" button and select Design Center.

  3. In the Browse Design Center for APIs window:

    • Select your Anypoint Platform username and business Group.

      If you have configured your AnyPoint Platform credentials, your username and business group will be grayed out.

      Optionally, you can click the Add Account button to use a new Anypoint Platform account.

  4. From the list of available APIs, select the one you want and click OK.

  5. Click Finish.

APIKit generates the flow based on the API definition imported from Design Center.

Importing an API from Design Center into an Existing Project

  1. Right click your Mule Project on the Package Explorer View.

  2. Select Anypoint Platform and then Import from Design Center.

  3. Select your Anypoint Platform username and business Group.

    If you have configured your AnyPoint Platform credentials, your username and business group will be grayed out.

    Optionally, you can click the Add Account button to use a new Anypoint Platform account.

  4. From the list of available APIs, select the one you want and click OK.

    Importing an API definition from Design Center into an existing project deletes all your resources from your src/main/resources/api directory.

  5. Click Finish.

APIKit generates the flow based on the API definition imported from Design Center.