Welcome to Genhike Sports

API and data dictionary

Source core/Schema.php@65daf8712480 · the only source of column notes Source app/api/ApiController.php@44492cfc3aef · endpoint list and parameters Rendered at 2026-11-23 20:58:51 (read live on every request, so a source edit shows up immediately)

10 reconciliation failures Live results are listed below; run php cli/check-manual.php for the full list.

  • Snapshot freshness The snapshot schema_hash is fef0e76b2d1d but the current value is 65daf8712480; re-run php cli/build-manual.php
  • Data dictionary core/Schema.php registers 3 tables that do not exist in the database: ry_doc, ry_pkg, ry_release
  • Data dictionary 151 columns are registered in Schema but missing from the database
  • Missing sample Endpoint site has no captured real response; re-run php cli/build-manual.php --capture
  • Missing sample Endpoint models has no captured real response; re-run php cli/build-manual.php --capture
  • Missing sample Endpoint categories has no captured real response; re-run php cli/build-manual.php --capture
  • Missing sample Endpoint tags has no captured real response; re-run php cli/build-manual.php --capture
  • Missing sample Endpoint search has no captured real response; re-run php cli/build-manual.php --capture

and 2 more — see the command line output.

How this manual is produced

Nothing here is a hand-written second copy of the truth. Endpoint entries come from the self-describing list in ApiController::site(); parameters and error codes are scanned out of the endpoint source; column notes come from core/Schema.php (the single source for the whole database) while types and indexes come from information_schema; response samples are captured verbatim from real HTTP calls. The only hand-written parts are two annotation layers (parameter notes and scenarios), and both are pinned by the reconciler: an extra parameter, a missing one or a changed default all turn red.

Stage How Current result
Generate cli/build-manual.php writes a snapshot; the pages render straight from the registries on every request snapshot is stale 2026-10-09 07:26:53
Samples cli/build-manual.php --capture issues real HTTP calls with a temporary token, archives the raw bodies verbatim, then deletes the token and restores the switch not captured yet
Reconcile cli/check-manual.php: missing and orphan entries, field-level differences, column-note drift and sample structure are all hard failures 10 failures

Endpoints at a glance

Method Path Auth Params Description
GET /api/v1 token required 0 Site information and the endpoint list
GET /api/v1/models token required 0 Content models and their field definitions
GET /api/v1/categories token required 2 Category tree, filterable by model and language
GET /api/v1/tags token required 2 Tag list
GET /api/v1/search token required 6 Cross-model keyword search
GET /api/v1/{model} token required 8 Content list (paging, category, tag, keyword, sorting, flags)
GET /api/v1/{model}/{id|slug} token required 2 Content detail (with_body=1 includes the body)
Send an Enquiry