[Rack] hacking on noisebridge api
danny at spesh.com
Sun Oct 21 07:15:29 UTC 2012
Me and Josh did some work on the Noisebridge API today to let his
android app (and anything else) use the door code system. You can now
optionally add a 'key' field to the /gate/ command, which will only
open the door if the key value is a valid current door code.
Note that this is optional -- the API will still open the door if
called with no key field at all, ie:
curl -X POST -d open=True http://api.noisebridge.net/gate/
will still always open the door, but
curl -X POST -d open=True -d key=12345 http://api.noisebridge.net/gate/
will only work if there is a valid 12345 doorcode.
It's intended to provide an interface for people wanting to build
other tools that rely on the doorcode, rather than an authentication
system for the API itself.
More information about the Rack