Add REST endpoint to rename operation
Implement Rest API equivalent to the ssh rename command with usage of
projects API. New project name is getting passed in through json request
body.
With this change the plugin will be able to receive rename requests not
only through ssh but also through its new endpoint, making it more
testable with frameworks that utilise http, such as Gatling.
DatabaseRenameHandler has no support for reviewDB in versions 3.0 and up
and that created conflict during cherry-pick. This resolution is making
the rename method to use renameInReviewDb and renameInNoteDb again.
Change-Id: I0ce0ce68a4d5e65569e8b14a580f7890ef70075b
(cherry picked from commit 94dd6934e9ab5fe03961ae431b5d50f6610f4e65)
9 files changed