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

Customize View #3

Open
ZeeshanAhmedOfficial opened this issue Apr 29, 2019 · 1 comment
Open

Customize View #3

ZeeshanAhmedOfficial opened this issue Apr 29, 2019 · 1 comment

Comments

@ZeeshanAhmedOfficial
Copy link

Hey there, thanks for this wonderful package.

I want to ask you about how to customize the swagger view file that's render on the route api/swagger

i want to show my custom view file on that route.

@kevupton
Copy link
Owner

kevupton commented Apr 30, 2019

Hey are you just looking to customize the swagger ui appearance ?
You can specify a custom swagger-ui directory, that contains all of the files. It can be done in the config file or an env variable.

Where the swagger-ui directory is the swagger interface you download from swagger

SWAGGER_UI_PATH=/home/ubuntu/swagger-ui/dist

Or config file swagger-ui

  'path' => realpath(__DIR__ . '/../swagger-ui/dist'),

https://github.com/kevupton/auto-swagger-ui/blob/master/src/config/config.php#L8

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