{"action":"closed","issue":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/366","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/366/comments","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/366/events","html_url":"https://github.com/RESTful-Drupal/restful/issues/366","id":54184628,"number":366,"title":"Have to do individual API calls per node because restful doesn't provide enough data","user":{"login":"BurningDog","id":787653,"avatar_url":"https://avatars.githubusercontent.com/u/787653?v=3","gravatar_id":"","url":"https://api.github.com/users/BurningDog","html_url":"https://github.com/BurningDog","followers_url":"https://api.github.com/users/BurningDog/followers","following_url":"https://api.github.com/users/BurningDog/following{/other_user}","gists_url":"https://api.github.com/users/BurningDog/gists{/gist_id}","starred_url":"https://api.github.com/users/BurningDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurningDog/subscriptions","organizations_url":"https://api.github.com/users/BurningDog/orgs","repos_url":"https://api.github.com/users/BurningDog/repos","events_url":"https://api.github.com/users/BurningDog/events{/privacy}","received_events_url":"https://api.github.com/users/BurningDog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-13T12:07:33Z","updated_at":"2015-01-14T18:18:50Z","closed_at":"2015-01-14T18:18:50Z","body":"As mentioned in https://github.com/RESTful-Drupal/restful/issues/353 I have multiple places where restful doesn't provide enough data in a \"show all [x] entity nodes\" API call. I can only find this data by doing a ```node_load()``` in a callback in ```publicFieldsInfo()``` inside my class which extends ```RestfulEntityBaseNode```\r\n\r\nTo do the ```node_load()``` I need to know the node id. I can only get the node id from a specific call, like ```api/v1.0/courses/123``` where 123 is the node id. The only way I can see to get the node id is by using ```$this->path``` since I can't see anywhere else to get the node id. This means that I need to perform multiple API calls to get the data I need, first to ```api/v1.0/courses``` and then one API call per node. This can't be right!\r\n\r\nWhat is the way to get the node id inside my class, which doesn't use ```$this->path```?\r\n\r\nI'm not getting any further replies to a similar question at https://github.com/RESTful-Drupal/restful/issues/353 so I've opened a new issue. The suggested use of ```hook_entity_property_info``` doesn't apply in my case."}}