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

Add a callback for when all endpoints have been expanded #550

Closed
dblock opened this issue Aug 29, 2014 · 2 comments
Closed

Add a callback for when all endpoints have been expanded #550

dblock opened this issue Aug 29, 2014 · 2 comments
Milestone

Comments

@dblock
Copy link
Contributor

dblock commented Aug 29, 2014

When you use docExpansion: list there's a bunch of network requests happening, then everything is expanded. In the meantime it just looks like it hangs for the user.

First, it would be nice to add a callback for when the expansion has finished. Right now I hack this:

  window.swaggerUi = new SwaggerUi
    onComplete: (swaggerApi, swaggerUi) ->
      swaggerUi.showMessage('loading API metadata ...')
      setTimeout( =>
          $('#message-bar.swagger-ui-wrap').fadeOut(300, => @remove())
        3000)
    docExpansion: "list"

Maybe Swagger-UI could also display something with each endpoint being expanded asynchronously to show progress.

@fehguy
Copy link
Contributor

fehguy commented Sep 11, 2014

That would be great if you can send a PR for this

@fehguy fehguy added this to the v2.1.0 milestone Jan 28, 2015
@fehguy
Copy link
Contributor

fehguy commented Feb 22, 2015

this is fixed. The whole multi-file requests have been managed so callbacks are only called once.

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

2 participants