stable

Clone or download

Read-only

feat: Introduce POST artidoc/:id/sections

This will create a new section in a given artidoc. Part of story #38288: add a new section Change-Id: Ib548de9b8f15be328364ccb0f2c2666dace8f01e

Modified Files

Name
M plugins/artidoc/include/Artidoc/Document/ArtidocDao.php +56 −1 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/SaveOneSection.php +30 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/REST/v1/ArtidocPOSTSectionPositionBeforeRepresentation.php +36 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/REST/v1/ArtidocPOSTSectionRepresentation.php +42 −0 Go to diff View file
R plugins/artidoc/include/Artidoc/REST/v1/ArtidocPUTSectionArtifactRepresentation.php Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocPUTSectionRepresentation.php +2 −2 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocResource.php +111 −44 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionRepresentation.php +13 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/REST/v1/POSTSectionHandler.php +118 −0 Go to diff View file
A plugins/artidoc/tests/e2e/cypress/cypress/downloads/Tracker_requirements.xml +67 −0 Go to diff View file
M plugins/artidoc/tests/integration/Artidoc/Document/ArtidocDaoTest.php +73 −0 Go to diff View file
M plugins/artidoc/tests/rest/Artidoc/ArtidocTest.php +1 −1 Go to diff View file
A plugins/artidoc/tests/unit/Artidoc/REST/v1/POSTSectionHandlerTest.php +216 −0 Go to diff View file
M plugins/artidoc/tests/unit/Artidoc/REST/v1/PUTSectionsHandlerTest.php +8 −8 Go to diff View file
A plugins/artidoc/tests/unit/Artidoc/Stubs/Document/SaveOneSectionStub.php +77 −0 Go to diff View file