Skip to content

[DOCS] Adding get snapshot API docs#59098

Merged
lockewritesdocs merged 13 commits intoelastic:masterfrom
lockewritesdocs:docs__get-snapshot-api-docs
Jul 8, 2020
Merged

[DOCS] Adding get snapshot API docs#59098
lockewritesdocs merged 13 commits intoelastic:masterfrom
lockewritesdocs:docs__get-snapshot-api-docs

Conversation

@lockewritesdocs
Copy link
Copy Markdown
Contributor

@lockewritesdocs lockewritesdocs commented Jul 6, 2020

@lockewritesdocs lockewritesdocs added >docs General docs changes :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0 Team:Distributed Meta label for distributed team. Team:Docs Meta label for docs team v7.8.1 v7.9.0 labels Jul 6, 2020
@lockewritesdocs lockewritesdocs self-assigned this Jul 6, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-docs (>docs)

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@lockewritesdocs
Copy link
Copy Markdown
Contributor Author

@original-brownbear, I see that multiple snapshot support is added in 8.0, so I will revise the <repository> description accordingly for 7.x and 7.8.

@original-brownbear
Copy link
Copy Markdown
Contributor

@original-brownbear, I see that multiple snapshot support is added in 8.0, so I will revise the description accordingly for 7.x and 7.8.

Correct thanks.

BTW, seems there's some doc tests issue here can you take a look?

Copy link
Copy Markdown
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

Aside from some issues with the response format, this look good overall.

I'd consider adding documentation for the response parameters as those are
the main point of a get API. I left some links and suggestions on fixing the CI tests.
The other feedback consist of nits you can take/ignore as you see fit.

Adam Locke and others added 5 commits July 7, 2020 10:19
Co-authored-by: James Rodewig <james.rodewig@elastic.co>
Co-authored-by: James Rodewig <james.rodewig@elastic.co>
Co-authored-by: James Rodewig <james.rodewig@elastic.co>
Co-authored-by: James Rodewig <james.rodewig@elastic.co>
+
If `false`, omits additional information about the snapshot, such as version information, start and end times, and the number of snapshotted shards.

[role="child-attributes"]
Copy link
Copy Markdown
Contributor Author

@lockewritesdocs lockewritesdocs Jul 7, 2020

Choose a reason for hiding this comment

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

@original-brownbear, can you please review the response body parameters that I added in lines 87-157?

@jrodewig jrodewig dismissed their stale review July 7, 2020 23:18

Stale review

Copy link
Copy Markdown
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

One point, on the response statuses

Co-authored-by: James Rodewig <james.rodewig@elastic.co>
Adam Locke and others added 2 commits July 8, 2020 08:50
Copy link
Copy Markdown
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for iterating on this.

@lockewritesdocs lockewritesdocs merged commit b2beb9c into elastic:master Jul 8, 2020
@lockewritesdocs lockewritesdocs deleted the docs__get-snapshot-api-docs branch July 8, 2020 15:28
lockewritesdocs pushed a commit to lockewritesdocs/elasticsearch that referenced this pull request Jul 8, 2020
* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.
@lockewritesdocs lockewritesdocs restored the docs__get-snapshot-api-docs branch July 8, 2020 16:37
@lockewritesdocs lockewritesdocs deleted the docs__get-snapshot-api-docs branch July 8, 2020 20:14
lockewritesdocs pushed a commit that referenced this pull request Jul 8, 2020
* [DOCS] Adding get snapshot API docs (#59098)

* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.

* Removing multi-snapshot support for 7.x.

* Changing end_time value from build error.

* Removing .response from snippet testing.
lockewritesdocs pushed a commit to lockewritesdocs/elasticsearch that referenced this pull request Jul 8, 2020
* [DOCS] Adding get snapshot API docs (elastic#59098)

* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.

* Removing multi-snapshot support for 7.x.

* Changing end_time value from build error.

* Removing .response from snippet testing.
lockewritesdocs pushed a commit that referenced this pull request Jul 8, 2020
* [7.x] [DOCS] Adding get snapshot api docs (#59238)

* [DOCS] Adding get snapshot API docs (#59098)

* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.

* Removing multi-snapshot support for 7.x.

* Changing end_time value from build error.

* Removing .response from snippet testing.

* Removing data streams for 7.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >docs General docs changes Team:Distributed Meta label for distributed team. Team:Docs Meta label for docs team v7.8.1 v7.9.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants