Commit Graph
2 Commits
Author SHA1 Message Date
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