#254 alphabetical sort of apis and operations under apis

new option sortAlphabetical=true|false
This commit is contained in:
Chris Hatch
2014-07-20 20:18:19 +08:00
parent 9b9b5b4551
commit db6419414c
3 changed files with 13 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ class SwaggerUi extends Backbone.Router
# so it gets called when SwaggerApi completes loading
render:() ->
@showMessage('Finished Loading Resource Information. Rendering Swagger UI...')
@mainView = new MainView({model: @api, el: $('#' + @dom_id)}).render()
@mainView = new MainView({model: @api, el: $('#' + @dom_id), swaggerOptions: @options}).render()
@showMessage()
switch @options.docExpansion
when "full" then Docs.expandOperationsForResource('')