stable

Clone or download

Read-only

ItemsRepresentation should returns metadata

part of story #12450 see a preview of document How to test: Have document with standatrd and custom metadata Metadata should be returned in Rest representation Change-Id: I60e3d86347238cb71dc35a519fd1d8c887875474

Modified Files

Name
M plugins/docman/include/Docman_Item.class.php +5 −2 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +21 −4 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentation.php +6 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +11 −1 Go to diff View file
A plugins/docman/include/REST/v1/MetadataListValueRepresentation.php +42 −0 Go to diff View file
A plugins/docman/include/REST/v1/MetadataRepresentation.php +73 −0 Go to diff View file
A plugins/docman/include/REST/v1/MetadataRepresentationBuilder.php +105 −0 Go to diff View file
A plugins/docman/include/REST/v1/UnknownMetadataException.php +25 −0 Go to diff View file
M plugins/docman/include/constants.php +3 −1 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +5 −1 Go to diff View file
M plugins/docman/phpunit/REST/v1/ItemRepresentationBuilderTest.php +25 −1 Go to diff View file
M plugins/docman/phpunit/REST/v1/ItemRepresentationCollectionBuilderTest.php +45 −3 Go to diff View file
A plugins/docman/phpunit/REST/v1/MetadataRepresentationBuilderTest.php +97 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +71 −0 Go to diff View file