Project

General

Profile

Actions

Feature #11843

open

Use request.format instead of request[:format]

Added by Kevin Gilpin over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

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

use request.format instead of request[:format]

Actions #1

Updated by Jean-Philippe Lang over 11 years ago

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

Any particular reason to request this?

Actions #2

Updated by Kevin Gilpin over 11 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.

Actions

Also available in: Atom PDF