{"id":29565572,"url":"https://github.com/michaelwp/fiber-go-swagger-example","last_synced_at":"2025-12-31T14:31:09.645Z","repository":{"id":299793230,"uuid":"1004220042","full_name":"michaelwp/fiber-go-swagger-example","owner":"michaelwp","description":"example of fiber and swagger","archived":false,"fork":false,"pushed_at":"2025-06-18T09:50:10.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-18T10:46:43.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelwp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-18T09:47:41.000Z","updated_at":"2025-06-18T09:50:14.000Z","dependencies_parsed_at":"2025-06-18T10:46:49.674Z","dependency_job_id":"69e330ca-1eac-4e06-ab4f-075d0fb31906","html_url":"https://github.com/michaelwp/fiber-go-swagger-example","commit_stats":null,"previous_names":["michaelwp/fiber-go-swagger-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelwp/fiber-go-swagger-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Ffiber-go-swagger-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Ffiber-go-swagger-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Ffiber-go-swagger-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Ffiber-go-swagger-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwp","download_url":"https://codeload.github.com/michaelwp/fiber-go-swagger-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Ffiber-go-swagger-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265837721,"owners_count":23836558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-18T21:34:48.112Z","updated_at":"2025-12-31T14:31:09.602Z","avatar_url":"https://github.com/michaelwp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"git The Swagger UI will provide an interactive interface where you can test your API endpoints directly from the browser. Remember to regenerate docs with `swag init` whenever you update your API comments.\n\nHere's how to implement Swagger in a Fiber Go application:\n\n## 1. Install Required Dependencies\n\n```bash\ngo get github.com/gofiber/fiber/v2\ngo get github.com/swaggo/swag/cmd/swag\ngo get github.com/gofiber/swagger\ngo get github.com/swaggo/files\n```\n\n## 2. Add Swagger Comments to Your Main File\n\n## 3. Generate Swagger Documentation\n\nRun this command in your project root to generate the Swagger docs:\n\n```bash\nswag init\n```\n\nThis creates a `docs` folder with generated files including `docs.go`, `swagger.json`, and `swagger.yaml`.\n\n## 4. Key Swagger Annotations Explained\n\n- **General Info**: `@title`, `@version`, `@description` - Basic API information\n- **Contact \u0026 License**: `@contact.name`, `@license.name` - API metadata\n- **Host \u0026 BasePath**: Define your API's base URL structure\n- **Route Documentation**: `@Summary`, `@Description`, `@Tags` - Describe endpoints\n- **Parameters**: `@Param` - Define query params, path params, and request bodies\n- **Responses**: `@Success`, `@Failure` - Define response structures\n- **Router**: `@Router` - Map the endpoint path and HTTP method\n\n## 5. Access Your Swagger UI\n\nAfter running your application, visit:\n```\nhttp://localhost:3000/swagger/index.html\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Ffiber-go-swagger-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwp%2Ffiber-go-swagger-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Ffiber-go-swagger-example/lists"}