0% found this document useful (0 votes)
13 views

APIs in Python

Uploaded by

star light
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

APIs in Python

Uploaded by

star light
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

APIs in Python

P R E S E N T E D BY:
N O O R- U L-A I N S AQ I B ( FA 2 2 -B B D - 0 0 5 )
S Y E D S H A F S H A H ( FA 2 2 -B B D - 0 3 9 )
What is API?
Application Programming Interface
Set of communication rules and abilities
Enables interactions between software applications
Web APIs, clients and servers
Web APIs communicate over the internet using HTTP
Client sends a request message to a Server
Server returns a response message to Client
Request/Response Cycle
Types of Web APIs
 SOAP
o Focus on strict and formal API design
o Enterprise applications
 REST
o Focus on simplicity & scalability
o Most common API architecture
 GraphQL
o Focus on flexibility
o Optimized for performance
Working with APIs in Python
 requests
o Many powerful built-in features
o Easier to use
HTTP Verbs
Status Code categories
STATUS CODE CATEGORIES FREQUENTLY USED STATUS CODES

 1XX : Informational response  200 : OK


 2XX : Successful response  404 : Not Found
 3XX : Redirection messages  500 : Internal Server Issue
 4XX : Client error responses
 5XX : Server error responses

You might also like