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:

committed by
David Pursehouse

parent
c11657426a
commit
076b5c8309
@@ -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;
|
||||
}
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user