Project

General

Profile

Actions

Patch #15986

open

Hook for REST API

Added by Kirill Bezrukov (RedmineUP) almost 11 years ago. Updated almost 7 years ago.

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

0%

Estimated time:

Description

Would be nice if issue (and other API objects) will have hooks for adding specific data to the API output.

call_hook(:api_issue_show, :issue => @issue)

Files

api_hooks.patch (2.86 KB) api_hooks.patch Kirill Bezrukov (RedmineUP), 2014-01-28 15:31

Related issues

Related to Redmine - Feature #26045: Does API REST show fields added by plugins?New

Actions
Actions #1

Updated by Hashem Nasarat almost 7 years ago

The provided patch looks reasonable to me.

I found this because I was looking for a way to get the tags associated with a ticket via the rest api.
(Kirill, I'm using your Redmineup Tags plugin -- thanks!)

Maintainers, please can we merge this in? I don't want to have to resort to scaping the Issues page.

I see others are requesting this feature as well #26045 (should probably be closed as duplicate/rejected)

Actions #2

Updated by Mischa The Evil almost 7 years ago

  • Related to Feature #26045: Does API REST show fields added by plugins? added
Actions

Also available in: Atom PDF