SmartBed-RESTApi-Example

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

Credits

This tutorial is based on the official Flask tutorial: https://flask.palletsprojects.com/en/2.0.x/tutorial/

OpenAPI specification

You can check out tools that automate the generation of the specification like: https://openap.is

GitHub

View Github