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

Remove status code from main action / #8865

Closed

Conversation

dadoonet
Copy link
Member

Today we give the HTTP status back within the HTTP response itself and within the JSON response as well:

curl localhost:9200/
{
  "status" : 200,
  "name" : "Red Wolf",
  "version" : {
    "number" : "2.0.0",
    "build_hash" : "6837a61d8a646a2ac7dc8da1ab3c4ab85d60882d",
    "build_timestamp" : "2014-08-19T13:55:56Z",
    "build_snapshot" : true,
    "lucene_version" : "4.9"
  },
  "tagline" : "You Know, for Search"
}

We can remove the status in elasticsearch 2.0.

@dadoonet
Copy link
Member Author

Wondering if it should be listed in breaking changes?

@@ -72,7 +72,6 @@ public void handleRequest(final RestRequest request, RestChannel channel, final
}

builder.startObject();
builder.field("status", status.getStatus());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a JAVA API equivalent to this? if so we should update that too so the two are consistent with each other?

Copy link
Member Author

Choose a reason for hiding this comment

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

@colings86 I did not find any Java equivalent to GET /.

@colings86
Copy link
Contributor

LGTM

@dadoonet
Copy link
Member Author

dadoonet commented Jan 5, 2015

@clintongormley Do you think this should be listed as a breaking change?
I think so though it's a minor thing IMO.

@clintongormley
Copy link

@dadoonet yes

@dadoonet
Copy link
Member Author

dadoonet commented Jan 5, 2015

@colings86 @clintongormley I added a section in migrate_2_0.asciidoc. Could you review my english please? :D

@dadoonet dadoonet force-pushed the cleanup/remove-status-main-action branch from c0c5c26 to 237ef3e Compare January 12, 2015 11:16
Today we give the HTTP status back within the HTTP response itself and within the JSON response as well:

```sh
curl localhost:9200/
```

```js
{
  "status" : 200,
  "name" : "Red Wolf",
  "version" : {
    "number" : "2.0.0",
    "build_hash" : "6837a61d8a646a2ac7dc8da1ab3c4ab85d60882d",
    "build_timestamp" : "2014-08-19T13:55:56Z",
    "build_snapshot" : true,
    "lucene_version" : "4.9"
  },
  "tagline" : "You Know, for Search"
}
```
@dadoonet dadoonet force-pushed the cleanup/remove-status-main-action branch from 237ef3e to e2bcef7 Compare January 12, 2015 11:16
@dadoonet
Copy link
Member Author

Merged with 0526459

@dadoonet dadoonet closed this Jan 12, 2015
@dadoonet dadoonet deleted the cleanup/remove-status-main-action branch January 12, 2015 11:39
@dadoonet dadoonet restored the cleanup/remove-status-main-action branch January 12, 2015 11:39
@dadoonet dadoonet deleted the cleanup/remove-status-main-action branch January 12, 2015 11:39
@clintongormley clintongormley changed the title Rest: remove status code from main action Remove status code from main action / Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Core/Infra/REST API REST infrastructure and utilities v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants