$resource (url, paramDefaults, actions)
maybe know a little back end will help you understand easier