I realized that I had to go with something custom so I integrated Slim REST framework with Joomla. In the script below I initialize the Joomla application in my service script:
error_reporting(0);
ini_set('display_errors', '0');
define( '_JEXEC', 1 );
define( '_VALID_MOS', 1 );
// Point JPATH_BASE to root directory
define( 'JPATH_BASE', substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/administrator')));
define( 'DS', DIRECTORY_SEPARATOR );
// Include the Slim REST framework
require_once ( JPATH_BASE .DS.'libraries/slim/Slim.php' );
// Include the Joomla framework
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$application = & JFactory::getApplication('site');
$application->initialise();
$app = new Slim();
$app->get('/resource/car/:id', 'getCar');
$app->put('/resource/car/:id', 'updateCar');
$app->run();
I can now use the Joomla APIs in my code for security, data access etc.