Skip to content

Document deploy cancel #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 151 additions & 0 deletions go/plumbing/operations/cancel_site_deploy_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 118 additions & 0 deletions go/plumbing/operations/cancel_site_deploy_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions go/plumbing/operations/operations_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,26 @@ paths:
$ref: '#/definitions/deploy'
default:
$ref: '#/responses/error'
/sites/{site_id}/deploys/{deploy_id}/cancel:
Copy link
Contributor

@kitop kitop Mar 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late to the party, but URL for this is /deploys/{deploy_id}/cancel. with /sites/{site_id} will give a 404 :(

post:
operationId: cancelSiteDeploy
tags: [deploy]
parameters:
- name: site_id
type: string
in: path
required: true
- name: deploy_id
type: string
in: path
required: true
responses:
'201':
description: Cancelled
schema:
$ref: '#/definitions/deploy'
default:
$ref: '#/responses/error'
/sites/{site_id}/deploys/{deploy_id}/restore:
post:
operationId: restoreSiteDeploy
Expand Down
Loading