RESTful HTTP using requests
You've been asked by your manager to create a function in your program that will allow her to upload a CSV extract of the daily data to ABQ's corporate web services, which uses an authenticated REST API. REST stands for REpresentational State Transfer and refers to an approach to web services that is built around advanced HTTP semantics to provide a more code-friendly interface. Services designed around the REST concept are described as RESTful. Let's take a deeper look at how REST interactions work.
Understanding RESTful web services
A RESTful service is built around the idea of accessing resources. A resource is typically a data record or file, though it could also be something like a remote procedure or hardware interface. We access resources via endpoints, which are URLs that represent a particular resource.
We have seen that web servers typically allow you to fetch data using GET
and submit data using POST
. REST APIs, however...