Implementing HTTP calls in SNC
Most web applications use HTTP to retrieve the data from the web server, and that is what our application, SNC, will do. We will be fetching data from the newsapi web server, which provides feeds for more than 30 news outlets. Newsapi provides a convenient API interface that can be used to fetch the latest news stories.
In HTTP flow, the application (SNC in our case) issues a web request to the web server (newsapi). This web request can be a GET, POST, PUT, or DELETE depending on the type of operation to be performed. Then the web server retrieves the data type from a data store and sends the response back to the web application in an HTTP response. The web application then uses this data to display the required ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access