mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-05 00:37:32 +02:00
add api/users/current to swagger.yaml
This commit is contained in:
parent
99223fc29f
commit
a0fc5a132e
@ -507,6 +507,21 @@ paths:
|
|||||||
description: User registration can only be used by admin role user when self-registration is off.
|
description: User registration can only be used by admin role user when self-registration is off.
|
||||||
500:
|
500:
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
|
/users/current:
|
||||||
|
get:
|
||||||
|
summary: Get current user info.
|
||||||
|
description: |
|
||||||
|
This endpoint is to get the current user infomation.
|
||||||
|
tags:
|
||||||
|
- Products
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Get current user information successfully.
|
||||||
|
in: body
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/User'
|
||||||
|
401:
|
||||||
|
description: User need to log in first.
|
||||||
/users/{user_id}:
|
/users/{user_id}:
|
||||||
put:
|
put:
|
||||||
summary: Update a registered user to change his profile.
|
summary: Update a registered user to change his profile.
|
||||||
|
Loading…
Reference in New Issue
Block a user