Developing the Web API

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:

  1. Open Visual Studio and create a web application using the context menu File | New Project | Web | ASP.NET Web Application (.NET Framework).
  2. From the New ASP.NET Web Application dialog window, select the Azure API App option.
Azure API App selection
  1. Within the project, add a new class, such as BuildingCreator.cs, which is responsible for connecting with SQL-DocumentDB and reading building sensor data.
  2. Within the BuildingCreator ...

Get HoloLens Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.