SmartHomeUMG / SmartHomeAPI

REST API for smart home manage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart Home Web API:

About:

Together with my colleagues, we are going to create a Smart Home project as a group project. My part is to create a REST API that would record information generated by sensors in the house. Information collected:

  • room's temperature and humidity
  • boiler's water level

Requirements:

  • Sqlite
  • .NET 6 SDK & Runtime
  • Postman (for API testing)

ENDPOINTS:

Home Conditions:

Add temperature and humidity (method GET):

http://localhost:5108/HomeCondition/Conditions/Add?temperatureC=31&humidity=200

Temperature:

Get recent temperature ( Method GET):

http://localhost:5108/HomeCondition/Temperature/Recent

Get collection of tempertutes between 2 dates (Method GET):

http://localhost:5108/HomeCondition/Temperature/DuringTime?start=2022-04-01&&stop=2022-04-21

Get all temperature samples:

http://localhost:5108/HomeCondtion/Temperature

Humidity:

Get recent humidity (Method GET):

http://localhost:5108/HomeCondition/Humidity/Recent

Get collection of humidities between 2 dates (Method GET):

http://localhost:5108/HomeCondition/Humidity/DuringTime?start=2022-04-01&&stop=2022-04-21

Get all humidity' samples (Method GET):

http://localhost:5108/HomeCondition/Humidity

Water level:

Get recent water level (Method GET):

http://localhost:5108/HomeCondition/WaterLevel/Recent

Get collection of water levels between 2 dates (Method GET):

http://localhost:5108/HomeCondition/WaterLevel/DuringTime?start=2022-04-01&&stop=2022-04-21

Get all water level' samples (Method GET):

http://localhost:5108/HomeCondition/WaterLevel

About

REST API for smart home manage


Languages

Language:C# 100.0%