Ask HN: REST and Authentication
Let's suppose that you have have a simple app that allows you to track your book collection. So you have a books table, and you want to expose that using a RESTful web app. My question is this: how would you restrict me to only mucking with my own collection?
I'm sorry if this seems really simple, but I've never come across an example that deals with this. If I want to expose an API to my users for my site, and I don't want them to be able to just willy-nilly muck around with all of the data in my site, how do I deal with this?