Chapter 6. Access: Web APIs for Things
This chapter covers
- Designing APIs for Things based on the REST principles
- Implementing RESTful Things with HTTP and WebSockets
- Representing resources with JSON and MessagePack
- Allowing cross-site requests using CORS
- Using WebSockets and web hooks to implement real-time communication with Things
- Looking at HTTP/2, the future of HTTP
By now, it should be clear that the central idea behind the Web of Things is to make it easy for devices, services, and applications to talk to each other by using patterns and standards that are similar to anything else on the web.
In this chapter, we’ll describe in detail what those patterns are and will show you how to use them to implement web APIs for physical ...
Get Building the Web of Things 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.