The Web API consumes the Azure Cosmos DB - SQL (DocumentDB) data received from sensors and exposes the REST API to be consumed by other applications. Here are the steps to follow to build the service:
- Open Visual Studio and create a web application using the context menu File | New Project | Web | ASP.NET Web Application (.NET Framework).
- From the New ASP.NET Web Application dialog window, select the Azure API App option.
- Within the project, add a new class, such as BuildingCreator.cs, which is responsible for connecting with SQL-DocumentDB and reading building sensor data.
- Within the BuildingCreator ...