SlideShare a Scribd company logo
API NOTEBOOK
By:- Rakesh Kumar Jha
MuleSoft Certified Architect, Designer and Developer
DZone MVB (Most Valuable Blogger)
Websites:-
https://dzone.com/users/2959749/rakeshjha.html
https://linkedin.com/in/rakesh-kumar-jha-660a57103
API Discovery and API Notebook
A well designed API has to be discoverable. MuleSoft anypoint platform API portal
provides a centralized place for discovering all the tools (API Documentation, Mock API
testing etc) that anybody can use to successfully discover an API.
MuleSoft anypoint platform API portal provides API Notebook, a web-based tool to
explore the API in JavaScript scripting workspace. API Notebook generates API client
from API RAML specification to understand API’s resources, methods, required
arguments etc and allow user to make live call to API for personalized testing.
Creating API Notebook
In the API Portal we can create API Notebook as shown below.
The very first section in API Notebook we just created is called “APIClient”. Here
Notebook automatically created the API client to understand API RAML specification
(defined in API Manager) as discussed in 2nd slide. Lets save the Notebook now.
Invoking API Flow From Notebook
Now let’s invoke an API flow for personalized testing. We first have to insert a code cell
to write flow specific logic to make an API call. We can create a code cell as below.
Invoking API Flow From Notebook
In the new code cell created, We can see all the API resource as an object of API client
named “client” which we just created.
API Resources:- APIClientName.ResourcesName
example:- client.customerDetails, client.customer.ID(‘1234’) etc
API Resource Methods:- APIClientName.ResourcesName.HTTPMethod
Example:- client.customerDetails.post, client.customer.ID(‘1234’).get
And then we can pass API resource body and required Query Parameters and Header
Parameters.
The complete code cell will look like below after setting API resource, method, query and
header parameters and body(if applicable like for POST method) looks like below.
Now since our code cell is ready, we can execute the code cell to make an API flow call
and see the result. Please follow the below screens.
Play Your API with MuleSoft API Notebook
Let’s Share our Knowledge to Expand our MuleSoft Community.
Thank You!!

More Related Content

PDF
RicoAjaxEngine
PPTX
WebLogic Developer Webcast 1: JPA 2.0
PDF
JSON Fuzzing: New approach to old problems
PPTX
Browser Hacking For Fun and Profit | Null Bangalore Meetup 2019 | Divyanshu S...
PPT
Pentest Application With GraphQL | Null Bangalore Meetup
PPT
ASP.NET 12 - State Management
PDF
What is REST API? REST API Concepts and Examples | Edureka
RicoAjaxEngine
WebLogic Developer Webcast 1: JPA 2.0
JSON Fuzzing: New approach to old problems
Browser Hacking For Fun and Profit | Null Bangalore Meetup 2019 | Divyanshu S...
Pentest Application With GraphQL | Null Bangalore Meetup
ASP.NET 12 - State Management
What is REST API? REST API Concepts and Examples | Edureka

What's hot (20)

ODP
RESTful Web Services with JAX-RS
PPTX
Евгений Капинос "Advanced JPA (Java Persistent API)"
KEY
Rest and the hypermedia constraint
PDF
Building Awesome APIs with Lumen
PPTX
Design Beautiful REST + JSON APIs
PPTX
Understanding REST APIs in 5 Simple Steps
PDF
Best Practices in Web Service Design
PPTX
An Introduction To REST API
PPTX
JSON SQL Injection and the Lessons Learned
PDF
Rest web services
PDF
Autodiscover flow in an exchange on premises environment non-active director...
PPTX
Rest & RESTful WebServices
PDF
2015-StarWest presentation on REST-assured
PDF
Pentesting GraphQL Applications
PPSX
Rest api standards and best practices
PDF
How to build a rest api.pptx
PPTX
Building Your First App with MongoDB
PPT
Basic Hibernate Final
PPTX
Restful webservices
PDF
Building Applications Using Ajax
RESTful Web Services with JAX-RS
Евгений Капинос "Advanced JPA (Java Persistent API)"
Rest and the hypermedia constraint
Building Awesome APIs with Lumen
Design Beautiful REST + JSON APIs
Understanding REST APIs in 5 Simple Steps
Best Practices in Web Service Design
An Introduction To REST API
JSON SQL Injection and the Lessons Learned
Rest web services
Autodiscover flow in an exchange on premises environment non-active director...
Rest & RESTful WebServices
2015-StarWest presentation on REST-assured
Pentesting GraphQL Applications
Rest api standards and best practices
How to build a rest api.pptx
Building Your First App with MongoDB
Basic Hibernate Final
Restful webservices
Building Applications Using Ajax
Ad

Similar to Play Your API with MuleSoft API Notebook (20)

PPTX
API Workshop: Deep dive into REST APIs
PDF
Schema-First API Design
PPTX
The anypoint platform for API's
PPTX
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
PDF
Mastering Cypress API Testing_ A Comprehensive Guide with Examples.pdf
PPTX
Integrate any Angular Project into WebSphere Portal
PDF
Apex Code Analysis Using the Tooling API and Canvas
PDF
SoftLayer API 12032015
PDF
アプリで簡単にスタンプを販売するためのAPI開発
PDF
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
PPT
Aws Lambda Cart Microservice Server Less
PDF
Practices and tools for building better APIs
PDF
Practices and tools for building better API (JFall 2013)
PPTX
An introduction to the API for OnTime for IBM
PPTX
2013 02-apache conna-api-manager-asanka
PDF
Design Web Api
PPTX
Creating a mule project with raml and api
PDF
Build REST API's using Swagger and IBM Integration Bus IIB v10
PPTX
Araport Workshop Tutorial 2: Authentication and the Agave Profiles Service
PDF
Hia 1691-using iib-to_support_api_economy
API Workshop: Deep dive into REST APIs
Schema-First API Design
The anypoint platform for API's
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
Mastering Cypress API Testing_ A Comprehensive Guide with Examples.pdf
Integrate any Angular Project into WebSphere Portal
Apex Code Analysis Using the Tooling API and Canvas
SoftLayer API 12032015
アプリで簡単にスタンプを販売するためのAPI開発
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
Aws Lambda Cart Microservice Server Less
Practices and tools for building better APIs
Practices and tools for building better API (JFall 2013)
An introduction to the API for OnTime for IBM
2013 02-apache conna-api-manager-asanka
Design Web Api
Creating a mule project with raml and api
Build REST API's using Swagger and IBM Integration Bus IIB v10
Araport Workshop Tutorial 2: Authentication and the Agave Profiles Service
Hia 1691-using iib-to_support_api_economy
Ad

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Monthly Chronicles - July 2025
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Understanding_Digital_Forensics_Presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
“AI and Expert System Decision Support & Business Intelligence Systems”

Play Your API with MuleSoft API Notebook

  • 1. API NOTEBOOK By:- Rakesh Kumar Jha MuleSoft Certified Architect, Designer and Developer DZone MVB (Most Valuable Blogger) Websites:- https://dzone.com/users/2959749/rakeshjha.html https://linkedin.com/in/rakesh-kumar-jha-660a57103
  • 2. API Discovery and API Notebook A well designed API has to be discoverable. MuleSoft anypoint platform API portal provides a centralized place for discovering all the tools (API Documentation, Mock API testing etc) that anybody can use to successfully discover an API. MuleSoft anypoint platform API portal provides API Notebook, a web-based tool to explore the API in JavaScript scripting workspace. API Notebook generates API client from API RAML specification to understand API’s resources, methods, required arguments etc and allow user to make live call to API for personalized testing.
  • 3. Creating API Notebook In the API Portal we can create API Notebook as shown below.
  • 4. The very first section in API Notebook we just created is called “APIClient”. Here Notebook automatically created the API client to understand API RAML specification (defined in API Manager) as discussed in 2nd slide. Lets save the Notebook now.
  • 5. Invoking API Flow From Notebook Now let’s invoke an API flow for personalized testing. We first have to insert a code cell to write flow specific logic to make an API call. We can create a code cell as below.
  • 6. Invoking API Flow From Notebook In the new code cell created, We can see all the API resource as an object of API client named “client” which we just created. API Resources:- APIClientName.ResourcesName example:- client.customerDetails, client.customer.ID(‘1234’) etc API Resource Methods:- APIClientName.ResourcesName.HTTPMethod Example:- client.customerDetails.post, client.customer.ID(‘1234’).get And then we can pass API resource body and required Query Parameters and Header Parameters.
  • 7. The complete code cell will look like below after setting API resource, method, query and header parameters and body(if applicable like for POST method) looks like below.
  • 8. Now since our code cell is ready, we can execute the code cell to make an API flow call and see the result. Please follow the below screens.
  • 10. Let’s Share our Knowledge to Expand our MuleSoft Community. Thank You!!