carleton-cs-energy-analytics / energy-analytics-comps

Revolutionizing the way Carleton notices that a building is being heated/cooled simultaneously!
1 stars 0 forks source link

Api #23

Closed jacklightbody closed 6 years ago

jacklightbody commented 6 years ago

What's this PR for?

I was asked to create an initial version of the api to interact with our database as per #17. I implemented this with slim framework in php. This makes #18 possible.

Where should the reviewer start?

Look at route definitions, wasn't sure how to formulate all of them in a clear way. Also just look to make sure the php makes sense to you guys, since we'll probably all have to deal with it at some point or other.

How should this be tested? Automated/Manual?

I tested the routes with php -S localhost:8080 -t public public/index.php from the api directory and then visiting the appropriate routes. Still need to do automated testing and write documentation

Screenshots

screen shot 2017-11-06 at 7 59 52 pm