This application is an example of how to build a REST API. The application os a mock IoT device, simulating a Smart Bed. Implemented endpoints:

  • Headrest adjustment (at the user’s prefference)
  • Detection of the bed sheet
  • Retrieval of envrionment temperature


This tutorial is based on the official Flask tutorial:

OpenAPI specification

You can check out tools that automate the generation of the specification like:


View Github