API- Application programming Interface.
why API is required.
Applications are build with different tech/different option. the best way to communicate with two different application is API. different OS also its should support.
HTTP protocol is shared by IETF community and this protocol is widely used for communication between applicatons.
We can use the CRUD operations in the data to perform CRUD operations.
CRUD - Create, Delete, Update, Read - hope now you can get it what is all about CRUD.
To perform the CRUD operation there is a defined methods to be followed.
GET -> It gets details
POST -> To insert the details
PUT -> to update the details (Full update.)
DELETE -> to delete the details (entire resource will get deleted.)
PATCH -> Partial update. mostly this is not used in realtime. Still I need to explore more.
In any request we will have URL params, Headers, Body/Payload section.
google.com -> IP address -> Server (its a another computer.)
IP address is an address to locate the computer.
256(0-255):256(0-255):256(0-255):256(0-255) -> we can have 256 values for any ip address.
Subnet will be created in Homes so the above IP address will be shared and provided separately.
ping 192.168.2.2 -> using this command you can check whether connection is present or not.
We are having PRIVATE IP (172, 192 series) and PUBLIC IP (10,72 etc..,)
All domain names will be hosted in HTTP protocol.
for SSL verification : Deffie hellman key exchange will be used.
If you want to learn more about API so basic understanding of the above IP will also be helpful.
Frontend (application built in HTML/CSS/JS it calls the API services of backed)-> Backend (API services will be built so it will communicate with serve DB etc..,)
so far we have see the how the API works then next post we will learn about the FAST API in python
Comments
Post a Comment