Book Image

Practical Node-RED Programming

By : Taiji Hagino
5 (1)
Book Image

Practical Node-RED Programming

5 (1)
By: Taiji Hagino

Overview of this book

Node-RED is a free and open source flow-based programming tool used to handle IoT data that allows programmers of any level to interconnect physical I/O, cloud-based systems, databases, and APIs to build web applications without code. Practical Node-RED Programming is a comprehensive introduction for anyone looking to get up to speed with the Node-RED ecosystem in no time. Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will help you to become well versed in the foundations of Node-RED. You’ll learn how to use Node-RED to handle IoT data and build web applications without having to write complex code. Once you’ve covered the basics, you’ll explore various visual programming techniques and find out how to make sample flows as you cover web development, IoT development, and cloud service connections, and finally build useful real-world applications. By the end of this book, you’ll have learned how to use Node-RED to develop a real-world application from scratch, which can then be implemented in your business.
Table of Contents (19 chapters)
Section 1: Node-RED Basics
Section 2: Mastering Node-RED
Section 3: Practical Matters

Learning about the RESTful API

Many of you reading this book may already be familiar with web APIs. However, let's review the RESTful API in order to call a web API with Node-RED.

REST stands for Representational State Transfer. RESTful API basically refers to the invocation interface in HTTP of a web system that is implemented according to "REST principles." So, in a broad sense, it's safe to say that the REST API and RESTful API are the same things. So, what exactly is the RESTful API? We will learn the outline and principles of the RESTful API, and the advantages and disadvantages of using the RESTful API, in this section.

REST was proposed by Roy Fielding, one of the HTTP protocol creators, around the year 2000, and is a set (or way of thinking) of design principles suitable for linking multiple software when building a distributed application. In addition, the RESTful API is an API designed according to the following four REST principles:

  • Addressability...