@PLUGIN@ - /config/ REST API

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.

Importer Endpoints

Import Project

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.

Request

  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"
    ]
  }

JSON Entities

ProjectInput

The ProjectInput entity contains information about projects that should be imported.

  • from: URL of the remote system from where the project should be imported.
  • user: User on remote system.
  • pass: Password of remote user.
  • projects: The names of the projects to be imported as a list.

SEE ALSO

GERRIT

Part of Gerrit Code Review