stable

Clone or download

Read-only

Add the REST route POST empty_documents/:id/embedded_file

This is a part of story #13208 create new version of empty document How to test: - Go to the API explorer - Update an empty document to a embedde file document with content => No error If the document you try to transform is not an empty document you should have an error Change-Id: Id8c469a281114a4ef4e5d24defea85a6edde06fa

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +6 −5 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmptyDocumentsResource.php +89 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFoldersResource.php +2 −2 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +1 −1 Go to diff View file
M plugins/docman/include/REST/v1/EmbeddedFiles/EmbeddedFileVersionCreator.php +65 −6 Go to diff View file
R plugins/docman/include/REST/v1/Folders/DocmanEmptyPOSTRepresentation.php Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +1 −1 Go to diff View file
M plugins/docman/phpunit/REST/v1/EmbeddedFiles/EmbeddedFileVersionCreatorTest.php +35 −6 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanEmptyTest.php +72 −0 Go to diff View file