Representational State Transfer Application Programming Interface

Now that you know what an API is, let's talk about a specific kind of API, the Representational State Transfer (RESTAPI. Many current web services use this architectural style for their APIs. While which underlying protocol needs to be used is not defined, in most cases, it will be HTTP—the same protocol you use when you surf the web with a web browser.

Using REST, resources on the web are modeled in an object-oriented way—each resource has a unique URL, which can be used together with one of the underlying HTTP methods (often called verbs) to perform stateless operations on resources. Stateless means that the server will not remember any of your prior requests—each request ...

Get Hands-On Internet of Things with MQTT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.