stable
Clone or download
Read-only
The route docman_items/:id/docman_items now display the document icon in its representation
Part of the story #12443 : Table: Minimal folder display When the document is an embedded file or a file, the REST route will return its type (pdf, html, audio etc...) You can test with api explorer Change-Id: I31fee68d406da9363029f501a57b770c43c73a00
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/REST/v1/DocmanItemsResource.php | +6 | −4 | Go to diff View file |
A | plugins/docman/include/REST/v1/FilePropertiesRepresentation.php | +36 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/ItemRepresentation.php | +12 | −2 | Go to diff View file |
M | plugins/docman/include/REST/v1/ItemRepresentationBuilder.php | +13 | −5 | Go to diff View file |
M | plugins/docman/include/REST/v1/ItemRepresentationVisitor.php | +30 | −10 | Go to diff View file |
M | plugins/docman/tests/phpunit/REST/v1/ItemRepresentationCollectionBuilderTest.php | +51 | −12 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTest.php | +4 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +40 | −1 | Go to diff View file |