Feature #11843

Use request.format instead of request[:format]

Added by Kevin Gilpin almost 10 years ago. Updated almost 10 years ago.

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

0%

Category:REST API
Target version:-
Resolution:

Description

Allow request headers to determine the format, not just URL extension

use request.format instead of request[:format]

History

#1 Updated by Jean-Philippe Lang almost 10 years ago

  • Tracker changed from Defect to Feature
  • Category set to REST API

Any particular reason to request this?

#2 Updated by Kevin Gilpin almost 10 years ago

request[:format] is really just a Rails convention. request.format adheres to the HTTP spec by responding to Accept header. Some client libraries will set the Accept header, e.g. application/json when connecting to the Redmine API.

Also available in: Atom PDF