{"id":16260001,"url":"https://github.com/songlin123/axiosapi-codegen-vite-","last_synced_at":"2026-06-22T21:31:22.936Z","repository":{"id":126182907,"uuid":"365909503","full_name":"SongLin123/axiosApi-codegen-vite-","owner":"SongLin123","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-18T01:40:12.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T03:45:58.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SongLin123.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}},"created_at":"2021-05-10T03:42:49.000Z","updated_at":"2021-05-18T01:40:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a841b21-1f2d-4e36-9900-29dd2e07e7ae","html_url":"https://github.com/SongLin123/axiosApi-codegen-vite-","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.19354838709677424","last_synced_commit":"cbc3f51ab3e5f2d2fc2a2748e218f4a54a3f1fd8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SongLin123/axiosApi-codegen-vite-","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2FaxiosApi-codegen-vite-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2FaxiosApi-codegen-vite-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2FaxiosApi-codegen-vite-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2FaxiosApi-codegen-vite-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SongLin123","download_url":"https://codeload.github.com/SongLin123/axiosApi-codegen-vite-/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SongLin123%2FaxiosApi-codegen-vite-/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34666961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-10-10T16:06:01.367Z","updated_at":"2026-06-22T21:31:22.920Z","avatar_url":"https://github.com/SongLin123.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @LastEditors  : BillySong\n--\u003e\n# axiosapi-codegen-vite-\n 根据swagger文档生成js api文件,基于axios库的请求\n 不生成基础index.js和请求响应拦截器，请根据需求灵活配置\n 提供示例的api目录，在/api目录下\n\n## 使用\n``` shell\nnpm i -g axiosapi-codegen-vite-\n\napi-codegen ./config.json\n```\n\n\u003e 可以使用多配置文件应对多服务的场景，例如\n```\napi-codegen ./service1.json\n\napi-codegen ./service2.json\n\napi-codegen ./service3.json\n\n```\n ## 配置\n \n ``` \n {      // 根路径为执行api-codegen的路径\n     // api-docs 位置\n     // 可以使用本地路径，如 ./api-docs.json.\n    \"api\": \"http://127.0.0.1:5500/api-docs.json\",\n    // 生成的code的位置，重复执行命令会删掉路径下之前生成的目录\n    \"targetPath\": \"./api/modules/\",\n\n    // 是否生成基础的入口文件 index.js service.js tools.js\n    \"hasEntryService\": false,\n    // 基础入口文件的生成位置\n    \"entryServiceTargetPath\": \"./src/api/\"\n}\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonglin123%2Faxiosapi-codegen-vite-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonglin123%2Faxiosapi-codegen-vite-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonglin123%2Faxiosapi-codegen-vite-/lists"}