Keath Milligan

On software development, quality, security and broken racecars

Tag: rest

Implement a RESTful interface with Android Things and Raspberry Pi

Android Things (formerly “Brillo”) is a streamlined version of Android designed for small form-factor and IoT devices. Here is a simple example of a Things app that provides a RESTful web interface to control the state of an LED on a Raspberry Pi GPIO port.

RESTful Flask application quick-start

flask-quickstart

 

With the rise of the single-page application (SPA) web front-ends and mobile apps, the backend of many web applications is a collection of RESTful interfaces that provide JSON data rather than generating HTML. The rendering is up to the client side. While there are some drawbacks to this approach (heavier client, slower initial page loads, etc.), there are also a number of advantages, not the least of which is better separation of concerns since the front-end and back-end code are completely independent of one another.… Read More...

© 2017 Keath Milligan

Theme by Anders NorenUp ↑