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

[FEATURE REQUEST] How to configure swagger comments with iris using mvc #2408

Open
Macfee opened this issue Mar 30, 2024 · 0 comments
Open
Assignees

Comments

@Macfee
Copy link

Macfee commented Mar 30, 2024

Description
I am trying to integrate Swagger documentation into a Go project using the Iris framework, but it seems that Swagger UI cannot be correctly generated or accessed in MVC mode. I followed the official documentation and some online resources, but the issue persists. I am hoping for some help or guidance on this matter.

Steps to Reproduce
Create a new Iris project and set it up in MVC mode.
Configure Swagger according to the Swagger Integration Guide
Start the application and attempt to access the Swagger UI.
Expected Behavior
I expect to be able to access the Swagger UI, and all defined APIs should be correctly displayed within it.

Actual Behavior
When I try to access the Swagger UI, the Swagger UI loads but does not display any API definitions.

Attempted Solutions
Checked if routes and controllers were correctly set up.
Reviewed the Swagger configuration file for errors.
Searched for similar issues and solutions in the Iris community and Stack Overflow but didn't find any effective information.
Additional Information
If there are any error logs or screenshots, please attach them.
If there are relevant code snippets or a project repository, providing links or code would be very helpful.

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