how to create an api in mule
TRANSCRIPT
How to create an API in mule
Create mule project
Name it as Sample APIClick on finish
Right Click on src/main/api and create raml definition
Name it as test.raml
Write RAML file as you like
Right click on test.raml and generate flows from RAML
Studio will automatically create the flows like below
Right click on project and Run As mule application
After deploying the application we can access the API through below Url
http://localhost:8081/api/console/
When we click on get method ,will get response as below