A Demo mule project to create Employee APIs using RAML.
- RAML
- APIkit
- MuleStudio
- MySQL with MySQL connector
- Maven
A MySQL connection at localhost:3306
is configured by default with the following settings:
- Username: root
- Password: root
Tables can be created by running the DDL script.
- Java 1.7 or above
- MySQL
- AnyPoint studio
- Clone project
git clone git@github.com:bvpatel/mule-raml-employee-api.git
- MySQL should be up and running
- Update MySQL configuration in this file(mule-raml-employee-api/src/main/app/employee_apis.xml)
- Run DDL script using MySQL user. e.g.
mysql -u root -proot < mule-raml-employee-api/src/main/resources/ddl.sql
- Import project in AnyPoint Studio
- Goto "src/main/api"
- Right click on "employee_apis.raml" and select "Mule"
- Click on "Generate Flows from REST API"
- Run project and enjoy!