mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 19:44:13 +00:00
Update swagger.yaml
yaml key "/projects/{project_id}/members/" duplicated. move get and post block in same "/projects/{project_id}/members/" key
This commit is contained in:
parent
683b5ead2a
commit
e4a7fa0435
@ -215,6 +215,39 @@ paths:
|
|||||||
description: Project ID does not exist.
|
description: Project ID does not exist.
|
||||||
500:
|
500:
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
|
post:
|
||||||
|
summary: Add project role member accompany with relevant project and user.
|
||||||
|
description: |
|
||||||
|
This endpoint is for user to add project role member accompany with relevant project and user.
|
||||||
|
parameters:
|
||||||
|
- name: project_id
|
||||||
|
in: path
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
|
required: true
|
||||||
|
description: Relevant project ID.
|
||||||
|
- name: roles
|
||||||
|
in: body
|
||||||
|
description: Role members for adding to relevant project.
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/RoleParam'
|
||||||
|
tags:
|
||||||
|
- Products
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Role members added to relevant project successfully.
|
||||||
|
400:
|
||||||
|
description: Illegal format of provided ID value.
|
||||||
|
401:
|
||||||
|
description: User need to log in first.
|
||||||
|
403:
|
||||||
|
description: User in session does not have permission to the project.
|
||||||
|
404:
|
||||||
|
description: Project ID or username does not exist.
|
||||||
|
409:
|
||||||
|
description: User has already added as a project role member.
|
||||||
|
500:
|
||||||
|
description: Unexpected internal errors.
|
||||||
/projects/{project_id}/members/{user_id}:
|
/projects/{project_id}/members/{user_id}:
|
||||||
get:
|
get:
|
||||||
summary: Return role members accompany with relevant project and user.
|
summary: Return role members accompany with relevant project and user.
|
||||||
@ -321,40 +354,6 @@ paths:
|
|||||||
description: Project ID does not exist.
|
description: Project ID does not exist.
|
||||||
500:
|
500:
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
/projects/{project_id}/members/:
|
|
||||||
post:
|
|
||||||
summary: Add project role member accompany with relevant project and user.
|
|
||||||
description: |
|
|
||||||
This endpoint is for user to add project role member accompany with relevant project and user.
|
|
||||||
parameters:
|
|
||||||
- name: project_id
|
|
||||||
in: path
|
|
||||||
type: integer
|
|
||||||
format: int32
|
|
||||||
required: true
|
|
||||||
description: Relevant project ID.
|
|
||||||
- name: roles
|
|
||||||
in: body
|
|
||||||
description: Role members for adding to relevant project.
|
|
||||||
schema:
|
|
||||||
$ref: '#/definitions/RoleParam'
|
|
||||||
tags:
|
|
||||||
- Products
|
|
||||||
responses:
|
|
||||||
200:
|
|
||||||
description: Role members added to relevant project successfully.
|
|
||||||
400:
|
|
||||||
description: Illegal format of provided ID value.
|
|
||||||
401:
|
|
||||||
description: User need to log in first.
|
|
||||||
403:
|
|
||||||
description: User in session does not have permission to the project.
|
|
||||||
404:
|
|
||||||
description: Project ID or username does not exist.
|
|
||||||
409:
|
|
||||||
description: User has already added as a project role member.
|
|
||||||
500:
|
|
||||||
description: Unexpected internal errors.
|
|
||||||
/users:
|
/users:
|
||||||
get:
|
get:
|
||||||
summary: Get registered users of Harbor.
|
summary: Get registered users of Harbor.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user