{"action":"created","issue":{"url":"https://api.github.com/repos/BaseXdb/basex/issues/1220","repository_url":"https://api.github.com/repos/BaseXdb/basex","labels_url":"https://api.github.com/repos/BaseXdb/basex/issues/1220/labels{/name}","comments_url":"https://api.github.com/repos/BaseXdb/basex/issues/1220/comments","events_url":"https://api.github.com/repos/BaseXdb/basex/issues/1220/events","html_url":"https://github.com/BaseXdb/basex/issues/1220","id":121460516,"number":1220,"title":"RESTXQ: Accept headers; error messages","user":{"login":"ChristianGruen","id":196589,"avatar_url":"https://avatars2.githubusercontent.com/u/196589?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristianGruen","html_url":"https://github.com/ChristianGruen","followers_url":"https://api.github.com/users/ChristianGruen/followers","following_url":"https://api.github.com/users/ChristianGruen/following{/other_user}","gists_url":"https://api.github.com/users/ChristianGruen/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianGruen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianGruen/subscriptions","organizations_url":"https://api.github.com/users/ChristianGruen/orgs","repos_url":"https://api.github.com/users/ChristianGruen/repos","events_url":"https://api.github.com/users/ChristianGruen/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianGruen/received_events","type":"User","site_admin":false},"labels":[{"id":76378,"url":"https://api.github.com/repos/BaseXdb/basex/labels/feature","name":"feature","color":"007F7F","default":false},{"id":12707012,"url":"https://api.github.com/repos/BaseXdb/basex/labels/http","name":"http","color":"eeeeee","default":false}],"state":"open","locked":false,"assignee":{"login":"holu","id":196554,"avatar_url":"https://avatars1.githubusercontent.com/u/196554?v=4","gravatar_id":"","url":"https://api.github.com/users/holu","html_url":"https://github.com/holu","followers_url":"https://api.github.com/users/holu/followers","following_url":"https://api.github.com/users/holu/following{/other_user}","gists_url":"https://api.github.com/users/holu/gists{/gist_id}","starred_url":"https://api.github.com/users/holu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holu/subscriptions","organizations_url":"https://api.github.com/users/holu/orgs","repos_url":"https://api.github.com/users/holu/repos","events_url":"https://api.github.com/users/holu/events{/privacy}","received_events_url":"https://api.github.com/users/holu/received_events","type":"User","site_admin":false},"assignees":[{"login":"holu","id":196554,"avatar_url":"https://avatars1.githubusercontent.com/u/196554?v=4","gravatar_id":"","url":"https://api.github.com/users/holu","html_url":"https://github.com/holu","followers_url":"https://api.github.com/users/holu/followers","following_url":"https://api.github.com/users/holu/following{/other_user}","gists_url":"https://api.github.com/users/holu/gists{/gist_id}","starred_url":"https://api.github.com/users/holu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holu/subscriptions","organizations_url":"https://api.github.com/users/holu/orgs","repos_url":"https://api.github.com/users/holu/repos","events_url":"https://api.github.com/users/holu/events{/privacy}","received_events_url":"https://api.github.com/users/holu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/BaseXdb/basex/milestones/18","html_url":"https://github.com/BaseXdb/basex/milestone/18","labels_url":"https://api.github.com/repos/BaseXdb/basex/milestones/18/labels","id":2181135,"number":18,"title":"9.0","description":"","creator":{"login":"ChristianGruen","id":196589,"avatar_url":"https://avatars2.githubusercontent.com/u/196589?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristianGruen","html_url":"https://github.com/ChristianGruen","followers_url":"https://api.github.com/users/ChristianGruen/followers","following_url":"https://api.github.com/users/ChristianGruen/following{/other_user}","gists_url":"https://api.github.com/users/ChristianGruen/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianGruen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianGruen/subscriptions","organizations_url":"https://api.github.com/users/ChristianGruen/orgs","repos_url":"https://api.github.com/users/ChristianGruen/repos","events_url":"https://api.github.com/users/ChristianGruen/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianGruen/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":24,"state":"open","created_at":"2016-12-07T10:46:34Z","updated_at":"2018-02-16T17:52:10Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-12-10T11:11:28Z","updated_at":"2018-02-20T11:50:52Z","closed_at":null,"author_association":"OWNER","body":"**Updated:**\r\n\r\nServer-side RESTXQ code can have multiple functions pointing to the same path, but having different `%rest:produce` annotations.\r\n\r\nRight now, BaseX provides support for requests with multiple content types in Accept header if they come with quality factors.\r\n\r\nHowever, if a client sends a request without an `Accept` header, or without quality factors, the response will be `Several functions assigned to the path \"...\"`. Todos:\r\n\r\n- Check how this was resolved in JAX-RS\r\n- Define an equivalent solution in RESTXQ and choose function that matches the client request best\r\n- Think about better error messages\r\n"},"comment":{"url":"https://api.github.com/repos/BaseXdb/basex/issues/comments/366953802","html_url":"https://github.com/BaseXdb/basex/issues/1220#issuecomment-366953802","issue_url":"https://api.github.com/repos/BaseXdb/basex/issues/1220","id":366953802,"user":{"login":"ChristianGruen","id":196589,"avatar_url":"https://avatars2.githubusercontent.com/u/196589?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristianGruen","html_url":"https://github.com/ChristianGruen","followers_url":"https://api.github.com/users/ChristianGruen/followers","following_url":"https://api.github.com/users/ChristianGruen/following{/other_user}","gists_url":"https://api.github.com/users/ChristianGruen/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianGruen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianGruen/subscriptions","organizations_url":"https://api.github.com/users/ChristianGruen/orgs","repos_url":"https://api.github.com/users/ChristianGruen/repos","events_url":"https://api.github.com/users/ChristianGruen/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianGruen/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T11:50:52Z","updated_at":"2018-02-20T11:50:52Z","author_association":"OWNER","body":"Finally resolved!\r\n\r\n* Wildcard content-types will now be correctly handled.\r\n* For cases in which a client does not supply enough information for choosing the most adequate function, server-side quality factors can be specified\r\n\r\nInfo on server-side quality factor: http://docs.basex.org/wiki/RESTXQ#Content_Negotiation"}}
{"actor":{"display_login":"ChristianGruen"}}