GET PUT DELETE Rest endpoints for change Assignee field

changes/<change-id>/assignee

GET returns an AccountInfo:
{
  "_account_id": 1000000,
  "email": "user@gerrit.com",
  "username": "user"
}

PUT takes an account identifier: name-email, email, full name, "self" and
returns an AccountInfo for the user that is assigned after the call.

Change-Id: Icce1be90c6c9558950502fe24435317e8372bb64
This commit is contained in:
Sven Selberg
2016-09-13 17:16:50 +02:00
committed by David Pursehouse
parent c11657426a
commit 076b5c8309
12 changed files with 436 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.extensions.api.changes;
import com.google.gerrit.extensions.restapi.DefaultInput;
public class AssigneeInput {
@DefaultInput
public String assignee;
}

View File

@@ -28,6 +28,7 @@ public class ChangeInfo {
public String project;
public String branch;
public String topic;
public AccountInfo assignee;
public Collection<String> hashtags;
public String changeId;
public String subject;