Vote #76950
未完了Include Documents in Projects API
0%
説明
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.
--------------------------------------------------------------------------------