This page describes the REST endpoints that are added by the @PLUGIN@ plugin.
Please also take note of the general information on the REST API.
POST /config/server/@PLUGIN@~project
Imports a project.
The information about which project should be imported must be provided in the request body as a ProjectInput entity.
Caller must be a member of a group that is granted the ‘Import’ capability (provided by this plugin) or the ‘Administrate Server’ capability.
POST /config/server/@PLUGIN@~project HTTP/1.0
Content-Type: application/json;charset=UTF-8
{
"from": "https://some-gerrit-server:8080",
"user": "myUser",
"pass": "myPassword",
"projects": [
"myProject",
"myOtherProject"
]
}
The ProjectInput entity contains information about projects that should be imported.
Part of Gerrit Code Review