SlideShare a Scribd company logo
WT4 Building APIS
Agenda
● Use Anypoint Studio to build, run, and test Mule applications
●Use a connector to connect to database
●Use the graphical DataWeave editor to transform data
●Create RESTful interfaces for applications from RAML files
●Connect API interfaces to API implementations
WT 4-1: Create a Mule application with Anypoint Studio
1
2
3
4
Drag & drop Listener (HTTP) connector
Click the Listener
WT 4-1: Create a Mule application with Anypoint Studio
1
2
3
Enter /flights
Press OK button
with default value
WT 4-1: Create a Mule application with Anypoint Studio
1
2
3
4
Drag & drop Set Payload
component
Click fx button to change literal
mode
Run Mule Application
5
WT 4-1: Create a Mule application with Anypoint Studio
You can test after DEPLOYED is
shown at console log
The content is set at Set Payload
component
WT 4-2: Connect to data (MySQL database)
1
2
3
4
Drag & Drop Database 1.4.0
Drop & Drop Select component
Set Payload component
is replaced with
Database
Click Select component
WT 4-2: Connect to data (MySQL database)
1
2
3
4
MUFundamentals4.1_snippets.tx
t contains connection info. The
database is hosted by MuleSoft
Confirm connection
is valid after step 4
WT 4-2: Connect to data (MySQL database)
1
3
4
Response message will be transformed in next
section
2
WT 4-3: Transform data
1
2
3
4
Drag & Drop Transform
Message Component to next
Select component
5
変更
Saving files automatically
trigger deploy app
Click Transform Message
component
WT 4-3: Transform data
1
2
Response body contains rows
in MySQL database
We can see the difference
between data format at API
spec we created and one by the
mule app. We will correct this at
next section
WT 4-3: Transform data
Click
1
2
3
4
5
6
WT 4-3: Transform data
1
2
3
4
american-flights-
example.json looks like
Click
MUFundamentals4.1_stu
dentFiles_22sept2018.zip
contains the file
WT 4-3: Transform data
Mapping fields by drag & drop
fields
Output fields are shown based on
american-flights-example.json
WT 4-3: Transform data
1
after
before
2
WT 4-4: Create a RESTful interface for a Mule application
Click
Copy training4-American-
wsFlow
Click1
2
3
4
6
Click
5
WT 4-4: Create a RESTful interface for a Mule application
1
2
3
Click
Click
WT 4-4: Create a RESTful interface for a Mule application
1
2
3
4
5
Click
Response body contains
data with ID = 1
After save the file, the
app is automatically
deployed
WT 4-4: Create a RESTful interface for a Mule application
4
1
2
3
Double click
4
After save the file, the
app is automatically
deployed
ID is dynamically set by
uri parameter
WT 4-4: Create a RESTful interface for a Mule application
1
2
3
6
5
Click
Drag & drop Listener above traing4-
American-wsFlow
4
Click
WT 4-4: Create a RESTful interface for a Mule application
1
2
3
4
5
Drag & Drop Set Payload
component
Submit Request
Click fx button to change literal
mode
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
1
2
3
4
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
1
2
3
Download American
Flights API by RAML at
design center
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
After donwload API
spec, american-flights-
api.xml is created
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
Sample data defined
by Design Center
Object schema
defined by Design
Center
Click
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
Delete HTTP Listener
at postFlight flow
1
2
3
4
Delete HTTP Listener
at training4-American-
wsFlow flow
Delete HTTP Listener
at getFlightsByID flow
5
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
Stop app and deploy it again
1
2
4
4
Deployed
Click
Confirm the path
3
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
Add api
Since you call API spec, the
response body contains static data
defined by Design Center.
WT 4-5: Use Anypoint Studio to create a RESTful API interface
from a RAML file
1
2
3
4
WT 4-6: Implement a RESTful web service
1
3
4
2Click
Select get:flights:american-flights-api-config
Drag & Drop
Select training4–
American-wsFlow at
implementation.xml
Delete
Transform
Message
WT 4-6: Implement a RESTful web service
Drag & Drop
1
2
3
Delete two Transform
Message ComponentsSelect get:flights:american-flights-api-config
Select getFlightsByID at
implementation.xml
WT 4-6: Implement a RESTful web service
Show data from
MySQL with given
ID

More Related Content

What's hot

Wt3 designing apis
Wt3 designing apisWt3 designing apis
Wt3 designing apis
Akihiro Iwaya
 
Making design decisions in React-based ClojureScript web applications
Making design decisions in React-based ClojureScript web applicationsMaking design decisions in React-based ClojureScript web applications
Making design decisions in React-based ClojureScript web applications
Falko Riemenschneider
 
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Indonesia
 
Localization in Rails
Localization in RailsLocalization in Rails
Localization in Rails
Tasawr Interactive
 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESB
Sanjeet Pandey
 
Configuring Anypoint Studio MQ connector
Configuring Anypoint Studio MQ connectorConfiguring Anypoint Studio MQ connector
Configuring Anypoint Studio MQ connector
Shanky Gupta
 
Mule esb
Mule esbMule esb
Python component in mule
Python component in mulePython component in mule
Python component in mule
Ramakrishna kapa
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
Rajkattamuri
 
Mule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutesMule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutes
Gennaro Spagnoli
 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
javeed_mhd
 
Mule
MuleMule
Mule
irfan1008
 

What's hot (13)

Wt3 designing apis
Wt3 designing apisWt3 designing apis
Wt3 designing apis
 
Making design decisions in React-based ClojureScript web applications
Making design decisions in React-based ClojureScript web applicationsMaking design decisions in React-based ClojureScript web applications
Making design decisions in React-based ClojureScript web applications
 
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React Native
 
Localization in Rails
Localization in RailsLocalization in Rails
Localization in Rails
 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESB
 
Presentation1
Presentation1Presentation1
Presentation1
 
Configuring Anypoint Studio MQ connector
Configuring Anypoint Studio MQ connectorConfiguring Anypoint Studio MQ connector
Configuring Anypoint Studio MQ connector
 
Mule esb
Mule esbMule esb
Mule esb
 
Python component in mule
Python component in mulePython component in mule
Python component in mule
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
 
Mule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutesMule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutes
 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
 
Mule
MuleMule
Mule
 

Similar to Wt4 building apis

Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3
Lalit Panwar
 
flask.pptx
flask.pptxflask.pptx
flask.pptx
asif290119
 
News web application
News web applicationNews web application
News web application
PrateekSingh467
 
M365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx VersionM365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx Version
Thomas Daly
 
Fi dev fs_81_ap mass upload
Fi dev fs_81_ap mass uploadFi dev fs_81_ap mass upload
Fi dev fs_81_ap mass upload
ANILKUMARPULIPATI1
 
Content based routing tutorial in mule
Content based routing tutorial in muleContent based routing tutorial in mule
Content based routing tutorial in mule
Sindhu VL
 
N-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityN-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and Security
Peter Gfader
 
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Vishal Parekh
 
LoadUI web performance testing tool
LoadUI web performance testing toolLoadUI web performance testing tool
LoadUI web performance testing tool
Milind Rupchandani
 
Advanced Visual Studio 2005 Tools For Office Programming And Deployment
Advanced Visual Studio 2005 Tools For Office Programming And DeploymentAdvanced Visual Studio 2005 Tools For Office Programming And Deployment
Advanced Visual Studio 2005 Tools For Office Programming And Deployment
David Truxall
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To Empowerment
Mohan Dutt
 
Creating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisherCreating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisher
Samchi Fouzee
 
Telerik Reporting– Quick Start (Part 1)
Telerik Reporting– Quick Start (Part 1)Telerik Reporting– Quick Start (Part 1)
Telerik Reporting– Quick Start (Part 1)Guo Albert
 
Onepush platformtotalsolution
Onepush platformtotalsolutionOnepush platformtotalsolution
Onepush platformtotalsolution
Andy Yang
 
HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...
HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...
HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...
Protect724manoj
 
OpenNTF Blast from ILUG 2007
OpenNTF Blast from ILUG 2007OpenNTF Blast from ILUG 2007
OpenNTF Blast from ILUG 2007
Kevin Pettitt
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI Publisher
Mohan Dutt
 
Cloud flow designer: Salesforce.com
Cloud flow designer: Salesforce.comCloud flow designer: Salesforce.com
Cloud flow designer: Salesforce.com
Michelle Emanuel, PMP, MBA
 
Forms Playback: Unlocking Oracle's Hidden Tool for Fast Dataloads
Forms Playback: Unlocking Oracle's Hidden Tool for Fast DataloadsForms Playback: Unlocking Oracle's Hidden Tool for Fast Dataloads
Forms Playback: Unlocking Oracle's Hidden Tool for Fast Dataloads
Nikunj Sanghvi
 

Similar to Wt4 building apis (20)

Apps1
Apps1Apps1
Apps1
 
Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3Chandigarh MuleSoft Meetup #3
Chandigarh MuleSoft Meetup #3
 
flask.pptx
flask.pptxflask.pptx
flask.pptx
 
News web application
News web applicationNews web application
News web application
 
M365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx VersionM365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx Version
 
Fi dev fs_81_ap mass upload
Fi dev fs_81_ap mass uploadFi dev fs_81_ap mass upload
Fi dev fs_81_ap mass upload
 
Content based routing tutorial in mule
Content based routing tutorial in muleContent based routing tutorial in mule
Content based routing tutorial in mule
 
N-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityN-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and Security
 
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
 
LoadUI web performance testing tool
LoadUI web performance testing toolLoadUI web performance testing tool
LoadUI web performance testing tool
 
Advanced Visual Studio 2005 Tools For Office Programming And Deployment
Advanced Visual Studio 2005 Tools For Office Programming And DeploymentAdvanced Visual Studio 2005 Tools For Office Programming And Deployment
Advanced Visual Studio 2005 Tools For Office Programming And Deployment
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To Empowerment
 
Creating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisherCreating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisher
 
Telerik Reporting– Quick Start (Part 1)
Telerik Reporting– Quick Start (Part 1)Telerik Reporting– Quick Start (Part 1)
Telerik Reporting– Quick Start (Part 1)
 
Onepush platformtotalsolution
Onepush platformtotalsolutionOnepush platformtotalsolution
Onepush platformtotalsolution
 
HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...
HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...
HP ArcSight Logger Forwarding Connector for HP NNMI Configuration Guide 5.2.1...
 
OpenNTF Blast from ILUG 2007
OpenNTF Blast from ILUG 2007OpenNTF Blast from ILUG 2007
OpenNTF Blast from ILUG 2007
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI Publisher
 
Cloud flow designer: Salesforce.com
Cloud flow designer: Salesforce.comCloud flow designer: Salesforce.com
Cloud flow designer: Salesforce.com
 
Forms Playback: Unlocking Oracle's Hidden Tool for Fast Dataloads
Forms Playback: Unlocking Oracle's Hidden Tool for Fast DataloadsForms Playback: Unlocking Oracle's Hidden Tool for Fast Dataloads
Forms Playback: Unlocking Oracle's Hidden Tool for Fast Dataloads
 

More from Akihiro Iwaya

Iot explore demo for cross clouds
Iot explore demo for cross cloudsIot explore demo for cross clouds
Iot explore demo for cross clouds
Akihiro Iwaya
 
Iot explorer デモ (MC, CC, Heroku, Core)
Iot explorer デモ (MC, CC, Heroku, Core)Iot explorer デモ (MC, CC, Heroku, Core)
Iot explorer デモ (MC, CC, Heroku, Core)
Akihiro Iwaya
 
Df salesforce dx説明資料
Df salesforce dx説明資料Df salesforce dx説明資料
Df salesforce dx説明資料
Akihiro Iwaya
 
IoT explorer タクシー配車デモ
IoT explorer タクシー配車デモIoT explorer タクシー配車デモ
IoT explorer タクシー配車デモ
Akihiro Iwaya
 
Io t工場機器監視デモ
Io t工場機器監視デモIo t工場機器監視デモ
Io t工場機器監視デモ
Akihiro Iwaya
 
Salesforce X AWS Machine Learning
Salesforce X AWS Machine LearningSalesforce X AWS Machine Learning
Salesforce X AWS Machine Learning
Akihiro Iwaya
 
Visualforceとは
VisualforceとはVisualforceとは
Visualforceとは
Akihiro Iwaya
 
Soracom X AWS Iot X Salesforce
Soracom X AWS Iot X SalesforceSoracom X AWS Iot X Salesforce
Soracom X AWS Iot X Salesforce
Akihiro Iwaya
 
Force.comハンズオン
Force.comハンズオンForce.comハンズオン
Force.comハンズオン
Akihiro Iwaya
 
Lightingコンポーネントベーシック開発
Lightingコンポーネントベーシック開発Lightingコンポーネントベーシック開発
Lightingコンポーネントベーシック開発
Akihiro Iwaya
 
Lighting componentワークブック(s1コンタクトリストコンポーネント)
Lighting componentワークブック(s1コンタクトリストコンポーネント)Lighting componentワークブック(s1コンタクトリストコンポーネント)
Lighting componentワークブック(s1コンタクトリストコンポーネント)
Akihiro Iwaya
 
Lighting componentワークブック(経費精算アプリ)
Lighting componentワークブック(経費精算アプリ)Lighting componentワークブック(経費精算アプリ)
Lighting componentワークブック(経費精算アプリ)
Akihiro Iwaya
 
Salesforce x pepper in English
Salesforce x pepper in EnglishSalesforce x pepper in English
Salesforce x pepper in English
Akihiro Iwaya
 
Salesforce x pepper
Salesforce x pepperSalesforce x pepper
Salesforce x pepper
Akihiro Iwaya
 
Iotデモehealthcare
IotデモehealthcareIotデモehealthcare
Iotデモehealthcare
Akihiro Iwaya
 
Iotデモweatherstation
IotデモweatherstationIotデモweatherstation
Iotデモweatherstation
Akihiro Iwaya
 
Iotデモgoogleglass
IotデモgoogleglassIotデモgoogleglass
Iotデモgoogleglass
Akihiro Iwaya
 
Iotデモ健康アプリ
Iotデモ健康アプリIotデモ健康アプリ
Iotデモ健康アプリ
Akihiro Iwaya
 
Iotデモrapiroロボット
IotデモrapiroロボットIotデモrapiroロボット
Iotデモrapiroロボット
Akihiro Iwaya
 
IoT Quick Demo for Heroku & Salesforce
IoT Quick Demo for Heroku & SalesforceIoT Quick Demo for Heroku & Salesforce
IoT Quick Demo for Heroku & Salesforce
Akihiro Iwaya
 

More from Akihiro Iwaya (20)

Iot explore demo for cross clouds
Iot explore demo for cross cloudsIot explore demo for cross clouds
Iot explore demo for cross clouds
 
Iot explorer デモ (MC, CC, Heroku, Core)
Iot explorer デモ (MC, CC, Heroku, Core)Iot explorer デモ (MC, CC, Heroku, Core)
Iot explorer デモ (MC, CC, Heroku, Core)
 
Df salesforce dx説明資料
Df salesforce dx説明資料Df salesforce dx説明資料
Df salesforce dx説明資料
 
IoT explorer タクシー配車デモ
IoT explorer タクシー配車デモIoT explorer タクシー配車デモ
IoT explorer タクシー配車デモ
 
Io t工場機器監視デモ
Io t工場機器監視デモIo t工場機器監視デモ
Io t工場機器監視デモ
 
Salesforce X AWS Machine Learning
Salesforce X AWS Machine LearningSalesforce X AWS Machine Learning
Salesforce X AWS Machine Learning
 
Visualforceとは
VisualforceとはVisualforceとは
Visualforceとは
 
Soracom X AWS Iot X Salesforce
Soracom X AWS Iot X SalesforceSoracom X AWS Iot X Salesforce
Soracom X AWS Iot X Salesforce
 
Force.comハンズオン
Force.comハンズオンForce.comハンズオン
Force.comハンズオン
 
Lightingコンポーネントベーシック開発
Lightingコンポーネントベーシック開発Lightingコンポーネントベーシック開発
Lightingコンポーネントベーシック開発
 
Lighting componentワークブック(s1コンタクトリストコンポーネント)
Lighting componentワークブック(s1コンタクトリストコンポーネント)Lighting componentワークブック(s1コンタクトリストコンポーネント)
Lighting componentワークブック(s1コンタクトリストコンポーネント)
 
Lighting componentワークブック(経費精算アプリ)
Lighting componentワークブック(経費精算アプリ)Lighting componentワークブック(経費精算アプリ)
Lighting componentワークブック(経費精算アプリ)
 
Salesforce x pepper in English
Salesforce x pepper in EnglishSalesforce x pepper in English
Salesforce x pepper in English
 
Salesforce x pepper
Salesforce x pepperSalesforce x pepper
Salesforce x pepper
 
Iotデモehealthcare
IotデモehealthcareIotデモehealthcare
Iotデモehealthcare
 
Iotデモweatherstation
IotデモweatherstationIotデモweatherstation
Iotデモweatherstation
 
Iotデモgoogleglass
IotデモgoogleglassIotデモgoogleglass
Iotデモgoogleglass
 
Iotデモ健康アプリ
Iotデモ健康アプリIotデモ健康アプリ
Iotデモ健康アプリ
 
Iotデモrapiroロボット
IotデモrapiroロボットIotデモrapiroロボット
Iotデモrapiroロボット
 
IoT Quick Demo for Heroku & Salesforce
IoT Quick Demo for Heroku & SalesforceIoT Quick Demo for Heroku & Salesforce
IoT Quick Demo for Heroku & Salesforce
 

Recently uploaded

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 

Recently uploaded (20)

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 

Wt4 building apis

  • 2. Agenda ● Use Anypoint Studio to build, run, and test Mule applications ●Use a connector to connect to database ●Use the graphical DataWeave editor to transform data ●Create RESTful interfaces for applications from RAML files ●Connect API interfaces to API implementations
  • 3. WT 4-1: Create a Mule application with Anypoint Studio 1 2 3 4 Drag & drop Listener (HTTP) connector Click the Listener
  • 4. WT 4-1: Create a Mule application with Anypoint Studio 1 2 3 Enter /flights Press OK button with default value
  • 5. WT 4-1: Create a Mule application with Anypoint Studio 1 2 3 4 Drag & drop Set Payload component Click fx button to change literal mode Run Mule Application 5
  • 6. WT 4-1: Create a Mule application with Anypoint Studio You can test after DEPLOYED is shown at console log The content is set at Set Payload component
  • 7. WT 4-2: Connect to data (MySQL database) 1 2 3 4 Drag & Drop Database 1.4.0 Drop & Drop Select component Set Payload component is replaced with Database Click Select component
  • 8. WT 4-2: Connect to data (MySQL database) 1 2 3 4 MUFundamentals4.1_snippets.tx t contains connection info. The database is hosted by MuleSoft Confirm connection is valid after step 4
  • 9. WT 4-2: Connect to data (MySQL database) 1 3 4 Response message will be transformed in next section 2
  • 10. WT 4-3: Transform data 1 2 3 4 Drag & Drop Transform Message Component to next Select component 5 変更 Saving files automatically trigger deploy app Click Transform Message component
  • 11. WT 4-3: Transform data 1 2 Response body contains rows in MySQL database We can see the difference between data format at API spec we created and one by the mule app. We will correct this at next section
  • 12. WT 4-3: Transform data Click 1 2 3 4 5 6
  • 13. WT 4-3: Transform data 1 2 3 4 american-flights- example.json looks like Click MUFundamentals4.1_stu dentFiles_22sept2018.zip contains the file
  • 14. WT 4-3: Transform data Mapping fields by drag & drop fields Output fields are shown based on american-flights-example.json
  • 15. WT 4-3: Transform data 1 after before 2
  • 16. WT 4-4: Create a RESTful interface for a Mule application Click Copy training4-American- wsFlow Click1 2 3 4 6 Click 5
  • 17. WT 4-4: Create a RESTful interface for a Mule application 1 2 3 Click Click
  • 18. WT 4-4: Create a RESTful interface for a Mule application 1 2 3 4 5 Click Response body contains data with ID = 1 After save the file, the app is automatically deployed
  • 19. WT 4-4: Create a RESTful interface for a Mule application 4 1 2 3 Double click 4 After save the file, the app is automatically deployed ID is dynamically set by uri parameter
  • 20. WT 4-4: Create a RESTful interface for a Mule application 1 2 3 6 5 Click Drag & drop Listener above traing4- American-wsFlow 4 Click
  • 21. WT 4-4: Create a RESTful interface for a Mule application 1 2 3 4 5 Drag & Drop Set Payload component Submit Request Click fx button to change literal mode
  • 22. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file 1 2 3 4
  • 23. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file 1 2 3 Download American Flights API by RAML at design center
  • 24. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file After donwload API spec, american-flights- api.xml is created
  • 25. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file Sample data defined by Design Center Object schema defined by Design Center Click
  • 26. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file Delete HTTP Listener at postFlight flow 1 2 3 4 Delete HTTP Listener at training4-American- wsFlow flow Delete HTTP Listener at getFlightsByID flow 5
  • 27. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file Stop app and deploy it again 1 2 4 4 Deployed Click Confirm the path 3
  • 28. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file Add api Since you call API spec, the response body contains static data defined by Design Center.
  • 29. WT 4-5: Use Anypoint Studio to create a RESTful API interface from a RAML file 1 2 3 4
  • 30. WT 4-6: Implement a RESTful web service 1 3 4 2Click Select get:flights:american-flights-api-config Drag & Drop Select training4– American-wsFlow at implementation.xml Delete Transform Message
  • 31. WT 4-6: Implement a RESTful web service Drag & Drop 1 2 3 Delete two Transform Message ComponentsSelect get:flights:american-flights-api-config Select getFlightsByID at implementation.xml
  • 32. WT 4-6: Implement a RESTful web service Show data from MySQL with given ID