hub-ology / video_village

Video Village project
MIT License
1 stars 5 forks source link

Pi registration endpoint #14

Closed BrianPainter closed 8 years ago

BrianPainter commented 8 years ago

Created the Pi registration endpoint: api/pis/register

This resolves #7

Currently the pi will only need to pass in it's MAC address. If the Pi has previously been registered we just continue. If the Pi is registering for the first time, we create a Pi object in the database with the MAC address.

In order for the Pi to authenticate when calling "register" endpoint, a specific header attribute will need to be included. I will share this on the slack channel, or it can be found in the code.