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

feat: add swagger endpoint to view api docs #17

Merged
merged 3 commits into from
Dec 9, 2024
Merged

Conversation

bruno-lombardi
Copy link
Owner

  • refactor tests and controllers
  • swagger endpoint and docs parsing in code with comments

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 19.44444% with 29 lines in your changes missing coverage. Please review.

Project coverage is 30.02%. Comparing base (08d88ed) to head (db8ef3a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/pkg/services/favorite_service.go 0.00% 27 Missing ⚠️
internal/app/docs/docs.go 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
- Coverage   32.16%   30.02%   -2.15%     
==========================================
  Files          22       23       +1     
  Lines         799      816      +17     
==========================================
- Hits          257      245      -12     
- Misses        540      569      +29     
  Partials        2        2              
Flag Coverage Δ
unittests 30.02% <19.44%> (-2.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...pp/presentation/controller/auth/auth_controller.go 0.00% <ø> (ø)
.../controller/cryptos/list_top_cryptos_controller.go 0.00% <ø> (ø)
...r/cryptos/list_user_favorite_cryptos_controller.go 0.00% <ø> (ø)
...ion/controller/favorite/add_favorite_controller.go 0.00% <ø> (ø)
.../controller/favorite/remove_favorite_controller.go 0.00% <ø> (ø)
...ntation/controller/users/create_user_controller.go 100.00% <ø> (ø)
...esentation/controller/users/get_user_controller.go 100.00% <ø> (ø)
...ntation/controller/users/update_user_controller.go 100.00% <ø> (ø)
internal/pkg/services/user_service.go 100.00% <100.00%> (ø)
main.go 0.00% <ø> (ø)
... and 2 more

@bruno-lombardi bruno-lombardi merged commit 1919271 into main Dec 9, 2024
3 checks passed
@bruno-lombardi bruno-lombardi deleted the feat/api_docs branch December 9, 2024 17:18
Copy link

github-actions bot commented Dec 9, 2024

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants