stable

Clone or download

Read-only

Return the value of the link of a document

This is a part of the story #12444 Table : action on click Update the REST route representation so that the route return the value of the link url of a document. This link will be used later in the frontend of the new Docman. How to test : - Make sure to have at least one link in your Docman - Go to the API Explorer and test the route /docman_items/:id or /docman_items/:id/docman_items If the document is not a link, you should have "link_properties = null". If the document is a link , you should have "link_properties = your_link" Change-Id: I6621f5f5afc146e1f43d98fab0d7ff5cf597b73d

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemsResource.php +2 −1 Go to diff View file
M plugins/docman/include/REST/v1/FilePropertiesRepresentation.php +2 −4 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentation.php +8 −1 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +4 −2 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationVisitor.php +25 −6 Go to diff View file
A plugins/docman/include/REST/v1/LinkPropertiesRepresentation.php +36 −0 Go to diff View file
M plugins/docman/tests/phpunit/REST/v1/ItemRepresentationCollectionBuilderTest.php +10 −2 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +9 −3 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +28 −6 Go to diff View file