[ https://issues.apache.org/jira/browse/GEODE-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gang Yan updated GEODE-7074: ---------------------------- Description: # the api operation names # the json request/response wording changes. # 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]." } # 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. # hide "group, groups, " for config pdx from Swagger docs. was: 1. the api operation names 2. the json request/response wording changes. > improve Cluster Management Rest api Swagger documentation > --------------------------------------------------------- > > Key: GEODE-7074 > URL: https://issues.apache.org/jira/browse/GEODE-7074 > Project: Geode > Issue Type: Improvement > Components: management > Reporter: Jack Weissburg > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > # the api operation names > # the json request/response wording changes. > # 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]." > } > # 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. > # hide "group, groups, " for config pdx from Swagger docs. > -- This message was sent by Atlassian JIRA (v7.6.14#76016)