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

Publish swagger templates #595

Closed
Nohac opened this issue Mar 5, 2019 · 3 comments
Closed

Publish swagger templates #595

Nohac opened this issue Mar 5, 2019 · 3 comments

Comments

@Nohac
Copy link

Nohac commented Mar 5, 2019

It is possible to publish normal templates using php artisan infyom.publish:templates. Shouldn't there also be an option to publish the swagger templates as well?

@wecodelaravel
Copy link

@Nohac
Swagger templates are not blade files and are generated by the package. I had a problem where they were not working also but found it was a bug in the package template and i fixed it. you can do the same to yours and it should work after at the following url /api/docs

Swagger not showing up fix
#596
Hope it helps you.

@mitulgolakiya
Copy link
Member

@Nohac Can you describe the reason you want to publish swagger templates?

@mitulgolakiya
Copy link
Member

mitulgolakiya commented Mar 9, 2019

@Nohac I've added support for publishing swagger-docs. In the latest version (5.5 or later), when you use php artisan infyom.publish:templates, swagger templates are also published under controller_docs and model_docs directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants