stable

Clone or download

Read-only

POST docman_folders/id/file

part of story #13008 Explode route POST docman_items How to test: You should not be able to use the old route anymore You should be able to upload files by drag and drop/modal Change-Id: I93fd5e3d9966329676e86c07c929845fcb51df61

Modified Files

Name
M plugins/docman/include/REST/ResourcesInjector.php +7 −0 Go to diff View file
A plugins/docman/include/REST/v1/DocmanFoldersResource.php +143 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +6 −14 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemPOSTRepresentation.php +1 −5 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +5 −70 Go to diff View file
A plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php +97 −0 Go to diff View file
A plugins/docman/include/REST/v1/Folders/DocmanPOSTFilesRepresentation.php +42 −0 Go to diff View file
A plugins/docman/include/REST/v1/Folders/ItemCanHaveSubItemsChecker.php +49 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +49 −14 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +0 −191 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +1 −1 Go to diff View file
A plugins/docman/tests/rest/Docman/DocmanItemsTestFoldersTest.php +254 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +17 −1 Go to diff View file
M plugins/document/scripts/document/store/actions.js +3 −3 Go to diff View file
M plugins/document/scripts/document/store/actions.spec.js +13 −8 Go to diff View file