SlideShare a Scribd company logo
1 of 27
22nd July 2023 11 AM TO 12PM IST
Bhopal MuleSoft Meetup
Group #4
Custom Connector using Rest SDK
2
● Please keep yourself muted unless you have any questions.
● We encourage you to keep your video on for interactive session.
● You can write down your question in the chat session.
● Once join please write down your name and email id in chat so that we can have attendance.
● Please provide your valuable feedback. Thanks.
Guidelines
3
● Networking and Knowledge Sharing
● Custom Connector using Rest SDK
● Q&A and then Quiz for all participants
● Discussion for next Meetup, Stay connected, and Happy Learning.
Agenda
4
●About the organizer:
Introductions
5
About the Speaker:
● Senior Software Engineer at Apisero
● Certified Developer.
● 2+ years of Experience in Integrations.
Introductions
Mohamed Fahad MM
Sr. Software Engineer
Apisero Inc
Mohamed Fahad MM
Custom Connector using Rest SDK
7
● Mule Connectors
● Custom Connector
● Rest SDK
● Connector-descriptor
● Test Connection
● Connector Java Project
Agenda
8
⮚Connector is a reusable component that interacts with Mule
runtime and Anypoint Studio.
⮚Its a software that connects a Mule flow to an external resource.
Any database, protocol, or API, can be used as a resource.
Mule Connectors
9
⮚Connector is a reusable component that interacts with Mule
runtime and Anypoint Studio.
⮚Its a software that connects a Mule flow to an external resource.
Any database, protocol, or API, can be used as a resource.
Mule Connectors
10
⮚ Multiple security schemes
⮚ Pagination
⮚ Different base Uris for APIs
⮚ Input/Output Metadata propagation for operations
⮚ Hiding complexity
⮚ Validating Connection at design time
Why Custom Connector
11
⮚ Mule SDK
⮚ XML SDK
⮚ REST SDK
Ways to create Custom Connector
12
Rest SDK Advantages
13
Rest SDK Advantages
Test Connection
14
Steps to create a custom connector
using Rest SDK
1.API Specification
(RAML or OAS)
2.Connector-Descriptor
(YAML)
Connector Project
(Maven Based)
Custom Connector
15
DEMO
Organization XYZ have an app - userAPP
➔ Base Uri - http://mock-user-app.us-e2.cloudhub.io
➔ Operations -
○ /getusers - Get all users
○ /getuserbyid - Get a particular User
○ /createuser - Create a user
○ /deleteuser - Delete a particular user
GET
GET
POST
DELETE
*All the endpoints secured by ‘x-api-key’ header
16
REQUIREMENT
★ userAPP to be wrapped as a custom
connector to use it on multiple applications.
/testconnection - Validate the connection
GET
* test connection endpoint is secured by ‘x-api-
key’ header
17
STEPS 1. API Specification
displayName
description
18
STEPS 1. API Specification
displayName
description
required
Why giving datatype is important
19
STEPS 1. API Specification
description
20
STEPS 2. Connector Descriptor
mvn com.mulesoft.connectivity:rest-sdk-
mojo:<PLUGIN_VERSION>:createDescriptor -DapiSpec=<PATH_TO_SPEC>/api.raml
Latest Plugin Version : 0.8.0-RC3
21
STEPS 2. Connector Descriptor
● Parameters that can be
passed along with create-
descriptor
command
22
STEPS 2. Connector Descriptor -
Properties
● ConnectorName
● baseJavaPackage: com.mulesoft.connectors
● extensionXml : shop
STEPS 2. Connector Descriptor -
Properties
● baseUri.type can be of 3 types
○ 1. Parameter - Can be changed
according to environment or other
requirements
○ 2. Fixed - Cannot be changed
○ 3. Multiple - when different
endpoints require different base uri
● ignore
24
STEPS 2. Connector Descriptor -
Properties
● testConnection:
25
STEPS 3. Connector Project
mvn com.mulesoft.connectivity:rest-sdk-
mojo:<PLUGIN_VERSION>:createConnector -DapiSpec=<PATH_TO_SPEC>/api.raml -
Ddescriptor=<PATH_TO_DESCRIPTOR>/descriptor.yaml
26
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/bhopal
● Feedback:
○ Fill out the survey feedback.
○ Contact your Organizer Preetam Deshmukh to suggest topics for upcoming events.
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
● Our Next Meetup
○ Date: TBD
○ Location: TBD
○ Topic: TBD
What’s next?
Thank you

More Related Content

Similar to Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx

Connectors for the New Enterprise with WSO2 ESB 4.8
Connectors for the New Enterprise with WSO2 ESB 4.8Connectors for the New Enterprise with WSO2 ESB 4.8
Connectors for the New Enterprise with WSO2 ESB 4.8
WSO2
 
Subhajit_Das_Resume_(M)2016
Subhajit_Das_Resume_(M)2016Subhajit_Das_Resume_(M)2016
Subhajit_Das_Resume_(M)2016
Subhajit Das
 

Similar to Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx (20)

Mobile SDK: Considerations & Best Practices
Mobile SDK: Considerations & Best Practices Mobile SDK: Considerations & Best Practices
Mobile SDK: Considerations & Best Practices
 
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopmentAhmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
Ahmadabad mule soft_meetup_20_february_2021_muleconnectordevelopment
 
Red Hat OpenShift App Dev meetup - Operator SDK
Red Hat OpenShift App Dev meetup - Operator SDK Red Hat OpenShift App Dev meetup - Operator SDK
Red Hat OpenShift App Dev meetup - Operator SDK
 
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
 
DCEU 18: App-in-a-Box with Docker Application Packages
DCEU 18: App-in-a-Box with Docker Application PackagesDCEU 18: App-in-a-Box with Docker Application Packages
DCEU 18: App-in-a-Box with Docker Application Packages
 
How to build custom connectors in MuleSOft
How to build custom connectors in MuleSOftHow to build custom connectors in MuleSOft
How to build custom connectors in MuleSOft
 
Show and Tell: Building Applications on Cisco Open SDN Controller
Show and Tell: Building Applications on Cisco Open SDN Controller Show and Tell: Building Applications on Cisco Open SDN Controller
Show and Tell: Building Applications on Cisco Open SDN Controller
 
Connectors for the New Enterprise with WSO2 ESB 4.8
Connectors for the New Enterprise with WSO2 ESB 4.8Connectors for the New Enterprise with WSO2 ESB 4.8
Connectors for the New Enterprise with WSO2 ESB 4.8
 
Philipe Riand - Building Social Applications using the Social Business Toolki...
Philipe Riand - Building Social Applications using the Social Business Toolki...Philipe Riand - Building Social Applications using the Social Business Toolki...
Philipe Riand - Building Social Applications using the Social Business Toolki...
 
Artifactory Essentials Workshop on August 27, 2020 by JFrog
Artifactory Essentials Workshop on August 27, 2020 by JFrogArtifactory Essentials Workshop on August 27, 2020 by JFrog
Artifactory Essentials Workshop on August 27, 2020 by JFrog
 
Custom connectorsinmule
Custom connectorsinmuleCustom connectorsinmule
Custom connectorsinmule
 
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoftBhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
 
Mulesoft KL Meetup 2
Mulesoft KL Meetup 2Mulesoft KL Meetup 2
Mulesoft KL Meetup 2
 
Creating MuleSoft API Template Project Using Maven Archetype
Creating MuleSoft API Template Project Using Maven ArchetypeCreating MuleSoft API Template Project Using Maven Archetype
Creating MuleSoft API Template Project Using Maven Archetype
 
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
 
Build and release iOS apps using Fastlane tools
Build and release iOS apps using Fastlane toolsBuild and release iOS apps using Fastlane tools
Build and release iOS apps using Fastlane tools
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
 
Building APIs with Mule and Spring Boot
Building APIs with Mule and Spring BootBuilding APIs with Mule and Spring Boot
Building APIs with Mule and Spring Boot
 
Subhajit_Das_Resume_(M)2016
Subhajit_Das_Resume_(M)2016Subhajit_Das_Resume_(M)2016
Subhajit_Das_Resume_(M)2016
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

Bhopal_MuleSoft_Meetup_22July2023_Custom Connector using Rest SDK_MuleSoft.pptx

  • 1. 22nd July 2023 11 AM TO 12PM IST Bhopal MuleSoft Meetup Group #4 Custom Connector using Rest SDK
  • 2. 2 ● Please keep yourself muted unless you have any questions. ● We encourage you to keep your video on for interactive session. ● You can write down your question in the chat session. ● Once join please write down your name and email id in chat so that we can have attendance. ● Please provide your valuable feedback. Thanks. Guidelines
  • 3. 3 ● Networking and Knowledge Sharing ● Custom Connector using Rest SDK ● Q&A and then Quiz for all participants ● Discussion for next Meetup, Stay connected, and Happy Learning. Agenda
  • 5. 5 About the Speaker: ● Senior Software Engineer at Apisero ● Certified Developer. ● 2+ years of Experience in Integrations. Introductions Mohamed Fahad MM Sr. Software Engineer Apisero Inc
  • 6. Mohamed Fahad MM Custom Connector using Rest SDK
  • 7. 7 ● Mule Connectors ● Custom Connector ● Rest SDK ● Connector-descriptor ● Test Connection ● Connector Java Project Agenda
  • 8. 8 ⮚Connector is a reusable component that interacts with Mule runtime and Anypoint Studio. ⮚Its a software that connects a Mule flow to an external resource. Any database, protocol, or API, can be used as a resource. Mule Connectors
  • 9. 9 ⮚Connector is a reusable component that interacts with Mule runtime and Anypoint Studio. ⮚Its a software that connects a Mule flow to an external resource. Any database, protocol, or API, can be used as a resource. Mule Connectors
  • 10. 10 ⮚ Multiple security schemes ⮚ Pagination ⮚ Different base Uris for APIs ⮚ Input/Output Metadata propagation for operations ⮚ Hiding complexity ⮚ Validating Connection at design time Why Custom Connector
  • 11. 11 ⮚ Mule SDK ⮚ XML SDK ⮚ REST SDK Ways to create Custom Connector
  • 14. 14 Steps to create a custom connector using Rest SDK 1.API Specification (RAML or OAS) 2.Connector-Descriptor (YAML) Connector Project (Maven Based) Custom Connector
  • 15. 15 DEMO Organization XYZ have an app - userAPP ➔ Base Uri - http://mock-user-app.us-e2.cloudhub.io ➔ Operations - ○ /getusers - Get all users ○ /getuserbyid - Get a particular User ○ /createuser - Create a user ○ /deleteuser - Delete a particular user GET GET POST DELETE *All the endpoints secured by ‘x-api-key’ header
  • 16. 16 REQUIREMENT ★ userAPP to be wrapped as a custom connector to use it on multiple applications. /testconnection - Validate the connection GET * test connection endpoint is secured by ‘x-api- key’ header
  • 17. 17 STEPS 1. API Specification displayName description
  • 18. 18 STEPS 1. API Specification displayName description required Why giving datatype is important
  • 19. 19 STEPS 1. API Specification description
  • 20. 20 STEPS 2. Connector Descriptor mvn com.mulesoft.connectivity:rest-sdk- mojo:<PLUGIN_VERSION>:createDescriptor -DapiSpec=<PATH_TO_SPEC>/api.raml Latest Plugin Version : 0.8.0-RC3
  • 21. 21 STEPS 2. Connector Descriptor ● Parameters that can be passed along with create- descriptor command
  • 22. 22 STEPS 2. Connector Descriptor - Properties ● ConnectorName ● baseJavaPackage: com.mulesoft.connectors ● extensionXml : shop
  • 23. STEPS 2. Connector Descriptor - Properties ● baseUri.type can be of 3 types ○ 1. Parameter - Can be changed according to environment or other requirements ○ 2. Fixed - Cannot be changed ○ 3. Multiple - when different endpoints require different base uri ● ignore
  • 24. 24 STEPS 2. Connector Descriptor - Properties ● testConnection:
  • 25. 25 STEPS 3. Connector Project mvn com.mulesoft.connectivity:rest-sdk- mojo:<PLUGIN_VERSION>:createConnector -DapiSpec=<PATH_TO_SPEC>/api.raml - Ddescriptor=<PATH_TO_DESCRIPTOR>/descriptor.yaml
  • 26. 26 ● Share: ○ Tweet using the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/bhopal ● Feedback: ○ Fill out the survey feedback. ○ Contact your Organizer Preetam Deshmukh to suggest topics for upcoming events. ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program ● Our Next Meetup ○ Date: TBD ○ Location: TBD ○ Topic: TBD What’s next?