Transcript
Page 1: How to create an api in mule

How to create an API in mule

Page 2: How to create an api in mule

Create mule project

Page 3: How to create an api in mule

Name it as Sample APIClick on finish

Page 4: How to create an api in mule

Right Click on src/main/api and create raml definition

Page 5: How to create an api in mule

Name it as test.raml

Page 6: How to create an api in mule

Write RAML file as you like

Page 7: How to create an api in mule

Right click on test.raml and generate flows from RAML

Page 8: How to create an api in mule

Studio will automatically create the flows like below

Page 9: How to create an api in mule

Right click on project and Run As mule application

Page 10: How to create an api in mule

After deploying the application we can access the API through below Url

http://localhost:8081/api/console/

Page 11: How to create an api in mule

When we click on get method ,will get response as below


Top Related