December 2019
Intermediate to advanced
510 pages
11h 33m
English
Uniform interface refers to the separation between the client and the server. This is advantageous because it means that the two systems are independent. The first principle of a uniform interface is that it should be resource-based, which means that we should start to think in a resource-oriented way. Therefore, every object or entity inside our system is a resource and a URI uniquely identifies each of them. Furthermore, if we think about the HTTP protocol, each resource is presented to the client in the form of XML or JSON to decouple the client from the server.
Let's use The New York Times APIs to understand this topic. Consider the following URI:
http://api.nytimes.com/svc/archive/v1/2018/6.json?api-key={your_api_key} ...