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

improve Cluster Management Rest api Swagger documentation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • management
    • None

    Description

      1. the api operation names
      2. the json request/response wording changes.
      3. If you do a POST on the "pdx" endpoint and give it a bad json input it returns 400 Error: Bad Request but this in not documented in swagger (swagger only mentions: 200, 201, 401, 403, 404, and 500).
        The 400 returns the following json output: { "statusCode": "ILLEGAL_ARGUMENT", "statusMessage": "JSON parse error: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (PushbackInputStream); line: 1, column: 1]); nested exception is com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (PushbackInputStream); line: 1, column: 1])\n at [Source: (PushbackInputStream); line: 6, column: 103]." }
      4. Swagger will show example json docs and it always shows "statusCode" to be "ILLEGAL_ARGUMENT".
        I think this is because it is the first enum value. If we changed "OK" to be the first the swagger examples would be better.
      5. hide "group, groups, " for config pdx from Swagger docs.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jackw26 Jack Weissburg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m