What is HTTP request?
It's a logic that can be used in order to pull data using api's created by individuals both private and public. Some API's are build in house to use it for own use and some are public API's, there are series of methods that can used in order to fetch data using these public API's.
Let's see some of them:
1) GET: it is used to request some data from the frontend, usually the website URL, access token is required and in the URL itself the path is specified that someone is looking for.
Let's understand with an example:-
For a college website xyzuniversity.com, if I need to call the record for a student name "Alex" I will be writing the URL like
GET http://university.com/student-record/alex:?
And in the response I will be getting the associated record in JSON format.
Here we used the GET method to call this data, like this we got multiple methods like PUT, HEAD, DELETE, PATCH,OPTIONS etc that can be used based on the need.
Let's come back to the original concept where I need to pull data into the database by using API calls.
So now I will be using any tool like Python or ADF where my source and sink will be managed, in the source I will be using the web method or API method to call the data and in the destination I will be using the connection to my database, when I will run the pipeline using the parameters like methods, URL, API type then a request will be sending to the server and the data will be fetched which then will be loaded to the destination Databases.
Here we need to be sure that schema for the source and destination should match identically to avoid any errors and URL address alongwith the token or credentials should be already verified and tested.
In this way the HTTP request can be used to populate databases from frontend generated dataset.
Comments
Post a Comment