Updated $resource for Web API