You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Weiwei Yang (JIRA)" <ji...@apache.org> on 2017/06/26 14:49:00 UTC

[jira] [Created] (HDFS-12037) Ozone: Improvement rest API output format for better looking

Weiwei Yang created HDFS-12037:
----------------------------------

             Summary: Ozone: Improvement rest API output format for better looking
                 Key: HDFS-12037
                 URL: https://issues.apache.org/jira/browse/HDFS-12037
             Project: Hadoop HDFS
          Issue Type: Sub-task
          Components: ozone
            Reporter: Weiwei Yang
            Assignee: Weiwei Yang


Right now ozone rest api output is displayed as a raw json string in single line, not quite human readable,

{noformat}
{"volumes":[{"owner":{"name":"wwei"},"quota":{"unit":"GB","size":200},"volumeName":"volume-aug-1","createdOn":null,"createdBy":null}]}

{noformat}

propose to improve the output format by pretty printer

{noformat}
{
  "volumes" : [ {
    "owner" : {
      "name" : "wwei"
    },
    "quota" : {
      "unit" : "GB",
      "size" : 200
    },
    "volumeName" : "volume-aug-1",
    "createdOn" : null,
    "createdBy" : null
  } ]
}
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org