Getting Started
Here you can find a step-by-step guide
to build your first API using Baton.
in this tutorial, we will be using Baton to create an API for the Arduino uno board, later this API can be used to provide basic CRUD operation with a RESTful API.
The basic steps shown hare can be used with a variety of other devices, not just the Arduino Uno.
Creating a basic API
The first step in creating a baton API is to configure an Instrument.
in the Baton ecosystem, an instrument is a place where you can describe the real-world device that you need to communicate with.
an Instrument contains the instruction that baton needs in order to provide you with an API that is tailored to your device.
An instrument is based of an interface,
which is the protocol used to communicate with the device.
every interface has its own functionality.
for this guide we are going to use the serial interface.
First, create a new JSON file, for this example we will name our file baton.json,
is this file save the fallowing