HCESrl / laravel-swagger-api

A Laravel integration with Swagger UI.
MIT License
68 stars 9 forks source link

docExpansion configuration is missing #10

Closed neyhuel closed 3 years ago

neyhuel commented 3 years ago

I can't configure docExpansion option of the SwaggerUIBundle, pelase add this options. For example:

SwaggerUIBundle({
    url: "http://urltoswaggerfile.com",
    dom_id: '#swagger-ui',
    docExpansion: 'none',
    presets: [
      SwaggerUIBundle.presets.apis,
      SwaggerUIStandalonePreset
    ],
    plugins: [
      SwaggerUIBundle.plugins.DownloadUrl
    ],
    layout: "StandaloneLayout"
  });
fsavina commented 3 years ago

in v1.2.2 you can set that in the package config: https://github.com/HCESrl/laravel-swagger-api/blob/master/resources/config.php#L28

neyhuel commented 3 years ago

Thank you man!!! Your approach is awesome!