mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 14:47:38 +01:00
Fix the swagger API definition
Signed-off-by: Quentin Gliech <quentingliech@gmail.com>
This commit is contained in:
parent
d663796b3d
commit
817587741f
@ -333,10 +333,10 @@ paths:
|
|||||||
description: Illegal format of provided ID value.
|
description: Illegal format of provided ID value.
|
||||||
'401':
|
'401':
|
||||||
description: User need to log in first.
|
description: User need to log in first.
|
||||||
'404':
|
|
||||||
description: Project ID does not exist.
|
|
||||||
'403':
|
'403':
|
||||||
description: User does not have permission to get summary of the project.
|
description: User does not have permission to get summary of the project.
|
||||||
|
'404':
|
||||||
|
description: Project ID does not exist.
|
||||||
'500':
|
'500':
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
'/projects/{project_id}/metadatas':
|
'/projects/{project_id}/metadatas':
|
||||||
@ -2380,10 +2380,10 @@ paths:
|
|||||||
$ref: '#/definitions/Namespace'
|
$ref: '#/definitions/Namespace'
|
||||||
'401':
|
'401':
|
||||||
description: User need to login first.
|
description: User need to login first.
|
||||||
'404':
|
|
||||||
description: No registry found.
|
|
||||||
'403':
|
'403':
|
||||||
description: User has no privilege for the operation.
|
description: User has no privilege for the operation.
|
||||||
|
'404':
|
||||||
|
description: No registry found.
|
||||||
'500':
|
'500':
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
/internal/syncregistry:
|
/internal/syncregistry:
|
||||||
@ -3684,7 +3684,7 @@ paths:
|
|||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
'/projects/{project_id}/webhook/policies':
|
'/projects/{project_id}/webhook/policies':
|
||||||
get:
|
get:
|
||||||
sumary: List project webhook policies.
|
summary: List project webhook policies.
|
||||||
description: |
|
description: |
|
||||||
This endpoint returns webhook policies of a project.
|
This endpoint returns webhook policies of a project.
|
||||||
parameters:
|
parameters:
|
||||||
@ -3712,7 +3712,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
post:
|
post:
|
||||||
sumary: Create project webhook policy.
|
summary: Create project webhook policy.
|
||||||
description: |
|
description: |
|
||||||
This endpoint create a webhook policy if the project does not have one.
|
This endpoint create a webhook policy if the project does not have one.
|
||||||
parameters:
|
parameters:
|
||||||
@ -3757,7 +3757,7 @@ paths:
|
|||||||
in: path
|
in: path
|
||||||
description: The id of webhook policy.
|
description: The id of webhook policy.
|
||||||
required: true
|
required: true
|
||||||
type: int64
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
tags:
|
tags:
|
||||||
- Products
|
- Products
|
||||||
@ -3791,7 +3791,7 @@ paths:
|
|||||||
in: path
|
in: path
|
||||||
description: The id of webhook policy.
|
description: The id of webhook policy.
|
||||||
required: true
|
required: true
|
||||||
type: int64
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
- name: policy
|
- name: policy
|
||||||
in: body
|
in: body
|
||||||
@ -3829,7 +3829,7 @@ paths:
|
|||||||
in: path
|
in: path
|
||||||
description: The id of webhook policy.
|
description: The id of webhook policy.
|
||||||
required: true
|
required: true
|
||||||
type: int64
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
tags:
|
tags:
|
||||||
- Products
|
- Products
|
||||||
@ -3908,7 +3908,7 @@ paths:
|
|||||||
description: Internal server errors.
|
description: Internal server errors.
|
||||||
'/projects/{project_id}/webhook/jobs':
|
'/projects/{project_id}/webhook/jobs':
|
||||||
get:
|
get:
|
||||||
sumary: List project webhook jobs
|
summary: List project webhook jobs
|
||||||
description: |
|
description: |
|
||||||
This endpoint returns webhook jobs of a project.
|
This endpoint returns webhook jobs of a project.
|
||||||
parameters:
|
parameters:
|
||||||
@ -5724,7 +5724,7 @@ definitions:
|
|||||||
description: The webhook job ID.
|
description: The webhook job ID.
|
||||||
policy_id:
|
policy_id:
|
||||||
type: integer
|
type: integer
|
||||||
fromat: int64
|
format: int64
|
||||||
description: The webhook policy ID.
|
description: The webhook policy ID.
|
||||||
event_type:
|
event_type:
|
||||||
type: string
|
type: string
|
||||||
|
Loading…
Reference in New Issue
Block a user