stable

Clone or download

Read-only

Add the possibility to sort the search report in REST route

Part of story #24197 search for Documents with criteria You can test witt the API explorer. The following JSON is can be used as template: { "properties": [ { "name": "title", "value": "*a*", "sort": "DESC" }, { "name": "description", "value": "*a*" } ], "offset": 0, "limit": 50 } Feel free to change it during the test Change-Id: Ic16a2f4bc41f719bea302320d9063e2deadce6c6

Modified Files

Name
M plugins/docman/include/Docman_ReportFactory.class.php +2 −1 Go to diff View file
M plugins/docman/include/REST/v1/Folders/SearchReportBuilder.php +6 −1 Go to diff View file
M plugins/docman/include/REST/v1/Search/SearchPropertyRepresentation.php +5 −0 Go to diff View file
M plugins/docman/include/REST/v1/SearchResource.php +11 −3 Go to diff View file
M plugins/docman/include/Search/ColumnReportAugmenter.php +24 −3 Go to diff View file
A plugins/docman/include/Search/InvalidSortTypeException.php +33 −0 Go to diff View file
A plugins/docman/include/Search/SearchSortPropertyMapper.php +45 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/SearchTest.php +36 −0 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Folders/SearchReportBuilderTest.php +2 −1 Go to diff View file
M plugins/docman/tests/unit/Search/ColumnReportAugmenterTest.php +72 −16 Go to diff View file
A plugins/docman/tests/unit/Search/SearchSortPropertyMapperTest.php +51 −0 Go to diff View file