Skip to content

Instantly share code, notes, and snippets.

@gcollazo
Created February 24, 2012 21:46
Show Gist options
  • Select an option

  • Save gcollazo/1903972 to your computer and use it in GitHub Desktop.

Select an option

Save gcollazo/1903972 to your computer and use it in GitHub Desktop.

BarcampCheckin

A very simple backend to save data from the check-in app.

Endpoints

/event/[event_id]/

  • GET Request will return a list of all the users that already checked in. It will return something like.

     [
         {"user":"1234567890", "checked_in": false},
         {"user":"2123456789", "checked_in": true}
     ]
    
  • POST create a new useer on the db. Send something like:

    {"user": "1234567890", "checked_in": false}
    

/event/[event_id]/[user_id]/

  • GET will return user details

  • PUT will update the user state. Just send something like:

     {"checked_in": true}
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment