I would like to prevent my users to login except for those who login through my REST Service.
Is that possible?
It sounds like the login_disable module will do exactly what you need.
Prevent users from logging in to your Drupal site unless they know the secret key to add to the end of the login form page. ( default: http://example.com/?q=user/login&admin )
If your site has clean urls enabled you may use http://example.com/user/login?admin instead.
That way you can set a secret key so only users who know that key are able to log in using the login form.