Closed Bug 972881 Opened 9 years ago Closed 9 years ago

Add hooks to Bugzilla/WebService/Server/REST.pm to allow for extensions to extend and alter REST data

Categories

(Bugzilla :: WebService, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file, 1 obsolete file)

We need to have hooks in place to allow extensions to add or override standard REST methods and to be able to update the data coming in and going out.

Patch coming
dkl
Severity: normal → enhancement
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → Bugzilla 5.0
Attached patch 972881_1.patch (obsolete) — Splinter Review
Attachment #8376340 - Flags: review?(glob)
Code hooks must be documented in Bugzilla/Hook.pm.
Comment on attachment 8376340 [details] [diff] [review]
972881_1.patch

Forgot about documentation so new patch coming.
dkl
Attachment #8376340 - Flags: review?(glob)
Attached patch 972881_2.patchSplinter Review
Added example code and docs.
Attachment #8376340 - Attachment is obsolete: true
Attachment #8379497 - Flags: review?(glob)
Comment on attachment 8379497 [details] [diff] [review]
972881_2.patch

r=glob
Attachment #8379497 - Flags: review?(glob) → review+
Flags: approval?
Flags: approval? → approval+
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk
modified Bugzilla/Hook.pm
modified Bugzilla/WebService/Util.pm
modified Bugzilla/WebService/Server/REST.pm
modified extensions/Example/Extension.pm
Committed revision 8931.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Blocks: 976765
You need to log in before you can comment on or make changes to this bug.