We implemented a REST API in C# that is capable of manipulating various entity's within the operational database and deployed in via Microsoft Azure.
- Olivier Godbout - Team Leader
- Samuel Chabot - Collaborator
- Colin Larke - Collaborator
- James Allan Jean-Jacques - Collaborator
The sub-folder RestAPI contains the queries you'll want to run, open it up and select one. For GET/PUT queries that target a single entity you can change the target id in the URL next to GET/PUT(Whichever one your query is doing)
https://roelevator.azurewebsites.net/api/elevators/<CHANGE ME>
To change the status on PUT requests click on the body tab in the upper panel and change the status to either "Active", "Inactive" or "Intervention"
3 - When your parameter is set click the blue send button to run the query. You can view the results by clicking the lower Body tab in the response panel.
Check the status of an elevator - http://roelevator.azurewebsites.net/api/elevators/1
Get the list of elevator that are not in operation - http://roelevator.azurewebsites.net/api/inactiveelevators
Check the status of a column - http://roelevator.azurewebsites.net/api/columns/1
Check the status of a battery - http://roelevator.azurewebsites.net/api/batteries/1
Get list of buildings that have a battery/column/elevator intervention - http://roelevator.azurewebsites.net/api/buildings
Retrieve a list of Leads from the last 30 days are not yet customers - http://roelevator.azurewebsites.net/api/leads
Retrieve a list of quotes with for commercial buildings with excellium products - http://roelevator.azurewebsites.net/api/quotes