You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Setup Swagger API documentation for backend (#120)
* feat: Setup Swagger API documentation for backend
- Added swaggo/swag package for automated API documentation
- Implemented Swagger annotations for all API endpoints:
* Task management endpoints (get, add, edit, modify, complete, delete)
* Authentication endpoints (OAuth, callback, user info, logout)
- Added Swagger UI endpoint at /swagger/index.html
- Updated go.mod with required dependencies (swaggo/swag, http-swagger)
- Generated comprehensive API documentation
- Created setup guides (SWAGGER_SETUP.md, QUICK_START.md)
Benefits:
- Auto-generated, always up-to-date API documentation
- Interactive testing interface replacing Postman collection
- Industry-standard OpenAPI/Swagger specification
Closes#118
* Address PR review feedback for Swagger implementation
- Remove auto-generated documentation files (IMPLEMENTATION_SUMMARY.md, QUICK_START.md, SWAGGER_SETUP.md)
- Remove incorrect email address (support@ccsync.com) from swagger.json, swagger.yaml, and main.go
- Update misleading comment in main.go about docs generation
- Change Swagger endpoint from /swagger/ to /api/docs/ for better convention
- Add API documentation section to backend README with endpoint URL
* Regenerate swagger docs to remove email address
- Run swag init to regenerate docs.go without support@ccsync.com
- This fixes the auto-generated file to match main.go annotations
* Fix formatting issues (gofmt and prettier)
- Run gofmt on backend Go files
- Run prettier on all project files
- This fixes the failing CI checks
* Trigger CI checks re-run
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,6 @@ Scan through our [existing issues](https://github.com/its-me-abhishek/ccsync/iss
25
25
1. Fork the repository.
26
26
27
27
- Using GitHub Desktop:
28
-
29
28
-[Getting started with GitHub Desktop](https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/getting-started-with-github-desktop) will guide you through setting up Desktop.
30
29
- Once Desktop is set up, you can use it to [fork the repo](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/cloning-and-forking-repositories-from-github-desktop)!
The documentation provides detailed information about all available endpoints, request/response schemas, and allows you to test the API directly from your browser.
0 commit comments