Skip to content
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

Modified backup API documentation to reflect v2 changes #306

Merged
merged 4 commits into from
Apr 16, 2019

Conversation

skmistry
Copy link
Contributor

In this check-in, modified backup API documentation per #5781

  • README file was missing some instructions to get API docs running locally. Added those details.

  • Modified ServerBackup object details to reflect the recent v2 changes

  • Modified API doc to reflect request, response payload, header details as per v2 changes

@ghost
Copy link

ghost commented Apr 16, 2019

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ msaurabh1978
❌ Saurabh Kishore Mistry


Saurabh Kishore Mistry seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.


<%=
available_since('15.2.0') do
<%= available_since('19.3.0') do

Choose a reason for hiding this comment

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

We should add 15.2.0 with the link https://api.gocd.org/15.2.0/#backups to the list below for users to refer to v1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment incorporated.

@@ -1,20 +1,35 @@
## Create a backup
## Schedules backup asynchronously.

Choose a reason for hiding this comment

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

For consistency, I think we should call this heading Schedule Backup (and without the . at the end)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment incorporated.

Returns an empty response body with a response code 202 (Accepted) and location header containing the link to be polled for checking the status of the backup.
</p>

`GET /go/api/backups/:scheduled_backup_id`

Choose a reason for hiding this comment

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

I think the GET endpoint should be in a sidebar heading of its own, since it's a separate endpoint.

I would also prefer to call the parameter :backup_id instead of :scheduled_backup_id, since we can use an ID to also GET older backups.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment incorporated.

@skmistry skmistry merged commit 1a69fdb into gocd:master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants