[ https://issues.apache.org/jira/browse/IGNITE-9487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16614568#comment-16614568 ]
ASF GitHub Bot commented on IGNITE-9487: ---------------------------------------- GitHub user alamar opened a pull request: https://github.com/apache/ignite/pull/4756 IGNITE-9487 Introduce IGNITE_REST_GETALL_KEY_VALUE to change getall output format. Second take You can merge this pull request into a Git repository by running: $ git pull https://github.com/gridgain/apache-ignite ignite-9487bis Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/4756.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4756 ---- commit b1b9ee2c32357f8919379e9b2d1606196eb42999 Author: Ilya Kasnacheev <ilya.kasnacheev@...> Date: 2018-09-14T09:21:29Z IGNITE-9487 Introduce IGNITE_REST_GETALL_KEY_VALUE to change getall output format. ---- > REST: getall can only output keys as scalars > -------------------------------------------- > > Key: IGNITE-9487 > URL: https://issues.apache.org/jira/browse/IGNITE-9487 > Project: Ignite > Issue Type: Improvement > Components: rest > Reporter: Ilya Kasnacheev > Assignee: Ilya Kasnacheev > Priority: Major > > Regardless of what ConnectorMessageInterceptor does, `getall' command can > only output key as string or number, and not as JSON object as values can. > This is because output format is as follows: > {code} > {"successStatus":0,"affinityNodeId":null,"sessionToken":null,"response":{"CustomType > [idHash=1588995554, hash=34706515, key=111]":{"val":"111"},"CustomType > [idHash=978025370, hash=30386820, key=222]":{"val":"222"}},"error":null} > {code} > The desired output format may look like: > {code} > {"successStatus":0,"affinityNodeId":null,"sessionToken":null,"response":[{"key":{"key":111},"value":{"val":"111"}},{"key":{"key":222},"value":{"val":"222"}}],"error":null} > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)