Project

General

Profile

Actions

Feature #12181

closed

Add attachment information to issues.xml in REST API

Added by Anonymous about 12 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

It would be very handy to include the attachments information to the issues.xml in the REST API
Same is already implemented for relations (issues.xml?include=relations)

Idea is to implement something like

api.array :attachments do
   issue.attachments.each do |attachment|
      render_api_attachment(attachment, api)
   end
end if include_in_api_response?('attachments')

In the index.api.rsb file. Include attachements with issues.xml?include=attachments

Thanks


Files

index.api.rsb.patch (720 Bytes) index.api.rsb.patch Anonymous, 2013-02-28 13:22
Actions

Also available in: Atom PDF