11 Commits
Author SHA1 Message Date
zhangguoyun 00c105c796 feat(apifox): 增加提取请求参数 schema 的方法
- 实现 extractRequestSchema 方法,根据请求方法提取相应的参数 schema
- GET 请求从 parameters.query 中生成 JSON Schema
- POST/PUT/PATCH 请求从 requestBody.jsonSchema 解析 schema 引用并获取完整定义
- 在 getApiDetailResp 中使用 extractRequestSchema 替代原有逻辑
- 修改接口目录描述,从“接口路径”更新为“目录路径”
2026-03-12 14:22:43 +08:00
zhangguoyun dd1d86706c feat: comprehensive refactor of index.js and documentation update 2026-01-15 11:09:13 +08:00
Gemini Agent 1ea6e0e9f0 feat: refactor for multi-tenant HTTP support and global caching 2026-01-14 18:56:03 +08:00
zhangguoyun 30d4c8a9da feat(ApifoxService): 添加日志功能,支持将日志写入文件并创建日志目录 2025-12-16 17:36:03 +08:00
zhangguoyun be63d49f40 feat: 添加 README 文档并实现 HTTP 传输模式支持 2025-12-16 10:32:05 +08:00
zhangguoyun 87878ceca1 refactor(ApifoxService): 优化初始化逻辑和项目ID处理
- 修改init方法接收projectId参数并简化错误处理
- 统一通过init方法设置projectId
- 移除getApiDetailsById中冗余的projectId处理
- 为getApiListByFolderName添加projectId参数支持
2025-12-03 10:58:02 +08:00
zhangguoyun 4386beea66 feat(apifox): 为接口查询方法添加projectId参数支持
允许在查询接口详情时指定项目ID,提高多项目环境下的灵活性
2025-12-02 16:53:17 +08:00
zhangguoyun ae684d83b1 refactor: 移除硬编码的APIFOX环境变量默认值
这些默认值不应硬编码在代码中,而应通过环境变量配置或配置文件提供
2025-12-01 18:52:50 +08:00
zhangguoyun a6978c948b refactor(apifox): 移除调试日志并优化代码结构
- 删除所有console.log调试输出
- 移除未使用的fs模块导入
- 优化ApifoxService初始化配置
- 使用新的MCP SDK注册方式替代旧版prompt处理
- 添加环境变量默认值设置
2025-12-01 18:29:01 +08:00
zhangguoyun ad543045c7 refactor: Restructure ApifoxService with dependency injection and MCP integration
- Move APIFOX_TOKEN to index.js and pass via config object to ApifoxService
- Convert ApifoxService to accept config object with projectId, token, and baseUrl parameters
- Move axios instance creation from module level into ApifoxService constructor
- Replace global http client references with instance-based this.http throughout service methods
- Initialize ApifoxService in index.js with environment variables
- Remove GitLab API client code and replace with Apifox-focused tool implementations
- Simplify MCP server tool registration to use ApifoxService methods
- Add init() call in ApifoxService constructor for future initialization logic
- Improve code organization by centralizing API client configuration within service class
- Enable better testability and configuration flexibility through dependency injection pattern
2025-11-29 19:16:13 +08:00
zhangguoyun 10467c194c feat: Initialize Apifox API documentation project
- Add package.json and package-lock.json for Node.js project setup
- Add .gitignore to exclude node_modules directory
- Add apifox.js as main entry point for API processing
- Add index.js for application initialization
- Add api-details.json containing comprehensive API endpoint definitions
- Add apifox.json, apifox-ret.json for Apifox configuration and responses
- Add data-schemas.json for API data schema definitions
- Add schema.json for JSON schema validation
- Add folderList.json for API folder structure organization
- Initialize project structure for Apifox API documentation management
2025-11-29 17:10:51 +08:00