SlideShare a Scribd company logo
Hello
Everyone!
Ratnesh Kumar
Building mobile apps for Android & iOS devices.
(Mobikul Department)
Story of an
UNSUNG HERO
In this era of technology, we all are
connected around the world from
desktop to mobile devices to
laptops to browser.
But how does this happens?
How does data reach from one
device to another?
How do different devices interact
with each other ?
Behind all this, there is a hero that is
API.
Application
Programming
Interface
(API)
What is an API?
Api is simply exposing business
capabilities (web services) over
the internet.
OR
API consists of a set of rules
describing how one application
can interact with another, and the
mechanisms that allow such
interaction to happen.
XYZ Restaurant
**Logos and Trademarks are owned by
their respective owners
Ways to
Access Web
Services!
There are two ways to
access Web Services.
‱ Simple Object Access Protocol
(SOAP).
‱ Representational State Transfer
Protocol (REST).
SOAP
The Granddaddy of Web Services
Interfaces.
‱ XML based messaging protocol.
‱ Platform and Language
Independent.
‱ SOAP has built-in stateful
operations.
‱ SOAP is complex, yet well
formatted.
REST
The easy way to expose Web
Services. (REST + JSON)
‱ Uses HTTP to perform CRUD.
‱ Platform and Language
Independent.
‱ REST is naturally stateless.
‱ REST is easy to understand.
ABC Flight Website
**Logos and Trademarks are owned by
their respective owners
Flight Aggregator Application
**Logos and Trademarks are owned by
their respective owners
Benefits of
API
‱ Helps making money (ebay)
‱ Helps saving money (AWS)
‱ Helps building brand (Google
Map)
‱ Move to the CLOUD (shopify)
‱ Omni presence (Netflix)
Why we need
API?
We need to have a Web API if we
want to store and process our data
in server and let any other
application (web application, mobile
application, IoT devices etc.)
request and get data from that
server if needed.
Authenticati
on
‱ Basic access authentication.
‱ OAUTH authentication.
Basic access authentication
**Logos and Trademarks are owned by
their respective owners
OAUTH
**Logos and Trademarks are owned by
their respective owners
How to build
API in
Magento 1?
Magento supports both SOAP and
RESTful APIs’
Create SOAP
API in
Magento 1?
Required files to create SOAP apis’
‱ api.xml
(app/code/code_pool/namespace/module
_name/etc/api.xml)
‱ wsdl.xml
(app/code/code_pool/namespace/module
_name/etc/api.xml)
‱ Api functionality or business
logic
(app/code/code_pool/namespace/module
_name/Model/Api.php)
Create REST
API in
Magento 1?
Required files to create REST apis’
‱ api2.xml
(app/code/code_pool/namespace/module
_name/etc/api2.xml)
‱ Api functionality or business
logic
(app/code/code_pool/namespace/module
_name/Model/Api2/your_api_file.php)
Create API
in Magento2?
Required files to create apis’
‱ webapi.xml
(vendor/namespace/module_name/etc/w
ebapi.xml)
‱ Api functionality or business
logic
(vendor/namespace/module_name/Api/y
our_api_file.php)
webapi.xml
<route url="/V1/module_name" method="POST">
<service class="namespacemodule_nameApiyour_api_file_name" method="doSomething"/>
</route>
URL will be
your_domain/V1/module_name POST
Api functionality
public function doSomething () {
// your business logic
}
Thank You!
You may now ask questions

More Related Content

PPTX
Rest api
PDF
Architecting eCommerce APIs - Gluecon 13
PDF
MCSDataSheet
PDF
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
PPTX
Evolution of the PayPal API Platform: Enabling the future of Money at WooComm...
PPTX
SOA in the API World - Facades, Transactions, Stateless Services
PPTX
What is an Application programming interface(API)?
PPTX
Africa's Talking API Workshop
Rest api
Architecting eCommerce APIs - Gluecon 13
MCSDataSheet
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
Evolution of the PayPal API Platform: Enabling the future of Money at WooComm...
SOA in the API World - Facades, Transactions, Stateless Services
What is an Application programming interface(API)?
Africa's Talking API Workshop

What's hot (20)

PPT
What is an API?
PDF
Enterprise apps using ruby droid con berlin 2012
PPTX
CLIG - CellID Getter API
PPTX
Api application programming interface
PDF
The Architecture of an API Platform
PPT
Fluig - Identity
 
PDF
APIdays Paris 2018 - The Lord of API Design, Arnaud Lauret, API Handyman & AP...
PDF
APIdays Paris 2018 - Autonomous APIs, Zdenek Nemec, Founder, Good API
PDF
apidays LIVE Australia 2021 - Designing Embedded Platforms by Jeremy Glassenb...
PPTX
API Strategy & Practice Conference - API Consumption from the Hackathon Trenches
PDF
Why apis
PPTX
Applying Domain-Driven Design to APIs and Microservices - Austin API Meetup
PDF
apidays LIVE London 2021 - API Security challenges and solutions by Wadii Tah...
PDF
apidays LIVE Paris - How to build better and consistent APIs at scale by Sami...
PPTX
Simple introduction about cordova
PDF
Mobile and API identity – The New Challenges
PDF
apidays LIVE London 2021 - Moving from a Product as API to API as a Product b...
PDF
A shortcut to mobile app development: Enterprise Mobility 2014 Helsinki
PDF
Hockey Community Phonegap Presentation
PDF
Web, Native & Hybrid Apps Overview
What is an API?
Enterprise apps using ruby droid con berlin 2012
CLIG - CellID Getter API
Api application programming interface
The Architecture of an API Platform
Fluig - Identity
 
APIdays Paris 2018 - The Lord of API Design, Arnaud Lauret, API Handyman & AP...
APIdays Paris 2018 - Autonomous APIs, Zdenek Nemec, Founder, Good API
apidays LIVE Australia 2021 - Designing Embedded Platforms by Jeremy Glassenb...
API Strategy & Practice Conference - API Consumption from the Hackathon Trenches
Why apis
Applying Domain-Driven Design to APIs and Microservices - Austin API Meetup
apidays LIVE London 2021 - API Security challenges and solutions by Wadii Tah...
apidays LIVE Paris - How to build better and consistent APIs at scale by Sami...
Simple introduction about cordova
Mobile and API identity – The New Challenges
apidays LIVE London 2021 - Moving from a Product as API to API as a Product b...
A shortcut to mobile app development: Enterprise Mobility 2014 Helsinki
Hockey Community Phonegap Presentation
Web, Native & Hybrid Apps Overview
Ad

Viewers also liked (18)

PPTX
Magento Meetup New Delhi- Magento2 plugins
PPTX
Magento Meetup New Delhi- Magento2 Ui component
PDF
Magento Meetup New Delhi- Magento2 Speed Optimization
PPTX
Magento Meetup New Delhi- Magento2 code generation
PPTX
Knockout JS Development - a Quick Understanding
PDF
Getting your Hands Dirty Testing Magento 2 (at London Meetup)
PPTX
Knockout js
PPTX
Magento 101: A technical overview
PPTX
#2 Hanoi Magento Meetup - Part 2: Knockout JS
PDF
Introduction to Magento
PDF
Magento 2 Modules are Easy!
PPTX
Magento 2 overview. Alan Kent
PDF
Magento 2 Design Patterns
PPTX
Madison PHP - Getting Started with Magento 2
PDF
Magento 2 - An Intro to a Modern PHP-Based System - Northeast PHP 2015
PDF
How To Create Theme in Magento 2 - Part 1
PPTX
Magento2 what's new in theming
PPTX
E commerce trends
Magento Meetup New Delhi- Magento2 plugins
Magento Meetup New Delhi- Magento2 Ui component
Magento Meetup New Delhi- Magento2 Speed Optimization
Magento Meetup New Delhi- Magento2 code generation
Knockout JS Development - a Quick Understanding
Getting your Hands Dirty Testing Magento 2 (at London Meetup)
Knockout js
Magento 101: A technical overview
#2 Hanoi Magento Meetup - Part 2: Knockout JS
Introduction to Magento
Magento 2 Modules are Easy!
Magento 2 overview. Alan Kent
Magento 2 Design Patterns
Madison PHP - Getting Started with Magento 2
Magento 2 - An Intro to a Modern PHP-Based System - Northeast PHP 2015
How To Create Theme in Magento 2 - Part 1
Magento2 what's new in theming
E commerce trends
Ad

Similar to Magento Meetup New Delhi- API (20)

PDF
What are ap is, how do they work, and why are they beneficial to developers a...
PDF
Your API is your Product - Arun Ravindran, Unisys
PPTX
Web Application Programming Interface (Web)
PDF
A_Complete_Guide_to_API_Development.pdf
PDF
What is the difference between an api and web services
PDF
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
PDF
Protecting Your APIs Against Attack & Hijack
PPTX
Distributed systems air traffic controller
PDF
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
PDF
Octo API-days 2015
PDF
Top 7 wrong common beliefs about Enterprise API implementation
PDF
Cross platform development - Rhomobile
PDF
API, Integration, and SOA Convergence
PDF
Design - Start Your API Journey Today
PPTX
API Product Opportunity Responsibility Nicolas Sierro 2015.pptx
PPTX
API-led Architecture
PDF
WSO2Con Asia 2014 - Building the API-Centric Enterprise
 
KEY
SumitK's mobile app dev using drupal as base ststem
PPTX
Mobile Architecture at Scale
PDF
Is There An API In That (IoT)?
What are ap is, how do they work, and why are they beneficial to developers a...
Your API is your Product - Arun Ravindran, Unisys
Web Application Programming Interface (Web)
A_Complete_Guide_to_API_Development.pdf
What is the difference between an api and web services
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
Protecting Your APIs Against Attack & Hijack
Distributed systems air traffic controller
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Octo API-days 2015
Top 7 wrong common beliefs about Enterprise API implementation
Cross platform development - Rhomobile
API, Integration, and SOA Convergence
Design - Start Your API Journey Today
API Product Opportunity Responsibility Nicolas Sierro 2015.pptx
API-led Architecture
WSO2Con Asia 2014 - Building the API-Centric Enterprise
 
SumitK's mobile app dev using drupal as base ststem
Mobile Architecture at Scale
Is There An API In That (IoT)?

More from Webkul Software Pvt. Ltd. (20)

PPTX
Quick Product Edit for Magento 2
PPTX
Language translator for magento 2
PDF
Magento 2 marketplace flutterwave payment
PPTX
OpenCart Ebay Connector Plugin
PPTX
Magento 2 Geo-Location Currency Converter
PPTX
Etsy Connector for Magento 2
PPTX
Opencart Slack Commerce Plugin
PPTX
Magento 2 Food Delivery Multi-Vendor Marketplace Plugin
PPTX
Magento2 image gallery
PPTX
Importance of Fashion Marketplace
PPTX
Wallet System for Magento 2
PPTX
Magento 2 Marketplace Delivery Time Slot
PPTX
Custom Registration Fields for Magento 2
PPTX
Magento 2 Order Comment
PPTX
Opencart canada post shipping webkul
PPTX
Show Price After Login for Magento 2
PPTX
Shopify Connector for WooCommerce
PPTX
OpenCart Booking & Reservation Via QR Code Pugin
PPTX
Age Verification for Magento 2
PPTX
VirtueMart Akeneo Connector
Quick Product Edit for Magento 2
Language translator for magento 2
Magento 2 marketplace flutterwave payment
OpenCart Ebay Connector Plugin
Magento 2 Geo-Location Currency Converter
Etsy Connector for Magento 2
Opencart Slack Commerce Plugin
Magento 2 Food Delivery Multi-Vendor Marketplace Plugin
Magento2 image gallery
Importance of Fashion Marketplace
Wallet System for Magento 2
Magento 2 Marketplace Delivery Time Slot
Custom Registration Fields for Magento 2
Magento 2 Order Comment
Opencart canada post shipping webkul
Show Price After Login for Magento 2
Shopify Connector for WooCommerce
OpenCart Booking & Reservation Via QR Code Pugin
Age Verification for Magento 2
VirtueMart Akeneo Connector

Recently uploaded (20)

PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ai tools demonstartion for schools and inter college
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
L1 - Introduction to python Backend.pptx
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
System and Network Administration Chapter 2
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
 
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Introduction to Artificial Intelligence
PPTX
Transform Your Business with a Software ERP System
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Design an Analysis of Algorithms I-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ai tools demonstartion for schools and inter college
Reimagine Home Health with the Power of Agentic AI​
L1 - Introduction to python Backend.pptx
Upgrade and Innovation Strategies for SAP ERP Customers
How Creative Agencies Leverage Project Management Software.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
System and Network Administration Chapter 2
Navsoft: AI-Powered Business Solutions & Custom Software Development
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
 
Odoo POS Development Services by CandidRoot Solutions
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Introduction to Artificial Intelligence
Transform Your Business with a Software ERP System
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PTS Company Brochure 2025 (1).pdf.......
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

Magento Meetup New Delhi- API

  • 2. Ratnesh Kumar Building mobile apps for Android & iOS devices. (Mobikul Department)
  • 3. Story of an UNSUNG HERO In this era of technology, we all are connected around the world from desktop to mobile devices to laptops to browser. But how does this happens? How does data reach from one device to another? How do different devices interact with each other ? Behind all this, there is a hero that is API.
  • 4. Application Programming Interface (API) What is an API? Api is simply exposing business capabilities (web services) over the internet. OR API consists of a set of rules describing how one application can interact with another, and the mechanisms that allow such interaction to happen.
  • 5. XYZ Restaurant **Logos and Trademarks are owned by their respective owners
  • 6. Ways to Access Web Services! There are two ways to access Web Services. ‱ Simple Object Access Protocol (SOAP). ‱ Representational State Transfer Protocol (REST).
  • 7. SOAP The Granddaddy of Web Services Interfaces. ‱ XML based messaging protocol. ‱ Platform and Language Independent. ‱ SOAP has built-in stateful operations. ‱ SOAP is complex, yet well formatted.
  • 8. REST The easy way to expose Web Services. (REST + JSON) ‱ Uses HTTP to perform CRUD. ‱ Platform and Language Independent. ‱ REST is naturally stateless. ‱ REST is easy to understand.
  • 9. ABC Flight Website **Logos and Trademarks are owned by their respective owners
  • 10. Flight Aggregator Application **Logos and Trademarks are owned by their respective owners
  • 11. Benefits of API ‱ Helps making money (ebay) ‱ Helps saving money (AWS) ‱ Helps building brand (Google Map) ‱ Move to the CLOUD (shopify) ‱ Omni presence (Netflix)
  • 12. Why we need API? We need to have a Web API if we want to store and process our data in server and let any other application (web application, mobile application, IoT devices etc.) request and get data from that server if needed.
  • 13. Authenticati on ‱ Basic access authentication. ‱ OAUTH authentication.
  • 14. Basic access authentication **Logos and Trademarks are owned by their respective owners
  • 15. OAUTH **Logos and Trademarks are owned by their respective owners
  • 16. How to build API in Magento 1? Magento supports both SOAP and RESTful APIs’
  • 17. Create SOAP API in Magento 1? Required files to create SOAP apis’ ‱ api.xml (app/code/code_pool/namespace/module _name/etc/api.xml) ‱ wsdl.xml (app/code/code_pool/namespace/module _name/etc/api.xml) ‱ Api functionality or business logic (app/code/code_pool/namespace/module _name/Model/Api.php)
  • 18. Create REST API in Magento 1? Required files to create REST apis’ ‱ api2.xml (app/code/code_pool/namespace/module _name/etc/api2.xml) ‱ Api functionality or business logic (app/code/code_pool/namespace/module _name/Model/Api2/your_api_file.php)
  • 19. Create API in Magento2? Required files to create apis’ ‱ webapi.xml (vendor/namespace/module_name/etc/w ebapi.xml) ‱ Api functionality or business logic (vendor/namespace/module_name/Api/y our_api_file.php)
  • 20. webapi.xml <route url="/V1/module_name" method="POST"> <service class="namespacemodule_nameApiyour_api_file_name" method="doSomething"/> </route> URL will be your_domain/V1/module_name POST Api functionality public function doSomething () { // your business logic }
  • 22. You may now ask questions