-
Book Overview & Buying
-
Table Of Contents
Python Automation Cookbook - Third Edition
By :
Web technologies are not only capable of creating interactive UIs for human consumption. Rich interfaces usable by programs also can be created, allowing powerful interactions through HTTP. The most common interface of this kind is through RESTful APIs using JSON. These text-based interfaces are easy to understand and to program, and use common technologies that are language-agnostic, meaning they can be accessed in any programming language that has an HTTP client module – including, of course, Python.
Formats other than JSON are also sometimes used, such as XML. But JSON is a very simple and readable format that translates very well into Python dictionaries (and other language equivalents). JSON is by far the most common format for RESTful APIs at the moment. Learn more about JSON here: https://www.json.org/.
The strict definition of RESTful would require mentioning a number of specific characteristics, but an informal definition of RESTful is a system that...