stable

Clone or download

Read-only

Add GET labeled_items REST route

This is part of story #10499: Have a labels widget on project dashboards How to test: - You should install and enable the "Label" plugin. - You should then use the REST route at projects/:id/labeled_items - The "query" parameter is mandatory and should have the following form: {"labels_id": [10, 24]} To ease review, the REST route always returns an empty collection for now. Pull requests plugin will respond to the event in a following commit. Change-Id: If9ebba3a44deb2945842cc8d72c458f6eaa1ae71

Modified Files

Name
A plugins/label/include/Label/Exceptions/DuplicatedParameterValueException.php +46 −0 Go to diff View file
A plugins/label/include/Label/Exceptions/EmptyParameterException.php +27 −0 Go to diff View file
A plugins/label/include/Label/Exceptions/InvalidParameterTypeException.php +27 −0 Go to diff View file
A plugins/label/include/Label/Exceptions/MissingMandatoryParameterException.php +27 −0 Go to diff View file
A plugins/label/include/Label/LabeledItemQueryParser.php +78 −0 Go to diff View file
A plugins/label/include/Label/REST/ResourcesInjector.php +42 −0 Go to diff View file
A plugins/label/include/Label/REST/v1/CollectionOfLabeledItemsRepresentation.php +51 −0 Go to diff View file
A plugins/label/include/Label/REST/v1/LabeledItemRepresentation.php +36 −0 Go to diff View file
A plugins/label/include/Label/REST/v1/ProjectResource.php +163 −0 Go to diff View file
M plugins/label/include/autoload.php +11 −2 Go to diff View file
M plugins/label/include/labelPlugin.class.php +24 −2 Go to diff View file
A plugins/label/tests/LabeledItemQueryParserTest.php +100 −0 Go to diff View file
A plugins/label/tests/bootstrap.php +22 −0 Go to diff View file
A src/common/Label/LabeledItem.php +40 −0 Go to diff View file
A src/common/Label/LabeledItemCollection.php +103 −0 Go to diff View file
M src/common/autoload.php +4 −4 Go to diff View file