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
Sample Body defined in smartdocs:
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! Go to Solution.
DELETE does not accept a body, just as GET does not accept a body.
This is an HTTP thing. Not a smartdocs limitation.