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

fix: faulty swagger configuration to render api docs properly #387

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Ezrahel
Copy link

@Ezrahel Ezrahel commented Mar 1, 2025

#378 Rerouting the swagger endpoint

Description

​- This PR fixes the Swagger UI configuration issue, ensuring that the API documentation correctly renders on the web at /api/docs/index.html. Previously, accessing the Swagger endpoint resulted in incorrect content due to misconfigurations in the route setup.

Related Issue (Link to Github issue)

How Has This Been Tested?


Screenshot 2025-03-01 092009

Screenshot 2025-03-01 092141

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment on lines +16 to +17
- url: https://api.golang.boilerplate.hng.tech/api/v1
- url: https://api.golang.boilerplate.hng.tech/api/v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look for the staging url and add it here, Ask Phoenix

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

Successfully merging this pull request may close these issues.

2 participants