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

Disable "Try it out " for specific api end point #586

Open
balap777 opened this issue Feb 26, 2024 · 1 comment
Open

Disable "Try it out " for specific api end point #586

balap777 opened this issue Feb 26, 2024 · 1 comment

Comments

@balap777
Copy link

Want to remove or disable the "Try it out" button for selective api end point. Your input will be really helpful

Thanks in advance

@karunkshrestha
Copy link

I don't know if you can disable it for a specific route but you can disable it for specific HTTP method.

  1. publish the view php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"
  2. add the 'supportedSubmitMethods' paramter to the config.
            layout: "StandaloneLayout",
            docExpansion : "{!! config('l5-swagger.defaults.ui.display.doc_expansion', 'none') !!}",
            deepLinking: true,
            filter: {!! config('l5-swagger.defaults.ui.display.filter') ? 'true' : 'false' !!},
            persistAuthorization: "{!! config('l5-swagger.defaults.ui.authorization.persist_authorization') ? 'true' : 'false' !!}",
            supportedSubmitMethods: [],

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