APIs - Application Programming Interfaces
APIs - Application Programming Interfaces
[APIs]
🗒 Agenda
PAYTM
[A]pplication [P]rogramming [I]nterface
SpiceJet
Lufthansa Booking.com
Airlines…
Front-end API Back-end
API as a business
[A]pplication [P]rogramming [I]nterface
PROs CONs
EndPoint: server_location_url
Type: POST | GET | PUT | DELETE
Header: Authorization
Payload/Data: {}
API API
Consumer Provider
Response
It's a lightweight format for storing and transporting data and is often used when data
is sent from a server to a web page.
{
"employees":[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]
}
Terminology related to APIs
Request:
- Type:
- Headers:
- Payload:
- JSON, XML
Terminology related to APIs
Response
- Headers:
- Status:
- 2XX: Success
- Body:
- JSON or XML
Creating Linkedin API
Linkedin’s Internal APIs
1. Create user
2. Edit profile
3. Show all requests
4. Create post
5. Delete post
Create user
request response
Method: POST
Create user
Edit profile
Edit profile
request response
End point:
Body:
api.linkedin.com/edit_user
{name: “Ankit Kumar Shukla”}
Header:
Status:
Authentication_code:
{Status: 200}
Payload:
{
name: “Ankit Kumar Shukla”,
user_id: “”
}
Method: PUT
Show all connection requests
Show all connection requests
request response
Payload:
{ Status:
“Post_text”:
“user_id”:
}
Method: POST
Delete Post
Delete Post
request response
End point:
Body:
api.linkedin.com/delete_post
Authorization:
Payload:
{ Status:
Post_id: ‘’,
}
Method: DELETE
Responsibilities as an API product manager
1 Valuable
2 Usable
3 Feasible
4 Viable
Responsibilities as an API product manager
As a Indie developer
I want to use chatGPT API
So that I can create a chatbot business
Usable
Feasible