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 a REST spec for the create API #20924

Merged
merged 1 commit into from
Oct 17, 2016
Merged

Add a REST spec for the create API #20924

merged 1 commit into from
Oct 17, 2016

Conversation

clintongormley
Copy link

The create request now requires that an ID be present.
Currently the clients hard code a create method, but
we should just add a create REST spec so this method
can be autogenerated.

The create request now requires that an ID be present.
Currently the clients hard code a create method, but
we should just add a create REST spec so this method
can be autogenerated.
@clintongormley clintongormley added >enhancement review :Core/Infra/REST API REST infrastructure and utilities labels Oct 13, 2016
Copy link
Contributor

@bleskes bleskes left a comment

Choose a reason for hiding this comment

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

LGTM. Left a minor question

{
"create": {
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html",
"methods": ["PUT"],
Copy link
Contributor

Choose a reason for hiding this comment

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

we also except POST here in the java code. Not sure what the convention is though - do we want to be "correct" or reflect what he java does?

Copy link
Author

Choose a reason for hiding this comment

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

I'll add POST, thanks for the review

@clintongormley
Copy link
Author

/cc @elastic/es-clients

@clintongormley clintongormley merged commit aa9cedc into 5.0 Oct 17, 2016
clintongormley added a commit that referenced this pull request Oct 17, 2016
The create request now requires that an ID be present.
Currently the clients hard code a create method, but
we should just add a create REST spec so this method
can be autogenerated.
clintongormley added a commit that referenced this pull request Oct 17, 2016
The create request now requires that an ID be present.
Currently the clients hard code a create method, but
we should just add a create REST spec so this method
can be autogenerated.
clintongormley added a commit that referenced this pull request Oct 17, 2016
clintongormley added a commit that referenced this pull request Oct 17, 2016
clintongormley added a commit that referenced this pull request Oct 17, 2016
javanna added a commit to javanna/elasticsearch that referenced this pull request Oct 19, 2016
Now that the create api has its own spec, we can remove the special case in the yaml test client for it

Relates to elastic#20924
javanna added a commit that referenced this pull request Oct 20, 2016
Now that the create api has its own spec, we can remove the special case in the yaml test client for it

Relates to #20924
javanna added a commit that referenced this pull request Oct 20, 2016
Now that the create api has its own spec, we can remove the special case in the yaml test client for it

Relates to #20924
javanna added a commit that referenced this pull request Oct 20, 2016
Now that the create api has its own spec, we can remove the special case in the yaml test client for it

Relates to #20924
@colings86 colings86 deleted the create_spec branch May 27, 2020 07:41
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.

2 participants