Skip to content

Add the documentation of create or update alias API#7641

Merged
Naarcha-AWS merged 14 commits into
opensearch-project:mainfrom
gaobinlong:put_alias
Jul 23, 2024
Merged

Add the documentation of create or update alias API#7641
Naarcha-AWS merged 14 commits into
opensearch-project:mainfrom
gaobinlong:put_alias

Conversation

@gaobinlong
Copy link
Copy Markdown
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.

Signed-off-by: gaobinlong <gbinlong@amazon.com>
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: gaobinlong <gbinlong@amazon.com>
@gaobinlong
Copy link
Copy Markdown
Contributor Author

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

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

@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
Copy Markdown
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
Copy Markdown
Contributor

@gaobinlong: Can you clarify the ambiguities?

@Naarcha-AWS
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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 <gbinlong@amazon.com>
@gaobinlong
Copy link
Copy Markdown
Contributor Author

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

@Naarcha-AWS
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same

Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated

## Path and HTTP methods

```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

json?

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
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.

Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Comment thread _api-reference/index-apis/update-alias.md Outdated
Naarcha-AWS and others added 2 commits July 23, 2024 12:33
Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Nathan Bower <nbower@amazon.com>
Copy link
Copy Markdown
Contributor

@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
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 <gbinlong@amazon.com>

* Fix typo

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Refine the wording

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Update update-alias.md

* Fix typo

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Add some clarification

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Update update-alias.md

* Update update-alias.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>

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

Signed-off-by: Nathan Bower <nbower@amazon.com>

---------

Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Nathan Bower <nbower@amazon.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Co-authored-by: Nathan Bower <nbower@amazon.com>
(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 <gbinlong@amazon.com>

* Fix typo

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Refine the wording

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Update update-alias.md

* Fix typo

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Add some clarification

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Update update-alias.md

* Update update-alias.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>

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

Signed-off-by: Nathan Bower <nbower@amazon.com>

---------

Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Nathan Bower <nbower@amazon.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: leanne.laceybyrne@eliatra.com <leanne.laceybyrne@eliatra.com>
@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 <gbinlong@amazon.com>

* Fix typo

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Refine the wording

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Update update-alias.md

* Fix typo

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Add some clarification

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Update update-alias.md

* Update update-alias.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>

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

Signed-off-by: Nathan Bower <nbower@amazon.com>

---------

Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Signed-off-by: Nathan Bower <nbower@amazon.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: Sander van de Geijn <sandervandegeijn@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOC] Document create or update alias API

5 participants