mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 08:38:03 +01:00
Add post response for robot account API (#6906)
This commit is to do: 1, Add post response on creating robot account 2, Lower-case the attribute of response Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
161f2127e2
commit
e9556a4cec
@ -3232,6 +3232,8 @@ paths:
|
||||
responses:
|
||||
'201':
|
||||
description: Project member created successfully.
|
||||
schema:
|
||||
$ref: '#/definitions/RobotAccountPostRep'
|
||||
'400':
|
||||
description: Project id is not valid.
|
||||
'401':
|
||||
@ -4774,6 +4776,15 @@ definitions:
|
||||
description: The permission of robot account
|
||||
items:
|
||||
$ref: '#/definitions/RobotAccountAccess'
|
||||
RobotAccountPostRep:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: the name of robot account
|
||||
token:
|
||||
type: string
|
||||
description: the token of robot account
|
||||
RobotAccountAccess:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -59,8 +59,8 @@ func (rq *RobotReq) Valid(v *validation.Validation) {
|
||||
|
||||
// RobotRep ...
|
||||
type RobotRep struct {
|
||||
Name string
|
||||
Token string
|
||||
Name string `json:"name"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
// TableName ...
|
||||
|
Loading…
Reference in New Issue
Block a user