With rfid wristbands, called shackles
All REST-urls are within /api/
###JSON Datastructure { _id: String - username rfids: [String] - array of rfids as md5 hash status: String - current status, either 'logged in' or 'logged out' activity: [{ - array of activities date: Date - date of activity action: String - action, either 'login' or 'logout' }] }
returns:
200 - all users as full objects as json.
returns:
200 - user as json
404 null - no matching username
returns:
200 - user (with only last activity in activityarray) as json
404 null - if there is no matching RFID
POST json: {username, rfid}
returns:
200 - successful register
returns:
200 - successful login
returns:
200 - successful logout