stable
Clone or download
Read-only
This is part of request #10039: Retrieve FRS packages via REST * projects/:id/frs_packages lists packages the current user can read in a project * Only basic information is returned for now: id, label * projects/:id list a new subresource * If the project does not use the frs service, then /projects/:id does not list the frs_packages subresource and /projects/:id/frs_packages returns a 404 The route support pagination, but in order to decrease the size of the review, actually all packages are returned. Pagination will be implemented in a dedicated commit. Change-Id: Ia04f85315dbd5d4a4970a559c11efecba13d57db
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/frs/include/FRS/REST/ResourcesInjector.php | +22 | −1 | Go to diff View file |
A | plugins/frs/include/FRS/REST/v1/PackageRepresentation.php | +46 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/REST/v1/PackageRepresentationPaginatedCollection.php | +56 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/REST/v1/ProjectResource.php | +55 | −0 | Go to diff View file |
M | plugins/frs/include/autoload.php | +5 | −2 | Go to diff View file |
M | plugins/frs/include/frsPlugin.class.php | +26 | −0 | Go to diff View file |
A | src/common/REST/v1/FRSPackageRepresentationBase.php | +33 | −0 | Go to diff View file |
M | src/common/autoload.php | +3 | −2 | Go to diff View file |
M | src/common/event/Event.class.php | +19 | −0 | Go to diff View file |
M | src/common/frs/FRSPackageFactory.class.php | +1 | −1 | Go to diff View file |
M | src/common/project/REST/v1/ProjectResource.class.php | +73 | −1 | Go to diff View file |