Request Body not getting rendered for delete requests - smartdocs

g-gagan1000
Participant III

Hi everyone,

I tried generating smartdocs from the OpenApiSpecs. The issue is, there is no sample body getting generated for the requests with verb as "DELETE". I have tried editing the smartdoc from UI also, but still the sample body is not getting displayed. I have attached some screenshots for reference.

Sample Request Generated: I am only able to see Header Parameters, No Body Parameter

4661-2017-04-16-20h29-17.png

Sample Body defined in smartdocs:

4662-2017-04-16-20h33-15.png

Note: I am using reference objects to define the JSON Body Objects and Sample Body is getting generated for both "POST" and "PUT" requests, except for "DELETE" requests.

Is this any known bug in smartdocs or Smartdocs does not allow defining requests body for delete requests?

Or Am I doing something wrong here?

Any help is appreciated!

Thanks!

Gagandeep Singh

Solved Solved
0 3 1,414
1 ACCEPTED SOLUTION

DELETE does not accept a body, just as GET does not accept a body.

This is an HTTP thing. Not a smartdocs limitation.

View solution in original post

3 REPLIES 3

DELETE does not accept a body, just as GET does not accept a body.

This is an HTTP thing. Not a smartdocs limitation.

Okay, that makes sense. Thanks for the answers.

wobble man

Not applicable