SuneJepsen / iotproject-web

0 stars 0 forks source link

Implement WebApi #14

Open anna0207 opened 6 years ago

anna0207 commented 6 years ago

Create REST WebApi to control security between front-end and database

SuneJepsen commented 6 years ago

@anna0207 ive created a webapi.access project. Run the project - for now Ive created one method which returns json data on the following url: /api/values - all these values should be presented in some way

SuneJepsen commented 6 years ago

@anna0207 and @Spiderixius status:

Fetch data for current day for presentation: /api/iot (project: WebApi.Access)

There are data in firebase for date: 18/4.

If the current date is 19/4 then you need to fill data in the database - you do that by running the following tests in the following order:

Test_Insert_Into_Raw_data_door and Test_Insert_Into_Raw_data_floor Test_Run_MasterTemplate

I couldnt get the inferred data count to give anything else than zero, with the test data ive created. I guess there is something with spans of dates whats configured. But you can change the count directly in inferred database on https://console.firebase.google.com/u/1/project/inferred-data/database/inferred-data/data (use bikebus user)

SuneJepsen commented 6 years ago

image

If you need access for running the webapplication one needs to allow for cross scripting.