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 version parameter to index template. #27135

Closed
wants to merge 1 commit into from
Closed

Conversation

codebrain
Copy link
Contributor

Cross reference from: elastic/elasticsearch-net#2880

@coelacanth16
Copy link

Thanks guys! Can I piggy-back this same request (if you haven't already) for the accompanying IGetIndexTemplateResponse to GetIndexTemplate to include version? (if that is indeed the proper place for it)

@@ -33,6 +33,10 @@
"flat_settings": {
"type": "boolean",
"description": "Return settings in flat format (default: false)"
},
"version": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe I am missing something, but I don't think we support version as a URL parameter. We do support it in the body of the template, but not on URL. And now that I am thinking about it we don't support flat_settings here either. So, we should probably remove it.

Copy link
Member

Choose a reason for hiding this comment

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

I think that we do not support timeout either. But we support cause which is not listed in the spec. Also I am confused by template and index_patterns which are not specified in the spec. I guess we are missing some test coverage here as well, otherwise tests for these params would fail.

@codebrain
Copy link
Contributor Author

My mistake, we do not need version in the url, we can include in the body,

Closing PR

@codebrain codebrain deleted the codebrain-patch-1 branch December 20, 2017 07:46
@clintongormley clintongormley added :Data Management/Indices APIs APIs to create and manage indices and templates and removed :Index Templates labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/REST API REST infrastructure and utilities :Data Management/Indices APIs APIs to create and manage indices and templates >non-issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants