プロジェクト

全般

プロフィール

Vote #76950

未完了

Include Documents in Projects API

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
21378
author_id:
119076
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This patch adds @documents@ to the @Projects#show API@.

They will be shown only if the +include=documents+ parameter is passed on URL

The behaviour is exactly the same as for issue categories, trackers and modules.

Patch and Tests are included.

JSON Example

GET /projects.json?include=documents

{
  project: {
    id: 1,
    name: "Test Project",
    identifier: "test-project",
    description: "",
    homepage: "",
    status: 1,
    documents: [
      {
        id: 1,
        title: "Document 1",
        description: "Description 1",
        category: {
          id: 1,
          name: "Uncategorized"
        },
        url: "https://redmine/documents/1",
        created_on: "2015-11-29T12:19:16Z"
      }
    ],
    created_on: "2015-11-29T12:11:34Z",
    updated_on: "2015-11-29T12:11:34Z"
  }
}

journals

Added *updated_on* record and re-tested on Last Trunk (14901)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I'd like to improve the documents feature in a near future (directories...). The documents API should be added after that.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0