Project

General

Profile

Actions

Feature #27355

open

custom acknowledgement meesage in resposne BODY of Redmine REST API POST call

Added by Sandeep Kutwal over 6 years ago. Updated over 6 years ago.

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

0%

Estimated time:
Resolution:

Description

Hi All,

How to provide custom acknowledgement format as response to REST API call (POST) in Redmine while while user tries to create the issue with wrong JSON format using REST POST call.

Below should be response BODY along with status code as 400 .

{
  “status”:400,
  “errorMessage”:”Wrong JSON format ,Please check ”
}

Simply, how to enable custom messages in BODY of response from REST call. In Redmine, apart from issue creation with POST call, no other option (for e.g PUT) doesn't provides any BODY to caller as response.

Thanks in advance .

Actions #1

Updated by Toshi MARUYAMA over 6 years ago

  • Tracker changed from Defect to Feature
  • Subject changed from How to provide custom acknowledgement meesage in resposne BODY of Redmine REST API POST call to custom acknowledgement meesage in resposne BODY of Redmine REST API POST call
  • Description updated (diff)
  • Priority changed from Urgent to Normal
Actions

Also available in: Atom PDF