Patch #15986

Hook for REST API

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

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

0%

Category:Plugin API
Target version:-

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)

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


Related issues

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

History

#1 Updated by Hashem Nasarat almost 4 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)

#2 Updated by Mischa The Evil almost 4 years ago

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

Also available in: Atom PDF