Skip to content

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

@dblock

Description

@dblock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions