stable

Clone or download

Read-only

request #10179: Remove artifacts/:id/move from REST API

artifacts/:id/move is not a resource. We should not put action in the name of a resource. Furthermore, it is not at all a move; as said in epics #9563: "move = new artifact + link + freeze". Therefore we cannot use a move "verb" on /artifacts/:id resource, since it would imply to send a "301 moved permanently" status code on a moved artifact, whereas the resource still exist. For now it is only a copy of an artifact, therefore one should use the following route: POST /artifacts { tracker: { id: 109 }, from_artifact: { id: 42 } } This will create a new artifact in the tracker 109, by copying the values (actually the semantic title) of the artifact 42. Change-Id: Ie8b196d41b46e1c9dd16001387f85a54819ca98d

Modified Files

Name
M plugins/tracker/include/REST/Artifact/ArtifactReference.class.php +4 −4 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +62 −52 Go to diff View file