stable

Clone or download

Read-only

feat: Simplify result for GET /artidoc/:id/sections

Previous iteration returned too much information. We only need title and description of the artifact. If backend sends those information, then this will ease the work for the frontend. Part of story #37542: display a read only Document Change-Id: Id416a720777e328ff77139e738fbe62b4ea5eaec

Modified Files

Name
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocResource.php +2 −32 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionRepresentation.php +7 −3 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/RawSectionsToRepresentationTransformer.php +39 −31 Go to diff View file
M plugins/artidoc/tests/unit/Artidoc/REST/v1/PaginatedArtidocSectionRepresentationCollectionBuilderTest.php +14 −5 Go to diff View file
M plugins/artidoc/tests/unit/Artidoc/REST/v1/RawSectionsToRepresentationTransformerTest.php +385 −51 Go to diff View file