SlideShare a Scribd company logo
APIKIT from Command Line
Federico Amdan
Prerequisites
Check that you have:
● Maven installed in your system
● The following repository in your settings.xml:
<repository>
<id>mulesoft-releases</id>
<name>MuleSoft Releases</name>
<url>http://repository-master.mulesoft.org/releases/</url>
</repository>
Archetype
Used to have an skeleton of an APIKit project.
How to use it:
● Go to the folder where you want to have your APIKit project
● Run the following command:
mvn archetype:generate -DarchetypeGroupId=org.mule.tools -DarchetypeArtifactId=apikit-archetype -
DgroupId=org.mule -DartifactId=HelloWorld -Dversion=1.0 -DmuleVersion=3.7.0 -B
Archetype
Explanation of the command:
● -DarchetypeGroupId=org.mule.tools : Group id of the archetype. Always use this name
● -DarchetypeArtifactId=apikit-archetype : Name of the artifact. Always use this name
● -DarchetypeVersion=1.7.2 (Optional) APIKit Version
● -DgroupId=org.mule GroupId of the project that you will generate
● -DartifactId=HelloWorld : ArtifactId of the project that you will generate
● -Dversion=1.0 : Version of the project that you will generate
● -DmuleVersion=3.7.0 : Mule version that you will use when running the project. This parameter will let
the archetype know if the project should be generated using inbound-endpoint or listeners.
● -B : (Optional) Batch mode. When using this parameter, the skeleton will be created without asking
questions.
Archetype
The directories and files that the archetype will generate, will appear in the following
way:
|-- pom.xml
`-- src
`-- main
|-- api
| `-- api.raml
|-- app
| `-- mule-config.xml
|-- java
`-- resources
`-- api.properties
6 directories, 4 files
Scaffolder
This program will let you generate the necessary flows into your mule-config.xml file,
based on your RAML description of your API.
How it works:
After creating your skeleton of your project using the Archetype, go to the api.raml file
and complete it with your API description.
Go to the root of your project, and run the following command:
mvn org.mule.tools:apikit-maven-plugin:create
Scaffolder
● After running the command, you will be able to see the changes in your mule-
config.xml file.
● All the necessary flows will be there, including the examples of your responses (in
case you mentioned them in your RAML file).
● This process can be done any times you need.
Apikit from command line

More Related Content

What's hot (20)

PDF
Laravel presentation
Toufiq Mahmud
 
PDF
RESTful API development in Laravel 4 - Christopher Pecoraro
Christopher Pecoraro
 
PDF
DevJam 2019 - Building an ALEC Time Engine
Ronny Trommer
 
PPTX
Getting Started with Capistrano
LaunchAny
 
PPTX
Capistrano - automate all the things
John Cleary
 
PDF
Laravel
SitaPrajapati
 
ODP
Presentation laravel 5 4
Christen Gjølbye Christensen
 
PDF
Laravel 5.4
Nisha Patel
 
PPTX
API Development with Laravel
Michael Peacock
 
PDF
PHP Laravel Framework'üne Dalış
emirkarsiyakali
 
PPTX
Creating custom transformer
Rahul Kumar
 
ODP
Javascript laravel's friend
Bart Van Den Brande
 
PDF
03 ansible towerbestpractices-nicholas
Khairul Zebua
 
PDF
What's New in v2 - AnsibleFest London 2015
jimi-c
 
PPTX
Laravel Beginners Tutorial 2
Vikas Chauhan
 
KEY
深入淺出RoR
Eric Lee
 
PDF
Introduction to Laravel
Eli Wheaton
 
PPTX
Laravel ppt
Mayank Panchal
 
PDF
Top laravel packages to install handpicked list from expert
Katy Slemon
 
PDF
Task scheduling in laravel 8 tutorial
Katy Slemon
 
Laravel presentation
Toufiq Mahmud
 
RESTful API development in Laravel 4 - Christopher Pecoraro
Christopher Pecoraro
 
DevJam 2019 - Building an ALEC Time Engine
Ronny Trommer
 
Getting Started with Capistrano
LaunchAny
 
Capistrano - automate all the things
John Cleary
 
Laravel
SitaPrajapati
 
Presentation laravel 5 4
Christen Gjølbye Christensen
 
Laravel 5.4
Nisha Patel
 
API Development with Laravel
Michael Peacock
 
PHP Laravel Framework'üne Dalış
emirkarsiyakali
 
Creating custom transformer
Rahul Kumar
 
Javascript laravel's friend
Bart Van Den Brande
 
03 ansible towerbestpractices-nicholas
Khairul Zebua
 
What's New in v2 - AnsibleFest London 2015
jimi-c
 
Laravel Beginners Tutorial 2
Vikas Chauhan
 
深入淺出RoR
Eric Lee
 
Introduction to Laravel
Eli Wheaton
 
Laravel ppt
Mayank Panchal
 
Top laravel packages to install handpicked list from expert
Katy Slemon
 
Task scheduling in laravel 8 tutorial
Katy Slemon
 

Viewers also liked (16)

PDF
Mapa conceptual cma ptools
fabianherrera88
 
PDF
Gestión del conocimiento
joel97ma23
 
PPTX
TechKlout
jpanduranga
 
PDF
CloudU Certificate- Rackspace
Ankur Parashar
 
PDF
Travel
caiusbs
 
PPTX
Salon Gallery of Anna's Salon Elite in Aliquippa, PA
Anna's Salon Elite
 
PDF
Domains in apikit
fedefortin
 
PDF
Harrogate Profile 2016
Jean-Pierre Jordaan
 
PDF
21 ژست حرفه ای برای عکاسی از گروه
AXPrint | عکس‌پرینت
 
PDF
Certificat Electro Medical Systems
Simone Bianco
 
PPTX
The Promise of People in Civic Tech
Daniel X. O'Neil
 
PPTX
World chicago-italy
Daniel X. O'Neil
 
PDF
Exception mapping using api kit
fedefortin
 
DOCX
Discipline the key to jeffrey halcomb's success
Zoom Advertising
 
DOCX
Aeliya Ali
Elia bhutto
 
PPT
Induction booklet a2 media
ctkmedia
 
Mapa conceptual cma ptools
fabianherrera88
 
Gestión del conocimiento
joel97ma23
 
TechKlout
jpanduranga
 
CloudU Certificate- Rackspace
Ankur Parashar
 
Travel
caiusbs
 
Salon Gallery of Anna's Salon Elite in Aliquippa, PA
Anna's Salon Elite
 
Domains in apikit
fedefortin
 
Harrogate Profile 2016
Jean-Pierre Jordaan
 
21 ژست حرفه ای برای عکاسی از گروه
AXPrint | عکس‌پرینت
 
Certificat Electro Medical Systems
Simone Bianco
 
The Promise of People in Civic Tech
Daniel X. O'Neil
 
World chicago-italy
Daniel X. O'Neil
 
Exception mapping using api kit
fedefortin
 
Discipline the key to jeffrey halcomb's success
Zoom Advertising
 
Aeliya Ali
Elia bhutto
 
Induction booklet a2 media
ctkmedia
 
Ad

Similar to Apikit from command line (20)

PPT
Maven: Managing Software Projects for Repeatable Results
Steve Keener
 
PDF
Web Development with Laravel 5
Soheil Khodayari
 
PPTX
Tutorial 1: Your First Science App - Araport Developer Workshop
Vivek Krishnakumar
 
PPTX
Riga Dev Day - Automated Android Continuous Integration
Nicolas Fränkel
 
PPTX
Introduction to Laravel Framework (5.2)
Viral Solani
 
PDF
OpenSCAP Overview(security scanning for docker image and container)
Jooho Lee
 
DOCX
How to use_cucumber_rest-assured_api_framework
Harshad Ingle
 
PPTX
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
PDF
Ansible - Hands on Training
Mehmet Ali Aydın
 
PDF
Ansible Tutorial.pdf
NigussMehari4
 
PDF
Open erp technical_memento_v0.6.3_a4
openerpwiki
 
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
Alex S
 
PPT
Plugins And Making Your Own
Lambert Beekhuis
 
PPTX
4. introduction to Asp.Net MVC - Part II
Rohit Rao
 
ODP
ansible why ?
Yashar Esmaildokht
 
PDF
Open Source RAD with OpenERP 7.0
Quang Ngoc
 
PPTX
Cypress.pptx
Arshad QA
 
ODP
Laravel 5.3 - Web Development Php framework
Swapnil Tripathi ( Looking for new challenges )
 
PPTX
PHP Dependency Management with Composer
Adam Englander
 
Maven: Managing Software Projects for Repeatable Results
Steve Keener
 
Web Development with Laravel 5
Soheil Khodayari
 
Tutorial 1: Your First Science App - Araport Developer Workshop
Vivek Krishnakumar
 
Riga Dev Day - Automated Android Continuous Integration
Nicolas Fränkel
 
Introduction to Laravel Framework (5.2)
Viral Solani
 
OpenSCAP Overview(security scanning for docker image and container)
Jooho Lee
 
How to use_cucumber_rest-assured_api_framework
Harshad Ingle
 
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
Ansible - Hands on Training
Mehmet Ali Aydın
 
Ansible Tutorial.pdf
NigussMehari4
 
Open erp technical_memento_v0.6.3_a4
openerpwiki
 
Ansible is the simplest way to automate. MoldCamp, 2015
Alex S
 
Plugins And Making Your Own
Lambert Beekhuis
 
4. introduction to Asp.Net MVC - Part II
Rohit Rao
 
ansible why ?
Yashar Esmaildokht
 
Open Source RAD with OpenERP 7.0
Quang Ngoc
 
Cypress.pptx
Arshad QA
 
Laravel 5.3 - Web Development Php framework
Swapnil Tripathi ( Looking for new challenges )
 
PHP Dependency Management with Composer
Adam Englander
 
Ad

Recently uploaded (20)

PDF
NTPC PATRATU Summer internship report.pdf
hemant03701
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
PDF
Digital water marking system project report
Kamal Acharya
 
PDF
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
PPTX
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PDF
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PDF
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
darshai cross section and river section analysis
muk7971
 
NTPC PATRATU Summer internship report.pdf
hemant03701
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Digital water marking system project report
Kamal Acharya
 
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
darshai cross section and river section analysis
muk7971
 

Apikit from command line

  • 1. APIKIT from Command Line Federico Amdan
  • 2. Prerequisites Check that you have: ● Maven installed in your system ● The following repository in your settings.xml: <repository> <id>mulesoft-releases</id> <name>MuleSoft Releases</name> <url>http://repository-master.mulesoft.org/releases/</url> </repository>
  • 3. Archetype Used to have an skeleton of an APIKit project. How to use it: ● Go to the folder where you want to have your APIKit project ● Run the following command: mvn archetype:generate -DarchetypeGroupId=org.mule.tools -DarchetypeArtifactId=apikit-archetype - DgroupId=org.mule -DartifactId=HelloWorld -Dversion=1.0 -DmuleVersion=3.7.0 -B
  • 4. Archetype Explanation of the command: ● -DarchetypeGroupId=org.mule.tools : Group id of the archetype. Always use this name ● -DarchetypeArtifactId=apikit-archetype : Name of the artifact. Always use this name ● -DarchetypeVersion=1.7.2 (Optional) APIKit Version ● -DgroupId=org.mule GroupId of the project that you will generate ● -DartifactId=HelloWorld : ArtifactId of the project that you will generate ● -Dversion=1.0 : Version of the project that you will generate ● -DmuleVersion=3.7.0 : Mule version that you will use when running the project. This parameter will let the archetype know if the project should be generated using inbound-endpoint or listeners. ● -B : (Optional) Batch mode. When using this parameter, the skeleton will be created without asking questions.
  • 5. Archetype The directories and files that the archetype will generate, will appear in the following way: |-- pom.xml `-- src `-- main |-- api | `-- api.raml |-- app | `-- mule-config.xml |-- java `-- resources `-- api.properties 6 directories, 4 files
  • 6. Scaffolder This program will let you generate the necessary flows into your mule-config.xml file, based on your RAML description of your API. How it works: After creating your skeleton of your project using the Archetype, go to the api.raml file and complete it with your API description. Go to the root of your project, and run the following command: mvn org.mule.tools:apikit-maven-plugin:create
  • 7. Scaffolder ● After running the command, you will be able to see the changes in your mule- config.xml file. ● All the necessary flows will be there, including the examples of your responses (in case you mentioned them in your RAML file). ● This process can be done any times you need.