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

Model Schema as default

Open peter004 opened this issue 13 years ago • 5 comments

Currently in Expand Operations, Model view are default and user have to click on Model Schema to view the list..

Any way to make Model Schema view as default?

Thanks for your time

peter004 avatar Mar 26 '13 03:03 peter004

Try changing line 14 in SignatureView.coffee to @switchToSnippet()

nizhu avatar Mar 26 '13 03:03 nizhu

Sorry, I should have mentioned I'm using no-server UI

peter004 avatar Mar 26 '13 04:03 peter004

You can still do this, you'll just need to follow the instructions to rebuild the UI in the swagger-ui project.

fehguy avatar Mar 26 '13 04:03 fehguy

found "this.switchToDescription()" in swagger-ui.js and changed it to "this.switchToSnippet();"

and its working!

thank you for your help! :+1:

peter004 avatar Mar 26 '13 04:03 peter004

great

fehguy avatar Mar 26 '13 04:03 fehguy