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.
Answer by Priyadarshi Ajitav Jena · Nov 18, 2020 at 05:41 PM
for reference : https://restfulapi.net/http-methods/
Smartdocs Models applied in dev environment reflected on test and vice versa. 1 Answer
smartdocs swagger 2.0 formData parameter rendering 3 Answers
Response model definition ignored when importing Swagger 2.0 document 1 Answer
Developer portal mechanism to render open api specs and resolve references 3 Answers
Smartdocs assigning header as "application/json; charset=UTF-8" by default for POST requests 0 Answers