I do not have much experience with the API, but I know that if you want to protect them properly, you can use some API secret keys to complete the task
-
API Keys
If you want to provide functionality only to a specific group of users, you are best off embedding API keys in your applications.
I donβt know how you will achieve this specifically (IE only for your Android systems), but what you want in an ideal world allows only certain accounts with support for API keys to access the Rails data application.
Your task will be to provide keys only for Android devices. (The part I'm not sure about yet).
Rails , API:

-
Android-
, Android, Android- - ?
, , ID Android ( Android), , API.
Android?
, - : , Android, , "API-" rab. .