mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-05 00:37:32 +02:00
pass on the swagger editor check.
This commit is contained in:
parent
73fe2a30d6
commit
c7da848dd5
@ -388,36 +388,12 @@ paths:
|
|||||||
description: |
|
description: |
|
||||||
This endpoint is to create a user if the user does not already exist.
|
This endpoint is to create a user if the user does not already exist.
|
||||||
parameters:
|
parameters:
|
||||||
- name: username
|
- name: user
|
||||||
in: body
|
in: body
|
||||||
type: string
|
description: New created user.
|
||||||
format: string
|
|
||||||
required: true
|
required: true
|
||||||
description: The username of the new created user. Maximum of 20 characters.
|
schema:
|
||||||
- name: password
|
$ref: '#/definitions/User'
|
||||||
in: body
|
|
||||||
type: string
|
|
||||||
format: string
|
|
||||||
required: true
|
|
||||||
description: The password of the new created user. Maximum of 20 characters.
|
|
||||||
- name: email
|
|
||||||
in: body
|
|
||||||
type: string
|
|
||||||
format: string
|
|
||||||
required: true
|
|
||||||
description: Publicly visible email address of the new created user.
|
|
||||||
- name: realname
|
|
||||||
in: body
|
|
||||||
type: string
|
|
||||||
format: string
|
|
||||||
required: true
|
|
||||||
description: Full name associated with the new created user. Maximum of 20 characters.
|
|
||||||
- name: comment
|
|
||||||
in: body
|
|
||||||
type: string
|
|
||||||
format: string
|
|
||||||
required: false
|
|
||||||
description: Comments associated with the new created user. Maximum of 30 characters.
|
|
||||||
tags:
|
tags:
|
||||||
- Products
|
- Products
|
||||||
responses:
|
responses:
|
||||||
@ -488,9 +464,7 @@ paths:
|
|||||||
put:
|
put:
|
||||||
summary: Change the password on a user that already exists.
|
summary: Change the password on a user that already exists.
|
||||||
description: |
|
description: |
|
||||||
This endpoint is for user to update password. Users with the admin
|
This endpoint is for user to update password. Users with the admin role can change any user's password. Guest users can change only their own password.
|
||||||
role can change any user's password. Guest users can change only
|
|
||||||
their own password.
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: user_id
|
- name: user_id
|
||||||
in: path
|
in: path
|
||||||
@ -498,18 +472,12 @@ paths:
|
|||||||
format: int32
|
format: int32
|
||||||
required: true
|
required: true
|
||||||
description: Registered user ID.
|
description: Registered user ID.
|
||||||
- name: old_password
|
- name: password
|
||||||
in: body
|
in: body
|
||||||
type: string
|
description: New updated password.
|
||||||
format: string
|
|
||||||
required: true
|
required: true
|
||||||
description: The user's existing password.
|
schema:
|
||||||
- name: new_password
|
$ref: '#/definitions/Password'
|
||||||
in: body
|
|
||||||
type: string
|
|
||||||
format: string
|
|
||||||
required: true
|
|
||||||
description: New password for marking as to be updated.
|
|
||||||
tags:
|
tags:
|
||||||
- Products
|
- Products
|
||||||
responses:
|
responses:
|
||||||
@ -725,6 +693,15 @@ definitions:
|
|||||||
deleted:
|
deleted:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
Password:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
old_password:
|
||||||
|
type: string
|
||||||
|
description: The user's existing password.
|
||||||
|
new_password:
|
||||||
|
type: string
|
||||||
|
description: New password for marking as to be updated.
|
||||||
AccessLog:
|
AccessLog:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
Loading…
Reference in New Issue
Block a user