Actions
Patch #21378
openInclude Documents in Projects API
Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
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" } }
Files
Updated by Helder Manuel Torres Vieira about 9 years ago
Added updated_on record and re-tested on Last Trunk (14901)
Updated by Helder Manuel Torres Vieira about 9 years ago
Updated by Jean-Philippe Lang almost 9 years ago
- Target version deleted (
3.3.0)
I'd like to improve the documents feature in a near future (directories...). The documents API should be added after that.
Actions