Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-9487

REST: getall can only output keys as scalars

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Component/s: rest
    • Labels:
      None
    • Ignite Flags:
      Docs Required

      Description

      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:

      {"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}
      

      The desired output format may look like:

      {"successStatus":0,"affinityNodeId":null,"sessionToken":null,"response":[{"key":{"key":111},"value":{"val":"111"}},{"key":{"key":222},"value":{"val":"222"}}],"error":null}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ilyak Ilya Kasnacheev
                Reporter:
                ilyak Ilya Kasnacheev
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: