操作
redmine.org の Rest_Attachements (version 1)の日本語訳です。
REST 添付ファイル¶
フォーマット /attachments/:id¶
GET¶
指定した ID の添付ファイルに関する情報を取得します。
実際に添付ファイルをダウンロードする場合には、レスポンス中に記述された content_url
要素の URL を使用します。
例:
GET /attachments/13.xml
レスポンス:
<attachment>
<id>6243</id>
<filename>test.txt</filename>
<filesize>124</filesize>
<content_type>text/plain</content_type>
<description>This is an attachment</description>
<content_url>http://localhost:3000/attachments/download/6243/test.txt</content_url>
<author name="Jean-Philippe Lang" id="1"/>
<created_on>2011-07-18T22:58:40+02:00</created_on>
</attachment>
Note: チケット情報を取得する際に以下のように記述すると、添付ファイル情報とチケット情報を一度に取得できます。
GET /issues/:id.xml?include=attachments
Mitsuyoshi Yoshida さんがほぼ13年前に更新 · 2件の履歴