{"id":22705384,"url":"https://github.com/soonio/swagger-ui","last_synced_at":"2025-04-13T10:56:08.070Z","repository":{"id":65317315,"uuid":"371231488","full_name":"soonio/swagger-ui","owner":"soonio","description":"一个简便的查看多个swagger json的swagger-ui项目","archived":false,"fork":false,"pushed_at":"2024-08-24T10:16:49.000Z","size":13036,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-24T11:31:17.296Z","etag":null,"topics":["api-docs","go","swagger","swagger-ui"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soonio.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"License","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}},"created_at":"2021-05-27T03:09:27.000Z","updated_at":"2024-08-24T10:16:52.000Z","dependencies_parsed_at":"2024-08-16T05:47:25.147Z","dependency_job_id":"9bf3e979-0d58-4a23-a842-d030248f0ffa","html_url":"https://github.com/soonio/swagger-ui","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soonio%2Fswagger-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soonio%2Fswagger-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soonio%2Fswagger-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soonio%2Fswagger-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soonio","download_url":"https://codeload.github.com/soonio/swagger-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229034158,"owners_count":18009504,"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":["api-docs","go","swagger","swagger-ui"],"created_at":"2024-12-10T09:10:12.950Z","updated_at":"2024-12-10T09:10:13.644Z","avatar_url":"https://github.com/soonio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swagger-ui\n\n## Golang一键构建\n```bash\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags \"-s -w\" -trimpath -o swagger-linux-amd64 main.go\nCGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags \"-s -w\" -trimpath -o swagger-windows-amd64.exe main.go\nCGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags \"-s -w\" -trimpath -o swagger-darwin-amd64 main.go\nCGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags \"-s -w\" -trimpath -o swagger-darwin-arm64 main.go\n```\n\n## 使用\n\n```bash\n./swagger-darwin-arm64 -secret 123456 -port 8900\n```\n\n### 快速上传本地文件到目标服务\n```bash\ncurl -F \"file=@docs/example.test.json\" \\\n    -F \"filename=ttt.json\" \\\n    -F \"secret=password\" \\\n    http://localhost:8900/upload\n```\n\n### 获取文档文件列表\n\n```bash\ncurl http://localhost:8900/list\n```\n\n### 刷新文档\n```bash\ncurl http://localhost:8900/refresh\n```\n\n### 简单守护启动\n\n```bash\nnohup ./swagger -secret password \u003e\u003e server.log 2\u003e\u00261 \u0026\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoonio%2Fswagger-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoonio%2Fswagger-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoonio%2Fswagger-ui/lists"}