stable

Clone or download

Read-only

File document can be created through the REST API

Note that to create the document completly, you will to upload the announced file to the tus upload endpoint specified in the API response. This is part of story #12612: upload document via REST route Change-Id: I8e0f046973e7d8093ecd4bb0eb0668218fb148bf

Modified Files

Name
A plugins/docman/include/REST/v1/CreatedItemFilePropertiesRepresentation.php +36 −0 Go to diff View file
M plugins/docman/include/REST/v1/CreatedItemRepresentation.php +9 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +138 −13 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemPOSTRepresentation.php +6 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +21 −38 Go to diff View file
A plugins/docman/include/REST/v1/FilePropertiesPOSTRepresentation.php +33 −0 Go to diff View file
A plugins/docman/include/Upload/DocumentBeingUploaded.php +81 −0 Go to diff View file
R plugins/docman/include/Upload/DocumentToUploadProvider.php Go to diff View file
M plugins/docman/include/Upload/DocumentOngoingUploadDAO.php +29 −0 Go to diff View file
M plugins/docman/include/Upload/DocumentToUpload.php +9 −43 Go to diff View file
A plugins/docman/include/Upload/DocumentToUploadCreationConflictException.php +29 −0 Go to diff View file
A plugins/docman/include/Upload/DocumentToUploadCreationException.php +25 −0 Go to diff View file
A plugins/docman/include/Upload/DocumentToUploadCreationFileMismatchException.php +29 −0 Go to diff View file
A plugins/docman/include/Upload/DocumentToUploadCreator.php +103 −0 Go to diff View file
A plugins/docman/include/Upload/DocumentToUploadMaxSizeExceededException.php +32 −0 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +2 −2 Go to diff View file
A plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +165 −0 Go to diff View file
R plugins/docman/phpunit/Upload/DocumentToUploadProviderTest.php Go to diff View file
A plugins/docman/phpunit/Upload/DocumentToUploadCreatorTest.php +191 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +57 −5 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file