Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7323

adjust the output structure of [post] rebalances

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • rest (admin)
    • None

    Description

      current:

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

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

      such as:

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            gyan Gang Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: