Feature #36544

API json/xml responses based on Accept header

Added by Marius BALTEANU 5 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution:

Description

This is a follow-up to #34766 and #26709.

Currently, Redmine API requires to append xml or 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 json/xml format in URL.

Also available in: Atom PDF