Gang Yan created GEODE-7323:
-------------------------------

             Summary: adjust the output structure of [post] rebalances
                 Key: GEODE-7323
                 URL: https://issues.apache.org/jira/browse/GEODE-7323
             Project: Geode
          Issue Type: Improvement
          Components: rest (admin)
            Reporter: Gang Yan


current:

{code:json}
{
    "statusCode": "ACCEPTED",
    "statusMessage": "Operation started.  Use the URI to check its status.",
    "links": {
        "self": 
"http://127.0.0.1:7070/management/experimental/operations/rebalances/db7404dc-d7d4-4934-a4ce-f271a9dd407e";,
        "list": 
"http://127.0.0.1:7070/management/experimental/operations/rebalances";
    },
    "operationStart": "2019-10-18T22:11:05.056Z",
    "operationId": "db7404dc-d7d4-4934-a4ce-f271a9dd407e"
}
{code}

it is better to have configuration, runtime and links part as others

such as:
{code:json}
{
    "statusCode": "ACCEPTED",
       "result": [
        {
            "configuration": {
              //configuration from the request body
            },
            "runtimeInfo": 
                {
   "statusMessage": "Operation started.  Use the URI to check its status.",
    "operationStart": "2019-10-18T22:11:05.056Z",
    "operationId": "db7404dc-d7d4-4934-a4ce-f271a9dd407e"
},
    "links": {
        "self": 
"http://127.0.0.1:7070/management/experimental/operations/rebalances/db7404dc-d7d4-4934-a4ce-f271a9dd407e";,
        "list": 
"http://127.0.0.1:7070/management/experimental/operations/rebalances";
    }
}
{code}





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to