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
Answer by Dino
·
Apr 18, 2017 at 03:37 AM
DELETE does not accept a body, just as GET does not accept a body.
This is an HTTP thing. Not a smartdocs limitation.
Smartdocs Models applied in dev environment reflected on test and vice versa. 1 Answer
Smartdocs assigning header as "application/json; charset=UTF-8" by default for POST requests 0 Answers
Display raw swagger file on Smartdocs sandbox testing page in a tab 0 Answers
How to config SmartDoc_Proxy_URL in 4.16.01 Developer portal 0 Answers
smartdocs swagger 2.0 formData parameter rendering 3 Answers