Update swagger.yaml

update repo_id
This commit is contained in:
yhua123 2016-08-12 15:12:35 +08:00 committed by GitHub
parent b8eafdc74c
commit fbd0c03b93

View File

@ -815,13 +815,13 @@ paths:
description: Project ID does not exist. description: Project ID does not exist.
500: 500:
description: Unexpected internal errors. description: Unexpected internal errors.
/jobs/replication/{repo_id}/log: /jobs/replication/{id}/log:
get: get:
summary: Get job logs accompany with a relevant repository. summary: Get job logs.
description: | description: |
This endpoint let user search job logs filtered by repository ID. This endpoint let user search job logs filtered by specific ID.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
@ -896,18 +896,18 @@ paths:
description: Policy name already used or policy already exists with the same project and target. description: Policy name already used or policy already exists with the same project and target.
500: 500:
description: Unexpected internal errors. description: Unexpected internal errors.
/policies/replication/{repo_id}: /policies/replication/{id}:
get: get:
summary: Get replication policy accompany with a relevant repository. summary: Get replication policy.
description: | description: |
This endpoint let user search replication policy by repository ID. This endpoint let user search replication policy by specific ID.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
required: true required: true
description: Relevant repository ID description: policy ID
tags: tags:
- Products - Products
responses: responses:
@ -926,12 +926,12 @@ paths:
description: | description: |
This endpoint let user update policy name, description, target and enablement. This endpoint let user update policy name, description, target and enablement.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
required: true required: true
description: Relevant repository ID description: policy ID
- name: policyupdate - name: policyupdate
in: body in: body
description: Update policy name, description, target and enablement. description: Update policy name, description, target and enablement.
@ -953,18 +953,18 @@ paths:
description: Policy name already used or policy already exists with the same project and target. description: Policy name already used or policy already exists with the same project and target.
500: 500:
description: Unexpected internal errors. description: Unexpected internal errors.
/policies/replication/{repo_id}/enablement: /policies/replication/{id}/enablement:
put: put:
summary: Put modifies enablement of the policy. summary: Put modifies enablement of the policy.
description: | description: |
This endpoint let user update policy enablement flag. This endpoint let user update policy enablement flag.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
required: true required: true
description: Relevant repository ID description: policy ID
- name: enabledflag - name: enabledflag
in: body in: body
description: The policy enablement flag. description: The policy enablement flag.
@ -1057,13 +1057,13 @@ paths:
description: Target not found. description: Target not found.
500: 500:
description: Unexpected internal errors. description: Unexpected internal errors.
/targets/{repo_id}: /targets/{id}:
put: put:
summary: Update replication's target. summary: Update replication's target.
description: | description: |
This endpoint is for update specific replication's target. This endpoint is for update specific replication's target.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
@ -1096,7 +1096,7 @@ paths:
tags: tags:
- Products - Products
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
@ -1120,7 +1120,7 @@ paths:
description: | description: |
This endpoint is for to delete specific replication's target. This endpoint is for to delete specific replication's target.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64
@ -1139,13 +1139,13 @@ paths:
description: Replication's target does not exist. description: Replication's target does not exist.
500: 500:
description: Unexpected internal errors. description: Unexpected internal errors.
/targets/{repo_id}/policies/: /targets/{id}/policies/:
get: get:
summary: List the target relevant policies. summary: List the target relevant policies.
description: | description: |
This endpoint list policies filter with specific replication's target ID. This endpoint list policies filter with specific replication's target ID.
parameters: parameters:
- name: repo_id - name: id
in: path in: path
type: integer type: integer
format: int64 format: int64