Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Try it out' button disappeared for 'Delete' #57

Closed
JeroenMinnaert opened this issue Sep 1, 2012 · 9 comments
Closed

'Try it out' button disappeared for 'Delete' #57

JeroenMinnaert opened this issue Sep 1, 2012 · 9 comments

Comments

@JeroenMinnaert
Copy link

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

@fehguy
Copy link
Contributor

fehguy commented Sep 4, 2012

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

@ghost ghost assigned ayush Sep 4, 2012
@pietervogelaar
Copy link

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

@JeroenMinnaert
Copy link
Author

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

@pietervogelaar
Copy link

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

@bobjackman
Copy link

@JeroenMinnaert ++ for a solution 👍

@dharmi
Copy link

dharmi commented Jul 12, 2013

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

@tarpanpathak
Copy link

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?

@webron
Copy link
Contributor

webron commented Jun 18, 2015

@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.

@tarpanpathak
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants