O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Taking a REST

When you start designing your own Internet of Things application, in particular your own on-device web service, there will come a time when you wonder, “But is this a good design?” As the Web has shown, its underlying REST principles are a solid basis for good Internet applications. The core idea of REST is simple:

Access resources by sending HTTP messages that contain appropriate representations.

When you design a RESTful web service interface, the meat of your design work should not be in designing the URIs of the resources, but in designing the representations of the resources (see Chapter 4). Ideally, you can use an already existing, standardized representation such as HTML or the ATOM format that is used for many RSS feeds. Sometimes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required