SlideShare a Scribd company logo
WT3 Designing APIS
Agenda
In this walkthrough, you create an API definition with RAML using API designer.
● Define resources and nested resources.
● Define get and post methods.
● Specify query parameters.
● Interact with an API using the API console.
WT 3-1: Use API designer to define an API with RAML
2
3
4
1
american-flights-api.raml
WT 3-2: Use the mocking service to test an API
1
2
Turn on mocking
service
Anypoint platform automatically
create a URL for client app to test
WT 3-2: Use the mocking service to test an API
1
2
3
4
Click GET method
for test
Response body contains
empty json because you do
not define the response
WT 3-3: Add request and response details
1
3
5
6
Add dependency
which is already in
Exchange
Mulesoft create the
data type for the
training
You have two
dependencies
Mulesoft create the
sample data for the
training
2
4
WT 3-3: Add request and response details
1
2
3
Imported data type
Define AmericanFlight type
AmericanFlightDataType.raml
american-flights-api.raml
WT 3-3: Add request and response details
1
2
3
Copy path to
AmericanFlightsExa
mple.raml
Paste the link to
AmericanFlightsExample.raml
Define response
body using imported
data type
american-flights-api.raml
american-flights-api.raml
WT 3-3: Add request and response details
1
2
Response body contains
AmericanFlightsExample.raml
WT 3-3: Add request and response details
1
2
4
Create
AmericamFlightExa
mple.raml with text
editor
american-flights-api.raml
3
WT 3-3: Add request and response details
1
2
3
You can see
response body as
same as the raml
file
Return response
body by mocking
service
american-flights-api.raml
WT 3-3: Add request and response details
1
2
3
4
5
Create example for
post method
Copy
AmericanFlightExam
ple.raml
Delete ID row
because of post
example
american-flights-api.raml
WT 3-3: Add request and response details
3
1
2
AmericanFLightNoID
Example.raml is
shown
Response body
WT 3-4: Add an API to Anypoint Exchange
Disable mocking
service
To share API spec
3
1
2
WT 3-4: Add an API to Anypoint Exchange
1
2
Version is
automatically added
Go to Exchange
american-flights-api.raml
4
3
API Spec published
by you
WT 3-4: Add an API to Anypoint Exchange
WT 3-4: Add an API to Anypoint Exchange
3
4
5
Add delete and put
methods
2
1
Version is 1.0.1
WT 3-4: Add an API to Anypoint Exchange
1 2
WT 3-5: Share an API

More Related Content

PPTX
Wt5 deploying and managing ap is
PPTX
Wt4 building apis
PPTX
Wt8 consuming web services
PDF
Courier Live May Product Release Notes
PPTX
Creating a custom connector in mule
PPTX
Introduce anypoint studio
PPTX
Wt12 triggering flows
PPTX
Wt13 processing records
Wt5 deploying and managing ap is
Wt4 building apis
Wt8 consuming web services
Courier Live May Product Release Notes
Creating a custom connector in mule
Introduce anypoint studio
Wt12 triggering flows
Wt13 processing records

What's hot (20)

PPTX
The anypoint platform for API's
PPTX
Github plugin setup in anypointstudio
PDF
Making design decisions in React-based ClojureScript web applications
PPT
Raml api designer
PPTX
Anypoint lessons
PPTX
How to submit sitemap by Ravi
PPTX
Mockoon - Create mock APIs in seconds
PPTX
Api Testing
PPTX
Konstantinos Sidiropoulos - Testing microservices a real example
PPT
Introduction to API Design: REST and Java
PPTX
Go ci implementation at caplin systems1
PDF
Real-time Automation Result in Slack Channel
PPTX
It meet up 1 0 лебедева, лоханов
PPTX
Dependency track v3.3 - What's New
PPTX
Sane Plugin Updates - WordCamp New York City, 2014
PPTX
Testing microservices
PPTX
Anypoint runtime manager v1
PPTX
Mule with facebook
PPTX
PPTX
Announcing asp.net core updates in .net 5 preview 8
The anypoint platform for API's
Github plugin setup in anypointstudio
Making design decisions in React-based ClojureScript web applications
Raml api designer
Anypoint lessons
How to submit sitemap by Ravi
Mockoon - Create mock APIs in seconds
Api Testing
Konstantinos Sidiropoulos - Testing microservices a real example
Introduction to API Design: REST and Java
Go ci implementation at caplin systems1
Real-time Automation Result in Slack Channel
It meet up 1 0 лебедева, лоханов
Dependency track v3.3 - What's New
Sane Plugin Updates - WordCamp New York City, 2014
Testing microservices
Anypoint runtime manager v1
Mule with facebook
Announcing asp.net core updates in .net 5 preview 8
Ad

Similar to Wt3 designing apis (20)

PPTX
mulesoft birmingham meetup_api_designing_with_raml
PPTX
West Yorkshire Mulesoft Meetup #5
PPTX
Manila MuleSoft Meetup #4 January 2019
PDF
RAML BASED REST API with Mulesoft anypoint
PDF
Mulesoft Online Training.pdf
PDF
Second meetup slidess
PDF
MuleSoft Manchester Meetup #3 slides 31st March 2020
PPTX
Mule soft RAML API Designing
PPTX
Creating a mule project with raml and api
PPTX
RAML - APIs By Design
PPTX
2.1.design center
PPTX
Manchester Meetup #3
PPTX
How to – rest api proxy to soap webservice
PPTX
MuleSoft Surat Virtual Meetup#9 - RAML Reusability and Simplified
PPTX
Rest With Raml
PPTX
Raml part 2
PPTX
MuleSoft Meetup Winnipeg: Maiden Edition
ODP
Mulesoft Raml APIs
PPTX
Mule soft meetup_-_finland_july_11th__2020
PPTX
MuleSoft Meetup Charlotte 2019 - Dec 10
mulesoft birmingham meetup_api_designing_with_raml
West Yorkshire Mulesoft Meetup #5
Manila MuleSoft Meetup #4 January 2019
RAML BASED REST API with Mulesoft anypoint
Mulesoft Online Training.pdf
Second meetup slidess
MuleSoft Manchester Meetup #3 slides 31st March 2020
Mule soft RAML API Designing
Creating a mule project with raml and api
RAML - APIs By Design
2.1.design center
Manchester Meetup #3
How to – rest api proxy to soap webservice
MuleSoft Surat Virtual Meetup#9 - RAML Reusability and Simplified
Rest With Raml
Raml part 2
MuleSoft Meetup Winnipeg: Maiden Edition
Mulesoft Raml APIs
Mule soft meetup_-_finland_july_11th__2020
MuleSoft Meetup Charlotte 2019 - Dec 10
Ad

More from Akihiro Iwaya (20)

PPTX
Wt11 writing dataweave transformations
PPTX
Wt9 multicast an event
PPTX
Wt7 structuring mule applications
PPTX
Wt6 accessing and modifying mule event
PPTX
Iot explore demo for cross clouds
PPTX
Iot explorer デモ (MC, CC, Heroku, Core)
PPTX
Df salesforce dx説明資料
PPTX
IoT explorer タクシー配車デモ
PPTX
Io t工場機器監視デモ
PPTX
Salesforce X AWS Machine Learning
DOCX
Visualforceとは
PPTX
Soracom X AWS Iot X Salesforce
PDF
Force.comハンズオン
PPTX
Lightingコンポーネントベーシック開発
PPTX
Lighting componentワークブック(s1コンタクトリストコンポーネント)
PPTX
Lighting componentワークブック(経費精算アプリ)
PDF
Salesforce x pepper in English
PPTX
Salesforce x pepper
PPTX
Iotデモehealthcare
PPTX
Iotデモweatherstation
Wt11 writing dataweave transformations
Wt9 multicast an event
Wt7 structuring mule applications
Wt6 accessing and modifying mule event
Iot explore demo for cross clouds
Iot explorer デモ (MC, CC, Heroku, Core)
Df salesforce dx説明資料
IoT explorer タクシー配車デモ
Io t工場機器監視デモ
Salesforce X AWS Machine Learning
Visualforceとは
Soracom X AWS Iot X Salesforce
Force.comハンズオン
Lightingコンポーネントベーシック開発
Lighting componentワークブック(s1コンタクトリストコンポーネント)
Lighting componentワークブック(経費精算アプリ)
Salesforce x pepper in English
Salesforce x pepper
Iotデモehealthcare
Iotデモweatherstation

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
cuic standard and advanced reporting.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
sap open course for s4hana steps from ECC to s4
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Building Integrated photovoltaic BIPV_UPV.pdf
MIND Revenue Release Quarter 2 2025 Press Release
cuic standard and advanced reporting.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectroscopy.pptx food analysis technology
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Wt3 designing apis

  • 2. Agenda In this walkthrough, you create an API definition with RAML using API designer. ● Define resources and nested resources. ● Define get and post methods. ● Specify query parameters. ● Interact with an API using the API console.
  • 3. WT 3-1: Use API designer to define an API with RAML 2 3 4 1 american-flights-api.raml
  • 4. WT 3-2: Use the mocking service to test an API 1 2 Turn on mocking service Anypoint platform automatically create a URL for client app to test
  • 5. WT 3-2: Use the mocking service to test an API 1 2 3 4 Click GET method for test Response body contains empty json because you do not define the response
  • 6. WT 3-3: Add request and response details 1 3 5 6 Add dependency which is already in Exchange Mulesoft create the data type for the training You have two dependencies Mulesoft create the sample data for the training 2 4
  • 7. WT 3-3: Add request and response details 1 2 3 Imported data type Define AmericanFlight type AmericanFlightDataType.raml american-flights-api.raml
  • 8. WT 3-3: Add request and response details 1 2 3 Copy path to AmericanFlightsExa mple.raml Paste the link to AmericanFlightsExample.raml Define response body using imported data type american-flights-api.raml american-flights-api.raml
  • 9. WT 3-3: Add request and response details 1 2 Response body contains AmericanFlightsExample.raml
  • 10. WT 3-3: Add request and response details 1 2 4 Create AmericamFlightExa mple.raml with text editor american-flights-api.raml 3
  • 11. WT 3-3: Add request and response details 1 2 3 You can see response body as same as the raml file Return response body by mocking service american-flights-api.raml
  • 12. WT 3-3: Add request and response details 1 2 3 4 5 Create example for post method Copy AmericanFlightExam ple.raml Delete ID row because of post example american-flights-api.raml
  • 13. WT 3-3: Add request and response details 3 1 2 AmericanFLightNoID Example.raml is shown Response body
  • 14. WT 3-4: Add an API to Anypoint Exchange Disable mocking service To share API spec 3 1 2
  • 15. WT 3-4: Add an API to Anypoint Exchange 1 2 Version is automatically added Go to Exchange american-flights-api.raml 4 3 API Spec published by you
  • 16. WT 3-4: Add an API to Anypoint Exchange
  • 17. WT 3-4: Add an API to Anypoint Exchange 3 4 5 Add delete and put methods 2 1 Version is 1.0.1
  • 18. WT 3-4: Add an API to Anypoint Exchange 1 2
  • 19. WT 3-5: Share an API