SlideShare a Scribd company logo
PANORAMIC VIEW OF WEB API - Karen Immanuel
WHAT IS AN API?
Application Programming Interface
It provides the conventions to interact with applications without knowing the internal
logic of the code
Examples:
BUILD AN API FOR YOUR CODE
Source : Google images
REQUEST PARAMETERS OF API
URL Request parameters
https://forkify-api.herokuapp.com/api/search?q=pizza
Authorization:
- No auth
- Password based
- API Key based
- Token based
Http verb:
- GET
- POST
- PUT
- DELETE
RESPONSE PARAMETERS OF API
Source : Google images
REST API
Create (SQL INSERT) : POST – Create a resource
Read (SQL SELECT) : GET - Retrieve a representation of a resource
Update (SQL UPDATE) : PUT - Update a resource using a full representation
Delete (SQL DELETE) : DELETE - Delete a resource.
C
R
U
D
• Based on seven principles
• Representation of Resources -> URL
Example:
http://example.com/api/books
• Basic operations on resources - CRUD
EXAMPLE
Sample Data source
❑JSON data
❑Can also be from DB
FLASK IMPLEMENTATION
API TO PERFORM BASIC CRUD OPERATIONS
API TO PERFORM BASIC CRUD OPERATIONS
API TO PERFORM BASIC CRUD OPERATIONS
API TO PERFORM BASIC CRUD OPERATIONS
FLASK-RESTFUL
TEMPLATE
LONG RUNNING TASKS
Example – Sending an email
It can block the API.
LONG RUNNING TASKS
– BACKGROUND TASKS
▪Need non-blocking
request/responses
▪Task Queue – Celery
Source : Google images
THREADING VS. TASK QUEUE
1. Task queues have distributed architecture
2. Scales application extremely well
3. Add more workers according to load
4. Does not block the API
STATUS OF
BACKGROUND TASK
Client will know that background
task started.
Update status in non blocking way
➢Polling
➢Web socket
➢Server sent events
Source : Google images
API DOCUMENTATION WITH SWAGGER TOOL
oGood documentation is essential for APIs
oTake care of versioning and backward compatibility
<code snippet of swagger plugin in flask>
Output of a well- organized API doc
Source : Google images
SERVERLESS DEPLOYMENT WITH ZAPPA
While developing, APIs run on local server
For your APIs to be accessed by clients/3rd party users, they must be in a server.
Instead of dedicated server, we can go serverless
For personal projects or quick testing we can go with the option of serverless
deployment.
Easy to setup
 Demo/screenshot of serverless deployment with Zappa

More Related Content

PPT
Testing Any Site With Cucumber and Selenium
PDF
BDD in Java using Cucumber
PDF
Selenium and Sauce Labs
PPT
Integration and Acceptance Testing
PPT
Teaching an Old Pony New Tricks: Maintaining and Updating and Aging Django Site
PPTX
Best Practices for creating WP REST API by Galkin Nikita
PPTX
Selenium – Web Browser Automation
PDF
Rails api + JS app
Testing Any Site With Cucumber and Selenium
BDD in Java using Cucumber
Selenium and Sauce Labs
Integration and Acceptance Testing
Teaching an Old Pony New Tricks: Maintaining and Updating and Aging Django Site
Best Practices for creating WP REST API by Galkin Nikita
Selenium – Web Browser Automation
Rails api + JS app

What's hot (20)

PDF
Serverless Architecture - A Gentle Overview
PDF
Building Composable Serverless Apps with IOpipe
PPTX
Top open source tools to consider for web service performance testing
PDF
Ryan Brown - Open Community
PDF
Spring insight what just happened
PPTX
Moving From a Selenium Grid to the Cloud - A Real Life Story
PPTX
Introducing Swagger
PDF
Five Ways to Scale your API Without Touching Your Code
PPTX
Spring boot - an introduction
PPT
Streamlined Geek Talk
PDF
Unleash the power of HTTP with ASP.NET Web API
PDF
Opencast Admin UI - Tools and development setup
ZIP
App engine beats pony.key
PDF
Chris Anderson and Yochay Kiriaty - Serverless Patterns with Azure Functions
PPTX
Firebase - A real-time server
PDF
"Design First" APIs with Swagger
PDF
Integration Testing on Steroids: Run Your Tests on the Real Things
PDF
Yohan_CV
PPTX
Azure functions
PPTX
Postman. From simple API test to end to end scenario
Serverless Architecture - A Gentle Overview
Building Composable Serverless Apps with IOpipe
Top open source tools to consider for web service performance testing
Ryan Brown - Open Community
Spring insight what just happened
Moving From a Selenium Grid to the Cloud - A Real Life Story
Introducing Swagger
Five Ways to Scale your API Without Touching Your Code
Spring boot - an introduction
Streamlined Geek Talk
Unleash the power of HTTP with ASP.NET Web API
Opencast Admin UI - Tools and development setup
App engine beats pony.key
Chris Anderson and Yochay Kiriaty - Serverless Patterns with Azure Functions
Firebase - A real-time server
"Design First" APIs with Swagger
Integration Testing on Steroids: Run Your Tests on the Real Things
Yohan_CV
Azure functions
Postman. From simple API test to end to end scenario
Ad

Similar to Panoramic view of web APIs (20)

PDF
Don't screw it up! How to build durable API
PPTX
RESTful web APIs (build, document, manage)
PDF
Chris Mathias Presents Advanced API Design Considerations at LA CTO Forum
PDF
Создание API, которое полюбят разработчики. Глубокое погружение
PDF
Building a Great Web API - Evan Cooke - QCON 2011
PDF
Why your APIs should fly first class
PDF
PDF
API Workshop Amsterdam presented by API Architect Ronnie Mitra
PDF
Building RESTful APIs
PDF
APIdays Paris 2019 Backend is the new frontend by Antoine Cheron
PDF
Consumer centric api design v0.4.0
PDF
Past, Present and Future of APIs of Mobile and Web Apps
PPTX
Best Practices for Architecting a Pragmatic Web API.
PDF
Facebook & Twitter API
PDF
Building sustainable RESTFul services
PPTX
Trends in Web APIs Layer 7 API Management Workshop London
PDF
Building the Eventbrite API Ecosystem
KEY
Social dev camp_2011
PDF
The ultimate api checklist by Blendr.io
PDF
Building an API with Django and Django REST Framework
Don't screw it up! How to build durable API
RESTful web APIs (build, document, manage)
Chris Mathias Presents Advanced API Design Considerations at LA CTO Forum
Создание API, которое полюбят разработчики. Глубокое погружение
Building a Great Web API - Evan Cooke - QCON 2011
Why your APIs should fly first class
API Workshop Amsterdam presented by API Architect Ronnie Mitra
Building RESTful APIs
APIdays Paris 2019 Backend is the new frontend by Antoine Cheron
Consumer centric api design v0.4.0
Past, Present and Future of APIs of Mobile and Web Apps
Best Practices for Architecting a Pragmatic Web API.
Facebook & Twitter API
Building sustainable RESTFul services
Trends in Web APIs Layer 7 API Management Workshop London
Building the Eventbrite API Ecosystem
Social dev camp_2011
The ultimate api checklist by Blendr.io
Building an API with Django and Django REST Framework
Ad

Recently uploaded (20)

PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
System and Network Administraation Chapter 3
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
AI in Product Development-omnex systems
PPTX
Essential Infomation Tech presentation.pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
System and Network Administration Chapter 2
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
VVF-Customer-Presentation2025-Ver1.9.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Navsoft: AI-Powered Business Solutions & Custom Software Development
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
System and Network Administraation Chapter 3
Reimagine Home Health with the Power of Agentic AI​
Design an Analysis of Algorithms II-SECS-1021-03
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How to Choose the Right IT Partner for Your Business in Malaysia
AI in Product Development-omnex systems
Essential Infomation Tech presentation.pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
System and Network Administration Chapter 2
Design an Analysis of Algorithms I-SECS-1021-03
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
top salesforce developer skills in 2025.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
L1 - Introduction to python Backend.pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises

Panoramic view of web APIs

  • 1. PANORAMIC VIEW OF WEB API - Karen Immanuel
  • 2. WHAT IS AN API? Application Programming Interface It provides the conventions to interact with applications without knowing the internal logic of the code Examples:
  • 3. BUILD AN API FOR YOUR CODE Source : Google images
  • 4. REQUEST PARAMETERS OF API URL Request parameters https://forkify-api.herokuapp.com/api/search?q=pizza Authorization: - No auth - Password based - API Key based - Token based Http verb: - GET - POST - PUT - DELETE
  • 5. RESPONSE PARAMETERS OF API Source : Google images
  • 6. REST API Create (SQL INSERT) : POST – Create a resource Read (SQL SELECT) : GET - Retrieve a representation of a resource Update (SQL UPDATE) : PUT - Update a resource using a full representation Delete (SQL DELETE) : DELETE - Delete a resource. C R U D • Based on seven principles • Representation of Resources -> URL Example: http://example.com/api/books • Basic operations on resources - CRUD
  • 7. EXAMPLE Sample Data source ❑JSON data ❑Can also be from DB FLASK IMPLEMENTATION
  • 8. API TO PERFORM BASIC CRUD OPERATIONS
  • 9. API TO PERFORM BASIC CRUD OPERATIONS
  • 10. API TO PERFORM BASIC CRUD OPERATIONS
  • 11. API TO PERFORM BASIC CRUD OPERATIONS
  • 13. LONG RUNNING TASKS Example – Sending an email It can block the API.
  • 14. LONG RUNNING TASKS – BACKGROUND TASKS ▪Need non-blocking request/responses ▪Task Queue – Celery Source : Google images
  • 15. THREADING VS. TASK QUEUE 1. Task queues have distributed architecture 2. Scales application extremely well 3. Add more workers according to load 4. Does not block the API
  • 16. STATUS OF BACKGROUND TASK Client will know that background task started. Update status in non blocking way ➢Polling ➢Web socket ➢Server sent events Source : Google images
  • 17. API DOCUMENTATION WITH SWAGGER TOOL oGood documentation is essential for APIs oTake care of versioning and backward compatibility <code snippet of swagger plugin in flask> Output of a well- organized API doc Source : Google images
  • 18. SERVERLESS DEPLOYMENT WITH ZAPPA While developing, APIs run on local server For your APIs to be accessed by clients/3rd party users, they must be in a server. Instead of dedicated server, we can go serverless For personal projects or quick testing we can go with the option of serverless deployment. Easy to setup  Demo/screenshot of serverless deployment with Zappa