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

REST API: Consistent get field mapping response #4822

Conversation

spinscale
Copy link
Contributor

If a get field mapping request is issued, and all but the field can be
found, the response should return an empty JSON object instead of a 404.

Closes #4738

@@ -88,6 +97,7 @@ public void onResponse(GetFieldMappingsResponse response) {

@Override
public void onFailure(Throwable e) {
logger.error("OnFailure", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a leftover?

@s1monw
Copy link
Contributor

s1monw commented Jan 27, 2014

left one small comment! really good solution - thanks for the extra iteration!

LGTM

If a get field mapping request is issued, and all but the field can be
found, the response should return an empty JSON object instead of a 404.

Closes elastic#4738
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.

Consistent REST Get Field Mapping API
3 participants