O'Reilly logo

HoloLens Blueprints by Mallikarjuna Rao, Manish Sharma, Abhijit Jana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required