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

Add the documentation of create or update alias API #7641

Merged
merged 14 commits into from
Jul 23, 2024

Conversation

gaobinlong
Copy link
Contributor

@gaobinlong gaobinlong commented Jul 8, 2024

Description

Document the usage of the create or update alias API, which was introduced in 1.0.

Issues Resolved

Closes #7640

Version

All versions.

Frontend features

If you're submitting documentation for an OpenSearch Dashboards feature, add a video that shows how a user will interact with the UI step by step. A voiceover is optional.

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
@gaobinlong
Copy link
Contributor Author

@Naarcha-AWS Thanks for your review, I've modified the documentation yet, thank you!

@Naarcha-AWS Naarcha-AWS added 5 - Editorial review PR: Editorial review in progress and removed 4 - Doc review PR: Doc review in progress labels Jul 18, 2024
@Naarcha-AWS
Copy link
Collaborator

@gaobinlong: I took another glance at the Index APIs and discovered we already have a page on aliases. https://opensearch.org/docs/latest/api-reference/index-apis/alias/

Do you want to add your changes on top of that page?

@gaobinlong
Copy link
Contributor Author

@gaobinlong: I took another glance at the Index APIs and discovered we already have a page on aliases. https://opensearch.org/docs/latest/api-reference/index-apis/alias/

Do you want to add your changes on top of that page?

They are different APIs, actually there's some ambiguity between them, so this PR aims to eliminate the ambiguity.

@Naarcha-AWS
Copy link
Collaborator

@gaobinlong: Can you clarify the ambiguities?

@Naarcha-AWS
Copy link
Collaborator

Does the Aliases API allow you to perform alias actions versus this, which allows you to create them? Does that sound correct to you @gaobinlong?

@gaobinlong
Copy link
Contributor Author

gaobinlong commented Jul 20, 2024

Does the Aliases API allow you to perform alias actions versus this, which allows you to create them? Does that sound correct to you @gaobinlong?

Aliases API supports add one or more alias, remove alias and remove index, but this API only supports add or update an alias, the http method, URL path and parameters of these two APIs are different, so I think they should be in different page.

Signed-off-by: gaobinlong <[email protected]>
@gaobinlong
Copy link
Contributor Author

@Naarcha-AWS I've added some clarification in this document, please help to take a look, thank you!

@Naarcha-AWS
Copy link
Collaborator

Thanks @gaobinlong! I adjusted the format slightly. I'll go ahead and pass this into editorial review.

Copy link
Collaborator

@natebower natebower left a comment

Choose a reason for hiding this comment

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

@gaobinlong @Naarcha-AWS Please see my comments and changes and tag me on lines 16 and 21 for approval when complete. Thanks!

@@ -0,0 +1,85 @@
---
layout: default
title: Create or update alias
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be in title case if it's the name of the API?

nav_order: 5
---

# Create or update alias
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved

## Path and HTTP methods

```
Copy link
Collaborator

Choose a reason for hiding this comment

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

json?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not for these. They are meant to be copy and pasted individually depending on what endpoint the user selects.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Naarcha-AWS Based on the API template, shouldn't this have highlighting, though? @kolchfa-aws Can you verify?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, even though the path and HTTP method are not part of JSON, we still have the json formatting tag on these for consistency.

_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
_api-reference/index-apis/update-alias.md Outdated Show resolved Hide resolved
Naarcha-AWS and others added 2 commits July 23, 2024 12:33
Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
Copy link
Collaborator

@natebower natebower left a comment

Choose a reason for hiding this comment

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

LGTM

@Naarcha-AWS Naarcha-AWS merged commit 06ef161 into opensearch-project:main Jul 23, 2024
5 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 23, 2024
* Add the documentation of create or update alias API

Signed-off-by: gaobinlong <[email protected]>

* Fix typo

Signed-off-by: gaobinlong <[email protected]>

* Refine the wording

Signed-off-by: gaobinlong <[email protected]>

* Update update-alias.md

* Fix typo

Signed-off-by: gaobinlong <[email protected]>

* Add some clarification

Signed-off-by: gaobinlong <[email protected]>

* Update update-alias.md

* Update update-alias.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>

* Update _api-reference/index-apis/update-alias.md

Signed-off-by: Nathan Bower <[email protected]>

---------

Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Nathan Bower <[email protected]>
Co-authored-by: Naarcha-AWS <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
(cherry picked from commit 06ef161)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
leanneeliatra pushed a commit to leanneeliatra/opensearch-documentation-website-forl that referenced this pull request Jul 24, 2024
…ct#7641)

* Add the documentation of create or update alias API

Signed-off-by: gaobinlong <[email protected]>

* Fix typo

Signed-off-by: gaobinlong <[email protected]>

* Refine the wording

Signed-off-by: gaobinlong <[email protected]>

* Update update-alias.md

* Fix typo

Signed-off-by: gaobinlong <[email protected]>

* Add some clarification

Signed-off-by: gaobinlong <[email protected]>

* Update update-alias.md

* Update update-alias.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>

* Update _api-reference/index-apis/update-alias.md

Signed-off-by: Nathan Bower <[email protected]>

---------

Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Nathan Bower <[email protected]>
Co-authored-by: Naarcha-AWS <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: [email protected] <[email protected]>
@natebower natebower mentioned this pull request Jul 24, 2024
1 task
sandervandegeijn pushed a commit to sandervandegeijn/documentation-website that referenced this pull request Jul 30, 2024
…ct#7641)

* Add the documentation of create or update alias API

Signed-off-by: gaobinlong <[email protected]>

* Fix typo

Signed-off-by: gaobinlong <[email protected]>

* Refine the wording

Signed-off-by: gaobinlong <[email protected]>

* Update update-alias.md

* Fix typo

Signed-off-by: gaobinlong <[email protected]>

* Add some clarification

Signed-off-by: gaobinlong <[email protected]>

* Update update-alias.md

* Update update-alias.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>

* Update _api-reference/index-apis/update-alias.md

Signed-off-by: Nathan Bower <[email protected]>

---------

Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
Signed-off-by: Nathan Bower <[email protected]>
Co-authored-by: Naarcha-AWS <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Sander van de Geijn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Editorial review PR: Editorial review in progress API backport 2.15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOC] Document create or update alias API
5 participants