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

Comments

Projects
None yet
3 participants
@Nohac
Copy link

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?

@laravelcoder

This comment has been minimized.

Copy link

commented Mar 8, 2019

@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

This comment has been minimized.

Copy link
Member

commented Mar 9, 2019

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

mitulgolakiya added a commit that referenced this issue Mar 9, 2019

@mitulgolakiya mitulgolakiya self-assigned this Mar 9, 2019

mitulgolakiya added a commit that referenced this issue Mar 9, 2019

mitulgolakiya added a commit that referenced this issue Mar 9, 2019

mitulgolakiya added a commit that referenced this issue Mar 9, 2019

mitulgolakiya added a commit that referenced this issue Mar 9, 2019

@mitulgolakiya

This comment has been minimized.

Copy link
Member

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
You can’t perform that action at this time.