swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

'Try it out' button disappeared for 'Delete'

Open JeroenMinnaert opened this issue 14 years ago • 9 comments

For a DELETE operation, the 'Try it out' button fails to show. Path fields don't show up either for a DELETE.

JeroenMinnaert avatar Sep 01 '12 22:09 JeroenMinnaert

I don't believe DELETE was ever supported in the UI, but it should be easy to add.

fehguy avatar Sep 04 '12 17:09 fehguy

Yeah, I would like the DELETE operation too in Swagger UI!

pietervogelaar avatar Sep 12 '12 11:09 pietervogelaar

I found out you can activate the delete button by adding 'delete' to the supportedSubmitMethods property in the SwaggerUI constructor. You can find this constructor in index.html. I didn't see it the first time round. You can also very easily add other methods (like HEAD) I discovered, given that you update screen.css

JeroenMinnaert avatar Sep 12 '12 11:09 JeroenMinnaert

O you're right, ofcourse I should have seen that..

pietervogelaar avatar Sep 12 '12 12:09 pietervogelaar

@JeroenMinnaert ++ for a solution :+1:

bobjackman avatar May 13 '13 17:05 bobjackman

was hunting for a solution for missing DELETE functionality....thx

dharmi avatar Jul 12 '13 23:07 dharmi

I am still having this issue, GET/POST/PUT show up fine after modifying the swagger config file but DELETE does not. The sample api-docs.html file already has supportedSubmitMethods, 'delete' in it. Does anyone know where and how DELETE needs to be specified?

tarpanpathak avatar Jun 18 '15 00:06 tarpanpathak

@ptarpan - commenting on an issue that was closed in 2012 (!) is probably not the best approach for help. It also sounds like you're using an old version of the UI. Try upgrading and see what's next.

webron avatar Jun 18 '15 06:06 webron

@webron - you are right. Let me troubleshoot and perhaps upgrade.

tarpanpathak avatar Jun 18 '15 17:06 tarpanpathak