How whr884657/apinexus works
ApiNexus is a self-hosted PHP API platform whose main flow is visitors browsing the themed API catalog, opening details or the playground, and invoking APIs through the proxy gateway. Users manage accounts, tokens and points; administrators review APIs and operate content, finance and system settings. The graph preserves documented installation, authentication, public/system APIs, incentives, mail, statistics and online updates. Some links come only from README or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: user/index.php User portal · admin/index.php Admin console · home.php Theme pages · review.php API review
Components 25
Public site
- Site entry
index.php - Theme pages
core/theme/default/pages/home.php - Content catalog
core/ContentManager.php
Accounts and access
- User portal
user/index.php - User authentication
core/UserAuth.php - OAuth login
core/oauth/OAuthService.php - Token management
core/ApiKeyManager.php
API services
- API invocation
api/index.php - API catalog and review
core/ApiManager.php - Proxy gateway
core/ApiProxy.php - System APIs
core/api/apiquery.php
Administration
- Admin console
admin/index.php - API review
admin/api/review.php - Points and incentives
core/IncentiveManager.php - Mail operations
admin/ops/mail.php
Platform services
- Web installer
install/index.php - Online updater
core/Updater.php - MySQL
- Redis
Other components
- Visitor
- Registered user
- Administrator
- QQ / Gitee
- Payment provider
- Update service
Connections 28
- Visitor → Site entry: visits
README.md - Registered user → User portal: opens
README.md - Administrator → Admin console: opens
README.md - Site entry → Theme pages: renders
README.md - Theme pages → Content catalog: loads content
- Theme pages → Proxy gateway: invokes
README.md - User portal → User authentication: uses
user/index.php - User portal → Content catalog: loads user data
user/index.php - User authentication → MySQL: reads and writes
core/UserAuth.php - OAuth login → QQ / Gitee: authenticates with
core/oauth/OAuthService.php - OAuth login → User authentication: logs in
core/oauth/OAuthService.php - User portal → Token management: manages tokens
- API invocation → API catalog and review: loads API
api/index.php - API invocation → Proxy gateway: dispatches
- API catalog and review → MySQL: reads and writes
core/ApiManager.php - Admin console → API review: routes to
- API review → API catalog and review: reviews
admin/api/review.php - API review → Mail operations: notifies via
- Points and incentives → MySQL: records points
core/IncentiveManager.php - Points and incentives → Redis: uses cache
core/IncentiveManager.php - Admin console → Points and incentives: configures
- Admin console → Mail operations: operates
- Web installer → MySQL: installs schema
install/index.php - Web installer → Redis: checks Redis
install/index.php - Online updater → Update service: checks and downloads
README.md - Online updater → MySQL: migrates schema
README.md - System APIs → MySQL: serves system data
- Token management → MySQL: stores tokens
core/ApiKeyManager.php