プロジェクト

全般

プロフィール

Vote #77721

完了

REST API should return attachment's id in addition to token

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
119
issue_org_id:
23566
author_id:
7834
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

journals

The first part (before the @.@) of the token _is_ in fact the ID.

--------------------------------------------------------------------------------
Than you, Jan! this is useful to know. it is hard to predict though if that is something that we could rely on going forward. it may be just some internal implementation detail rather than documented API.
if I parse id from the token, this may break for the next redmine version - non-starter for the Java library because I can't support separate versions for each Redmine version.

--------------------------------------------------------------------------------
Alex Last wrote:
> Than you, Jan! this is useful to know. it is hard to predict though if that is something that we could rely on going forward. it may be just some internal implementation detail rather than documented API.
> if I parse id from the token, this may break for the next redmine version - non-starter for the Java library because I can't support separate versions for each Redmine version.

I agree. Luckily, it's not hard to return the ID as well, so the attached patch implements this. We've added this to the "Redmine API at Planio":https://plan.io/api/#uploading-a-file straight away and hopefully this patch can be included in Redmine as well in a next minor release.

--------------------------------------------------------------------------------
Thanks for submitting the patch, Jan.
I think this should be implemented in Redmine core. I am setting target version to 3.4.0.
--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン3.4.0_119 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0