API json/xml responses based on Accept header
Currently, Redmine API requires to append
json to URL in order to respond with the desired format and completely ignore the
Accept header. Pavel Rosický wrote more details about this in #26709.
In order to be more consistent with how Rails works by default (and other frameworks as well), we should accept the
Accept header as alternative to
xml format in URL.