Contact Free trial Login

Import an API Specification from Design Center

Anypoint Studio enables you to import a RAML API specification from Design Center into either a new Mule project or an existing one.

This task only works for RAML types of API specifications.

Import an API Specification from Design Center Into a New Project

  1. In the taskbar at the top of the Anypoint Studio display, select File > New > Mule Project.

  2. Type a name for your project.

  3. Select a Mule runtime engine version 4.1.4 or later.

  4. In the API Specification section, select the From Design Center or Local Files tab.

  5. In the Location field, click the …​ button and select Design Center…​.

  6. Select your Anypoint Platform username.
    If you are not logged in, you can click the Add Account button to add your Anypoint Platform account.

  7. In the Browse Design Center for APIs window, select the Anypoint Platform business group where the API specification is located.
    If you have configured your AnyPoint Platform credentials, the username and business group options are unavailable.
    If you want to use a different account, click the Add Account button and log in again.

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

  9. Click Finish.

Studio scaffolds your API specification. If you choose not to create flows out of your API specification, unselect the Scaffold Flows From These API Specifications checkbox.

Import an API Specification from Design Center into an Existing Project

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

  1. In the Package Explorer view, right-click on your project and select Anypoint Platform > Import From Design Center (Local Copy).

  2. Select your Anypoint Platform username.
    If you are not logged in, you can click the Add Account button to add your Anypoint Platform account.

  3. In the Browse Design Center for APIs window, select the Anypoint Platform business group where the API specification is located.
    If you have configured your AnyPoint Platform credentials, the username and business group options are unavailable.
    If you want to use a different account, click the Add Account button and log in again.

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

  5. Click Finish.

Studio scaffolds your API specification. If you choose not to create flows out of your API specification, unselect the Scaffold Flows From These API Specifications checkbox.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub