You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "John Speidel (JIRA)" <ji...@apache.org> on 2013/02/12 20:25:12 UTC
[jira] [Created] (AMBARI-1415) Improve partial response syntax to
be more concise
John Speidel created AMBARI-1415:
------------------------------------
Summary: Improve partial response syntax to be more concise
Key: AMBARI-1415
URL: https://issues.apache.org/jira/browse/AMBARI-1415
Project: Ambari
Issue Type: Sub-task
Reporter: John Speidel
Assignee: John Speidel
Fix For: 1.3.0
The current partial response syntax can be very verbose in some cases. This can be greatly improved by allowing properties in the same category to be nested within that category, therefore removing the need to specify the whole category path for each property. This is similar to the syntax that is used in the "IN" query operator.
For example consider the following partial response string:
?fields=category1/category2/foo,category1/category2/bar,category1/category2/foobar
If we wanted to return all of the properties for the category category1/category2, we could simply specify the category in the partial response: ?fields=category1/category2
But, if this category contained a large number of properties and we only wanted to include some of them, they would have to be specified individually as shown above.
An example of a more concise format for the above partial response string:
?fields=category1/category2(foo,bar,foobar)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira