In this tutorial, “we will Generate Flows From RAML Using Manage Dependency, This is one of the easiest way to generate the flow from RAML, in that case raml will be referred from Anypoint Exchange directly and a dependency will be added in POM.xml”
Step1:-
Create a sample RAML in design center
Step2:-
Created the endpoint “/search/{id}” with get method and here id is uriparams and queryParameters is defined in Raml .
Step3:-
Publish the API on Exchange, see below sampleAPI is published on exchange with version 1.0.0
and
Step4:-
Create a sample project in anypoint studio
Step5:-
after creating project.
Step6:-
Right Click on project and click on manage dependency-> Click on Manage API
Step7:-
New Window Open-> Click on + Sign and click on From Exchange
Step8:-
A new search window will open to search modules/api from exchange
Search sampleAPI and click on Finish
Step9:-
A new window will open with API name and version -> Click on Apply
after that ,When we click on apply it will ask for scaffold the API, click on Yes
Step10:-
It will give the success message, click on Apply and Close
We can see the scaffolding complete successfully and flows are generated as shown below and sampleapi.xml file generated
Step11:-
Project deployed successfully