$resource and REST API