尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Design an API Specification
With MuleSoft’s no-code API Designer
MuleSoft Developer Advocate
@ Salesforce
alexandra.martinez@salesforce.com
alexmartinez.ca
Alex Martinez
You need to create a To-Do app to manage tasks.
The first step is to design the API Specification. An API specification is usually
created using either RAML or OAS. However, because you are on a time crunch
and are not very familiar with these languages, you decide to use MuleSoft for
this.
MuleSoft provides a graphical user interface (GUI) in Anypoint Platform to
complete this specification using clicks, not code.
The use case
A single To-Do must have the
following details:
● ID
○ Ex: 1
● Title
○ Ex: Give a workshop
● Checked
○ Ex: false
● Due Date
○ Ex: 2024-06-21
This API Specification will describe the ability to:
● Read existing To-Dos
○ Including functionality to filter the full list
● Create a new To-Do
● Read the details of a specific To-Do
● Update the details of a specific To-Do
● Delete a specific To-Do
The requirements
A single To-Do must have the
following details:
● ID
○ Ex: 1
○ Required / Numeric
● Title
○ Ex: Give a workshop
○ Required / String
● Checked
○ Ex: false
○ Required / Boolean
● Due Date
○ Ex: 2024-06-21
○ Not Required / Date-Only
This API Specification will describe the ability to:
● Read existing To-Dos
○ Including functionality to filter the full list-Query Params
○ Read = GET
○ Array of To-Dos
● Create a new To-Do
○ Create = POST
○ Single To-Do / No existing ID at this point
● Read the details of a specific To-Do
○ Read = GET
○ Single To-Do / Existing ID
● Update the details of a specific To-Do
○ Update = PUT
○ Single To-Do / Existing ID
● Delete a specific To-Do
○ Delete = DELETE
○ Single To-Do / Existing ID
The requirements
A single To-Do must have the
following details:
● ID
○ Ex: 1
○ Required / Numeric
● Title
○ Ex: Give a workshop
○ Required / String
● Checked
○ Ex: false
○ Required / Boolean
● Due Date
○ Ex: 2024-06-21
○ Not Required / Date-Only
This API Specification will describe the ability to:
● Read existing To-Dos
○ Including functionality to filter the full list-Query Params
○ Read = GET
○ Array of To-Dos
● Create a new To-Do
○ Create = POST
○ Single To-Do / No existing ID at this point
● Read the details of a specific To-Do
○ Read = GET
○ Single To-Do / Existing ID
● Update the details of a specific To-Do
○ Update = PUT
○ Single To-Do / Existing ID
● Delete a specific To-Do
○ Delete = DELETE
○ Single To-Do / Existing ID
The requirements
/todos
/todos/{id}
1. Head to anypoint.mulesoft.com
and sign in to your existing
account or click on Sign up to
create a new account.
(You don’t need to confirm your
email address for this case)
1. Head to Design Center using
the hamburger menu on the top
left.
Step 1: Create a new API Specification in Design Center
3. Click the Create button and
select New API Specification.
3. Name your project and select
the Guide me through it option
to make sure we use the UI.
3. Click on Create API
Step 1: Create a new API Specification in Design Center
6. Once you open the
specification, add the following
values:
Step 1: Create a new API Specification in Design Center
1. Click on the + button next to the
DATA TYPES tab on the left of
the screen.
2. Change the name to To-Do and
the type to Object.
3. Click on Add Property and add
the following properties →
(Note: Click on the Details v
button to see the additional
configurations for each
property.)
Step 2: Create a data type
1. Click on the + button next to the
RESOURCES tab on the left of
the screen.
2. Change the resource path to
/todos
Step 3: Create a /todos resource
1. Under GET > Responses click
Add New Response and leave
the 200 - OK option selected.
2. Click on Add Body and change
the type to Array.
3. Open the details of the array
and select the items type as To-
Do.
Step 3.1: Read all To-Dos
1. Under GET > Query
Parameters click Add Query
Parameter.
2. Add the following optional
parameters →
Step 3.2: Add Query Parameters
1. Under POST > Responses
click Add New Response and
select the 201 - Created option.
2. Click on Add Body and change
the type to To-Do.
Step 3.3: Create a new To-Do
3. Under POST > Body click Add
Body and change the type to
To-Do.
Step 3.3: Create a new To-Do
1. Click on the + button next to the
RESOURCES tab on the left of
the screen.
2. Change the resource path to
/todos/{id}
Step 4: Create a /todos/{id} resource
1. Click on the URI Parameters
button next to the resource
path.
2. Click Add URI Parameter.
3. Add the following values →
Step 4.1: Add a URI Parameter
1. Under GET > Responses click
Add New Response and leave
the 200 - OK option selected.
2. Click on Add Body and change
the type to To-Do.
Step 4.2: Read a To-Do
1. Under PUT > Responses click
Add New Response and leave
the 200 - OK option selected.
2. Click on Add Body and change
the type to To-Do.
Step 4.3: Update a To-Do
3. Under PUT > Body click Add
Body and change the type to
To-Do.
Step 4.3: Update a To-Do
1. Under DELETE > Responses
click Add New Response and
select the 204 - No content
option.
Step 4.4: Delete a To-Do
1. Click the Publish button on the
top right side of the screen.
2. Leave the selected options and
click Publish to Exchange.
3. Once finished, click on the
Exchange link before closing
the pop-up window.
Step 5: Publish to Exchange
Step 6: Verify
(optional) Step 7: Download RAML/OAS code
1. If you only need the generated
RAML/OAS code, go back to
Design Center and click on the
Download button for the
specific language.
You did it!
Congratulations! You were able to create the needed RAML/OAS specification on
time and you didn’t have to code at all!
More resources
● github.com/alexandramartinez/to-do-api-spec
Questions?
Thank you!

More Related Content

Similar to Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's no-code API Designer

[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
Ming-Hung Hseih
 
Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016
Rajeev Sharma
 
TERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site Manager
TERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site ManagerTERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site Manager
TERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site Manager
Terminalfour
 
4-Step SEO Waltz: Tackle SEO Challenges Head-On
4-Step SEO Waltz: Tackle SEO Challenges Head-On4-Step SEO Waltz: Tackle SEO Challenges Head-On
4-Step SEO Waltz: Tackle SEO Challenges Head-On
Search Engine Journal
 
What's new in ASP.NET 4
What's new in ASP.NET 4What's new in ASP.NET 4
What's new in ASP.NET 4
Robert MacLean
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8
ManjuKumara GH
 
Advanced SEO for Developers (Mix08)
Advanced SEO for Developers (Mix08)Advanced SEO for Developers (Mix08)
Advanced SEO for Developers (Mix08)
Nathan Buggia
 
Process builder vs Triggers
Process builder vs TriggersProcess builder vs Triggers
Process builder vs Triggers
ProQuest
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
Amit Sharma
 
Azure slots for app deployment the continuous delivery way
Azure slots for app deployment the continuous delivery wayAzure slots for app deployment the continuous delivery way
Azure slots for app deployment the continuous delivery way
wale ayandiran
 
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
Configero
 
Top Five Cool Features in Oracle SQL Developer Data Modeler
Top Five Cool Features in Oracle SQL Developer Data ModelerTop Five Cool Features in Oracle SQL Developer Data Modeler
Top Five Cool Features in Oracle SQL Developer Data Modeler
Kent Graziano
 
Teams Automation with Graph API
Teams Automation with Graph APITeams Automation with Graph API
Teams Automation with Graph API
Christopher R. Barber
 
Oracle Business Intelligence Applications Migration With Oracle Data Integrat...
Oracle Business Intelligence Applications Migration With Oracle Data Integrat...Oracle Business Intelligence Applications Migration With Oracle Data Integrat...
Oracle Business Intelligence Applications Migration With Oracle Data Integrat...
Siva Velappan
 
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box TechnologyBringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
joelsef
 
Atlanta user group presentation configero 8 nov11
Atlanta user group presentation configero 8 nov11Atlanta user group presentation configero 8 nov11
Atlanta user group presentation configero 8 nov11
vraopolisetti
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
Sunil Pandey
 
Introduction Dojo Toolkit & IBM Lotus Domino
Introduction Dojo Toolkit & IBM Lotus DominoIntroduction Dojo Toolkit & IBM Lotus Domino
Introduction Dojo Toolkit & IBM Lotus Domino
Rolf Kremer
 
4 jobs and_position_(sit_s___eit_s)_part_4
4 jobs and_position_(sit_s___eit_s)_part_44 jobs and_position_(sit_s___eit_s)_part_4
4 jobs and_position_(sit_s___eit_s)_part_4
Oracle HRMS Functional Consultant
 
How to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey AppHow to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey App
post.chris
 

Similar to Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's no-code API Designer (20)

[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
 
Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016
 
TERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site Manager
TERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site ManagerTERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site Manager
TERMINALFOUR t44u 2008 - Raewyn McKenna - Hidden Goodies in Site Manager
 
4-Step SEO Waltz: Tackle SEO Challenges Head-On
4-Step SEO Waltz: Tackle SEO Challenges Head-On4-Step SEO Waltz: Tackle SEO Challenges Head-On
4-Step SEO Waltz: Tackle SEO Challenges Head-On
 
What's new in ASP.NET 4
What's new in ASP.NET 4What's new in ASP.NET 4
What's new in ASP.NET 4
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8
 
Advanced SEO for Developers (Mix08)
Advanced SEO for Developers (Mix08)Advanced SEO for Developers (Mix08)
Advanced SEO for Developers (Mix08)
 
Process builder vs Triggers
Process builder vs TriggersProcess builder vs Triggers
Process builder vs Triggers
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
 
Azure slots for app deployment the continuous delivery way
Azure slots for app deployment the continuous delivery wayAzure slots for app deployment the continuous delivery way
Azure slots for app deployment the continuous delivery way
 
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
 
Top Five Cool Features in Oracle SQL Developer Data Modeler
Top Five Cool Features in Oracle SQL Developer Data ModelerTop Five Cool Features in Oracle SQL Developer Data Modeler
Top Five Cool Features in Oracle SQL Developer Data Modeler
 
Teams Automation with Graph API
Teams Automation with Graph APITeams Automation with Graph API
Teams Automation with Graph API
 
Oracle Business Intelligence Applications Migration With Oracle Data Integrat...
Oracle Business Intelligence Applications Migration With Oracle Data Integrat...Oracle Business Intelligence Applications Migration With Oracle Data Integrat...
Oracle Business Intelligence Applications Migration With Oracle Data Integrat...
 
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box TechnologyBringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
 
Atlanta user group presentation configero 8 nov11
Atlanta user group presentation configero 8 nov11Atlanta user group presentation configero 8 nov11
Atlanta user group presentation configero 8 nov11
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
Introduction Dojo Toolkit & IBM Lotus Domino
Introduction Dojo Toolkit & IBM Lotus DominoIntroduction Dojo Toolkit & IBM Lotus Domino
Introduction Dojo Toolkit & IBM Lotus Domino
 
4 jobs and_position_(sit_s___eit_s)_part_4
4 jobs and_position_(sit_s___eit_s)_part_44 jobs and_position_(sit_s___eit_s)_part_4
4 jobs and_position_(sit_s___eit_s)_part_4
 
How to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey AppHow to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey App
 

More from Alexandra N. Martinez

Mejora tu productividad creando aplicaciones de Slack
Mejora tu productividad creando aplicaciones de SlackMejora tu productividad creando aplicaciones de Slack
Mejora tu productividad creando aplicaciones de Slack
Alexandra N. Martinez
 
Women Who Mule - Workshop series #2: Ghost
Women Who Mule - Workshop series #2: GhostWomen Who Mule - Workshop series #2: Ghost
Women Who Mule - Workshop series #2: Ghost
Alexandra N. Martinez
 
Women Who Mule - Workshop series: Create your own blog from scratch without a...
Women Who Mule - Workshop series: Create your own blog from scratch without a...Women Who Mule - Workshop series: Create your own blog from scratch without a...
Women Who Mule - Workshop series: Create your own blog from scratch without a...
Alexandra N. Martinez
 
Toronto Virtual Meetup #12 - Testing Strategies and MUnit Test Recorder
Toronto Virtual Meetup #12 - Testing Strategies and MUnit Test RecorderToronto Virtual Meetup #12 - Testing Strategies and MUnit Test Recorder
Toronto Virtual Meetup #12 - Testing Strategies and MUnit Test Recorder
Alexandra N. Martinez
 
Women Who Mule - June Meetup (EMEA)
Women Who Mule - June Meetup (EMEA)Women Who Mule - June Meetup (EMEA)
Women Who Mule - June Meetup (EMEA)
Alexandra N. Martinez
 
Toronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-case
Toronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-caseToronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-case
Toronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-case
Alexandra N. Martinez
 
Cómo generar e implementar monitoreo para aplicaciones de Mule
Cómo generar e implementar monitoreo para aplicaciones de MuleCómo generar e implementar monitoreo para aplicaciones de Mule
Cómo generar e implementar monitoreo para aplicaciones de Mule
Alexandra N. Martinez
 
reCONNECT 2021 May Meetup - Women Who Mule #4
reCONNECT 2021 May Meetup - Women Who Mule #4reCONNECT 2021 May Meetup - Women Who Mule #4
reCONNECT 2021 May Meetup - Women Who Mule #4
Alexandra N. Martinez
 
Women Who Mule - April Meetup (Diane Kesler's Journey)
Women Who Mule - April Meetup (Diane Kesler's Journey)Women Who Mule - April Meetup (Diane Kesler's Journey)
Women Who Mule - April Meetup (Diane Kesler's Journey)
Alexandra N. Martinez
 
Toronto Virtual Meetup #9 - KPIs and metrics accelerator
Toronto Virtual Meetup #9 - KPIs and metrics acceleratorToronto Virtual Meetup #9 - KPIs and metrics accelerator
Toronto Virtual Meetup #9 - KPIs and metrics accelerator
Alexandra N. Martinez
 
Reviewing a complex dataweave transformation use case v3
Reviewing a complex dataweave transformation use case v3Reviewing a complex dataweave transformation use case v3
Reviewing a complex dataweave transformation use case v3
Alexandra N. Martinez
 
Introduction to MuleSoft
Introduction to MuleSoftIntroduction to MuleSoft
Introduction to MuleSoft
Alexandra N. Martinez
 
What is munit and how to create your first unit test
What is munit and how to create your first unit testWhat is munit and how to create your first unit test
What is munit and how to create your first unit test
Alexandra N. Martinez
 
Truly Human part 1
Truly Human part 1Truly Human part 1
Truly Human part 1
Alexandra N. Martinez
 
Toronto Virtual Meetup #8 - Tips for Reusability
Toronto Virtual Meetup #8 - Tips for ReusabilityToronto Virtual Meetup #8 - Tips for Reusability
Toronto Virtual Meetup #8 - Tips for Reusability
Alexandra N. Martinez
 
Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)
Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)
Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)
Alexandra N. Martinez
 
Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...
Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...
Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...
Alexandra N. Martinez
 
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB ArchitectureToronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Alexandra N. Martinez
 
Reviewing a Complex DataWeave Transformation Use-case v2
Reviewing a Complex DataWeave Transformation Use-case v2Reviewing a Complex DataWeave Transformation Use-case v2
Reviewing a Complex DataWeave Transformation Use-case v2
Alexandra N. Martinez
 
How to use Salesforce composite request connector in Mule
How to use Salesforce composite request connector in MuleHow to use Salesforce composite request connector in Mule
How to use Salesforce composite request connector in Mule
Alexandra N. Martinez
 

More from Alexandra N. Martinez (20)

Mejora tu productividad creando aplicaciones de Slack
Mejora tu productividad creando aplicaciones de SlackMejora tu productividad creando aplicaciones de Slack
Mejora tu productividad creando aplicaciones de Slack
 
Women Who Mule - Workshop series #2: Ghost
Women Who Mule - Workshop series #2: GhostWomen Who Mule - Workshop series #2: Ghost
Women Who Mule - Workshop series #2: Ghost
 
Women Who Mule - Workshop series: Create your own blog from scratch without a...
Women Who Mule - Workshop series: Create your own blog from scratch without a...Women Who Mule - Workshop series: Create your own blog from scratch without a...
Women Who Mule - Workshop series: Create your own blog from scratch without a...
 
Toronto Virtual Meetup #12 - Testing Strategies and MUnit Test Recorder
Toronto Virtual Meetup #12 - Testing Strategies and MUnit Test RecorderToronto Virtual Meetup #12 - Testing Strategies and MUnit Test Recorder
Toronto Virtual Meetup #12 - Testing Strategies and MUnit Test Recorder
 
Women Who Mule - June Meetup (EMEA)
Women Who Mule - June Meetup (EMEA)Women Who Mule - June Meetup (EMEA)
Women Who Mule - June Meetup (EMEA)
 
Toronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-case
Toronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-caseToronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-case
Toronto Virtual Meetup #11 - Reviewing Complex DataWeave Transformation Use-case
 
Cómo generar e implementar monitoreo para aplicaciones de Mule
Cómo generar e implementar monitoreo para aplicaciones de MuleCómo generar e implementar monitoreo para aplicaciones de Mule
Cómo generar e implementar monitoreo para aplicaciones de Mule
 
reCONNECT 2021 May Meetup - Women Who Mule #4
reCONNECT 2021 May Meetup - Women Who Mule #4reCONNECT 2021 May Meetup - Women Who Mule #4
reCONNECT 2021 May Meetup - Women Who Mule #4
 
Women Who Mule - April Meetup (Diane Kesler's Journey)
Women Who Mule - April Meetup (Diane Kesler's Journey)Women Who Mule - April Meetup (Diane Kesler's Journey)
Women Who Mule - April Meetup (Diane Kesler's Journey)
 
Toronto Virtual Meetup #9 - KPIs and metrics accelerator
Toronto Virtual Meetup #9 - KPIs and metrics acceleratorToronto Virtual Meetup #9 - KPIs and metrics accelerator
Toronto Virtual Meetup #9 - KPIs and metrics accelerator
 
Reviewing a complex dataweave transformation use case v3
Reviewing a complex dataweave transformation use case v3Reviewing a complex dataweave transformation use case v3
Reviewing a complex dataweave transformation use case v3
 
Introduction to MuleSoft
Introduction to MuleSoftIntroduction to MuleSoft
Introduction to MuleSoft
 
What is munit and how to create your first unit test
What is munit and how to create your first unit testWhat is munit and how to create your first unit test
What is munit and how to create your first unit test
 
Truly Human part 1
Truly Human part 1Truly Human part 1
Truly Human part 1
 
Toronto Virtual Meetup #8 - Tips for Reusability
Toronto Virtual Meetup #8 - Tips for ReusabilityToronto Virtual Meetup #8 - Tips for Reusability
Toronto Virtual Meetup #8 - Tips for Reusability
 
Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)
Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)
Meetup en español #6 - MuleSoft para profesionales de Java (segunda edición)
 
Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...
Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...
Meetup en español #5 - Continuous Integration and Continuous Delivery (CI/CD)...
 
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB ArchitectureToronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
 
Reviewing a Complex DataWeave Transformation Use-case v2
Reviewing a Complex DataWeave Transformation Use-case v2Reviewing a Complex DataWeave Transformation Use-case v2
Reviewing a Complex DataWeave Transformation Use-case v2
 
How to use Salesforce composite request connector in Mule
How to use Salesforce composite request connector in MuleHow to use Salesforce composite request connector in Mule
How to use Salesforce composite request connector in Mule
 

Recently uploaded

Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
Celine George
 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
khabri85
 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
Friends of African Village Libraries
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
 
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
Kalna College
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
shabeluno
 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
Infosec
 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
BiplabHalder13
 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
MattVassar1
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
PriyaKumari928991
 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Catherine Dela Cruz
 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
Celine George
 
managing Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptxmanaging Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptx
nabaegha
 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
PJ Caposey
 

Recently uploaded (20)

Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
 
Diversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT KanpurDiversity Quiz Finals by Quiz Club, IIT Kanpur
Diversity Quiz Finals by Quiz Club, IIT Kanpur
 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
 
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
 
managing Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptxmanaging Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptx
 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
 

Dreamin in Color '24 - (Workshop) Design an API Specification with MuleSoft's no-code API Designer

  • 1. Design an API Specification With MuleSoft’s no-code API Designer
  • 2.
  • 3. MuleSoft Developer Advocate @ Salesforce alexandra.martinez@salesforce.com alexmartinez.ca Alex Martinez
  • 4. You need to create a To-Do app to manage tasks. The first step is to design the API Specification. An API specification is usually created using either RAML or OAS. However, because you are on a time crunch and are not very familiar with these languages, you decide to use MuleSoft for this. MuleSoft provides a graphical user interface (GUI) in Anypoint Platform to complete this specification using clicks, not code. The use case
  • 5. A single To-Do must have the following details: ● ID ○ Ex: 1 ● Title ○ Ex: Give a workshop ● Checked ○ Ex: false ● Due Date ○ Ex: 2024-06-21 This API Specification will describe the ability to: ● Read existing To-Dos ○ Including functionality to filter the full list ● Create a new To-Do ● Read the details of a specific To-Do ● Update the details of a specific To-Do ● Delete a specific To-Do The requirements
  • 6. A single To-Do must have the following details: ● ID ○ Ex: 1 ○ Required / Numeric ● Title ○ Ex: Give a workshop ○ Required / String ● Checked ○ Ex: false ○ Required / Boolean ● Due Date ○ Ex: 2024-06-21 ○ Not Required / Date-Only This API Specification will describe the ability to: ● Read existing To-Dos ○ Including functionality to filter the full list-Query Params ○ Read = GET ○ Array of To-Dos ● Create a new To-Do ○ Create = POST ○ Single To-Do / No existing ID at this point ● Read the details of a specific To-Do ○ Read = GET ○ Single To-Do / Existing ID ● Update the details of a specific To-Do ○ Update = PUT ○ Single To-Do / Existing ID ● Delete a specific To-Do ○ Delete = DELETE ○ Single To-Do / Existing ID The requirements
  • 7. A single To-Do must have the following details: ● ID ○ Ex: 1 ○ Required / Numeric ● Title ○ Ex: Give a workshop ○ Required / String ● Checked ○ Ex: false ○ Required / Boolean ● Due Date ○ Ex: 2024-06-21 ○ Not Required / Date-Only This API Specification will describe the ability to: ● Read existing To-Dos ○ Including functionality to filter the full list-Query Params ○ Read = GET ○ Array of To-Dos ● Create a new To-Do ○ Create = POST ○ Single To-Do / No existing ID at this point ● Read the details of a specific To-Do ○ Read = GET ○ Single To-Do / Existing ID ● Update the details of a specific To-Do ○ Update = PUT ○ Single To-Do / Existing ID ● Delete a specific To-Do ○ Delete = DELETE ○ Single To-Do / Existing ID The requirements /todos /todos/{id}
  • 8. 1. Head to anypoint.mulesoft.com and sign in to your existing account or click on Sign up to create a new account. (You don’t need to confirm your email address for this case) 1. Head to Design Center using the hamburger menu on the top left. Step 1: Create a new API Specification in Design Center
  • 9. 3. Click the Create button and select New API Specification. 3. Name your project and select the Guide me through it option to make sure we use the UI. 3. Click on Create API Step 1: Create a new API Specification in Design Center
  • 10. 6. Once you open the specification, add the following values: Step 1: Create a new API Specification in Design Center
  • 11. 1. Click on the + button next to the DATA TYPES tab on the left of the screen. 2. Change the name to To-Do and the type to Object. 3. Click on Add Property and add the following properties → (Note: Click on the Details v button to see the additional configurations for each property.) Step 2: Create a data type
  • 12. 1. Click on the + button next to the RESOURCES tab on the left of the screen. 2. Change the resource path to /todos Step 3: Create a /todos resource
  • 13. 1. Under GET > Responses click Add New Response and leave the 200 - OK option selected. 2. Click on Add Body and change the type to Array. 3. Open the details of the array and select the items type as To- Do. Step 3.1: Read all To-Dos
  • 14. 1. Under GET > Query Parameters click Add Query Parameter. 2. Add the following optional parameters → Step 3.2: Add Query Parameters
  • 15. 1. Under POST > Responses click Add New Response and select the 201 - Created option. 2. Click on Add Body and change the type to To-Do. Step 3.3: Create a new To-Do
  • 16. 3. Under POST > Body click Add Body and change the type to To-Do. Step 3.3: Create a new To-Do
  • 17. 1. Click on the + button next to the RESOURCES tab on the left of the screen. 2. Change the resource path to /todos/{id} Step 4: Create a /todos/{id} resource
  • 18. 1. Click on the URI Parameters button next to the resource path. 2. Click Add URI Parameter. 3. Add the following values → Step 4.1: Add a URI Parameter
  • 19. 1. Under GET > Responses click Add New Response and leave the 200 - OK option selected. 2. Click on Add Body and change the type to To-Do. Step 4.2: Read a To-Do
  • 20. 1. Under PUT > Responses click Add New Response and leave the 200 - OK option selected. 2. Click on Add Body and change the type to To-Do. Step 4.3: Update a To-Do
  • 21. 3. Under PUT > Body click Add Body and change the type to To-Do. Step 4.3: Update a To-Do
  • 22. 1. Under DELETE > Responses click Add New Response and select the 204 - No content option. Step 4.4: Delete a To-Do
  • 23. 1. Click the Publish button on the top right side of the screen. 2. Leave the selected options and click Publish to Exchange. 3. Once finished, click on the Exchange link before closing the pop-up window. Step 5: Publish to Exchange
  • 25. (optional) Step 7: Download RAML/OAS code 1. If you only need the generated RAML/OAS code, go back to Design Center and click on the Download button for the specific language.
  • 26. You did it! Congratulations! You were able to create the needed RAML/OAS specification on time and you didn’t have to code at all! More resources ● github.com/alexandramartinez/to-do-api-spec
  翻译: