{"action":"opened","issue":{"url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/issues/130","repository_url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core","labels_url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/issues/130/comments","events_url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/issues/130/events","html_url":"https://github.com/Research-Institute/json-api-dotnet-core/issues/130","id":235424811,"number":130,"title":"Disable Inclusion Parameter","user":{"login":"jaredcnance","id":13851721,"avatar_url":"https://avatars1.githubusercontent.com/u/13851721?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredcnance","html_url":"https://github.com/jaredcnance","followers_url":"https://api.github.com/users/jaredcnance/followers","following_url":"https://api.github.com/users/jaredcnance/following{/other_user}","gists_url":"https://api.github.com/users/jaredcnance/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredcnance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredcnance/subscriptions","organizations_url":"https://api.github.com/users/jaredcnance/orgs","repos_url":"https://api.github.com/users/jaredcnance/repos","events_url":"https://api.github.com/users/jaredcnance/events{/privacy}","received_events_url":"https://api.github.com/users/jaredcnance/received_events","type":"User","site_admin":false},"labels":[{"id":428971303,"url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/labels/feature","name":"feature","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/milestones/2","html_url":"https://github.com/Research-Institute/json-api-dotnet-core/milestone/2","labels_url":"https://api.github.com/repos/Research-Institute/json-api-dotnet-core/milestones/2/labels","id":2546281,"number":2,"title":"v2.1.0","description":null,"creator":{"login":"jaredcnance","id":13851721,"avatar_url":"https://avatars1.githubusercontent.com/u/13851721?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredcnance","html_url":"https://github.com/jaredcnance","followers_url":"https://api.github.com/users/jaredcnance/followers","following_url":"https://api.github.com/users/jaredcnance/following{/other_user}","gists_url":"https://api.github.com/users/jaredcnance/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredcnance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredcnance/subscriptions","organizations_url":"https://api.github.com/users/jaredcnance/orgs","repos_url":"https://api.github.com/users/jaredcnance/repos","events_url":"https://api.github.com/users/jaredcnance/events{/privacy}","received_events_url":"https://api.github.com/users/jaredcnance/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2017-05-27T13:37:05Z","updated_at":"2017-06-13T03:22:58Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-06-13T03:22:58Z","updated_at":"2017-06-13T03:22:58Z","closed_at":null,"body":"It is possible that an endpoint should not support the inclusion parameter. One example would be a resource endpoint that includes relationships by default. This should apply to all Query requests and so a attr on the controller seems reasonable:\r\n\r\n```csharp\r\n[DisableQuery(QueryParams.Include)]\r\npublic class PeopleController : JsonApiController<Person>\r\n{\r\n    public PeopleController(\r\n        IJsonApiContext jsonApiContext,\r\n        IResourceService<Person> resourceService) \r\n        : base(jsonApiContext, resourceService)\r\n    { }\r\n}\r\n```\r\n\r\nEventually, this attribute may extend to other query parameters as well."}}
{"actor":{"display_login":"jaredcnance"}}