Project

General

Profile

Feature #12181

Updated by Toshi MARUYAMA about 7 years ago

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 

 <pre><code class="ruby"> <pre> 
 api.array :attachments do 
    issue.attachments.each do |attachment| 
       render_api_attachment(attachment, api) 
    end 
 end if include_in_api_response?('attachments') 
 </code></pre> </pre> 

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

 Thanks

Back