{"action":"created","issue":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/826","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/826/comments","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/826/events","html_url":"https://github.com/RESTful-Drupal/restful/issues/826","id":128086483,"number":826,"title":"Using the json-api formatter with the internale Drupal API, 'include' is not respected.","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-22T05:19:39Z","updated_at":"2016-01-22T07:50:42Z","closed_at":null,"body":"The json-api URL spec works as expected. This works:\r\n````\r\nhttp://local954live.com/api/event?filter[artists.id]=35&include=artists\r\n````\r\n\r\nHowever, this isn't. The 'include' portion of the return object is not added using the internal API:\r\n\r\n````\r\n       $query = array(\r\n            'include' => 'artists',\r\n            'filter' => array(\r\n                'artists.id' => 35\r\n            ),\r\n        );\r\n````\r\n\r\nFortunately, the other formatters work correctly."},"comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments/173836817","html_url":"https://github.com/RESTful-Drupal/restful/issues/826#issuecomment-173836817","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/826","id":173836817,"user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T07:50:42Z","updated_at":"2016-01-22T07:50:42Z","body":"I'm not sure I see what you are trying to accomplish there. Can you post\nsome more context and code?\nOn Jan 22, 2016 06:19, \"adam-s\" <notifications@github.com> wrote:\n\n> The json-api URL spec works as expected This works:\n>\n> http://local954livecom/api/event?filter[artistsid]=35&include=artists\n>\n> However, this isn't The 'include' portion of the return object is added:\n>\n>        $query = array(\n>             'include' => 'artists',\n>             'filter' => array(\n>                 'artistsid' => 35\n>             ),\n>         );\n>\n> Fortunately, the other formatters work correctly\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/RESTful-Drupal/restful/issues/826>.\n>\n"}}