{"action":"created","issue":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/853","repository_url":"https://api.github.com/repos/RESTful-Drupal/restful","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/853/comments","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/853/events","html_url":"https://github.com/RESTful-Drupal/restful/issues/853","id":132676489,"number":853,"title":"Author field does not show up","user":{"login":"ness-EE","id":9382424,"avatar_url":"https://avatars.githubusercontent.com/u/9382424?v=3","gravatar_id":"","url":"https://api.github.com/users/ness-EE","html_url":"https://github.com/ness-EE","followers_url":"https://api.github.com/users/ness-EE/followers","following_url":"https://api.github.com/users/ness-EE/following{/other_user}","gists_url":"https://api.github.com/users/ness-EE/gists{/gist_id}","starred_url":"https://api.github.com/users/ness-EE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ness-EE/subscriptions","organizations_url":"https://api.github.com/users/ness-EE/orgs","repos_url":"https://api.github.com/users/ness-EE/repos","events_url":"https://api.github.com/users/ness-EE/events{/privacy}","received_events_url":"https://api.github.com/users/ness-EE/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T11:46:14Z","updated_at":"2016-02-12T21:38:58Z","closed_at":null,"body":"According to the documentation (https://github.com/RESTful-Drupal/restful/wiki/2.-Defining-the-public-fields-(2.x)) - it's possible to set a public field to show a node's author.\r\n\r\nIt doesn't show in the 'articles' endpoint I've made. No custom formatters are being used.\r\n\r\nCan you confirm that this functionality works?\r\n"},"comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments/183497430","html_url":"https://github.com/RESTful-Drupal/restful/issues/853#issuecomment-183497430","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/853","id":183497430,"user":{"login":"adam-s","id":232388,"avatar_url":"https://avatars.githubusercontent.com/u/232388?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-s","html_url":"https://github.com/adam-s","followers_url":"https://api.github.com/users/adam-s/followers","following_url":"https://api.github.com/users/adam-s/following{/other_user}","gists_url":"https://api.github.com/users/adam-s/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-s/subscriptions","organizations_url":"https://api.github.com/users/adam-s/orgs","repos_url":"https://api.github.com/users/adam-s/repos","events_url":"https://api.github.com/users/adam-s/events{/privacy}","received_events_url":"https://api.github.com/users/adam-s/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T21:38:57Z","updated_at":"2016-02-12T21:38:57Z","body":"I added this code to a resource class according to the documentation:\r\n````\r\n        $public_fields['author'] = array(\r\n            'property' => 'author',\r\n            'sub_property' => 'uid',\r\n        );\r\n````\r\nand it returned `author=1` which is correct.\r\n\r\nAfter the 'sub_property' was removed from the definition. \r\n````\r\n        $public_fields['author'] = array(\r\n            'property' => 'author',\r\n        );\r\n````\r\nThe user object was returned with password hash and all. "}}