rails separate login for an api
- by Squadrons
I have a very simple api that is part of a rails app that requires logging in.
I just need a way to make the api part accessible with a simple form that allows the user to enter parameters like a key (just a simple one stored in the DB, no OAuth or anything), a userId to find and return a user via json, and maybe some other parameters like asking for their schedule.
How can I keep this seperate from the rest of the app, making it a public facing form that will grant access only to the api?
Thanks.