🧠 Gameer API Reference
All API endpoints are available via POST
. Expect JSON input and output.
POST /generate/code
Generates game logic and components from a validated schema.
Input:
{ "schema": { ... }, // full game schema JSON "target": "phaser" // or "unity", "json" }
Response:
{ "success": true, "files": { "main.ts": "...", "components/Player.ts": "...", ... } }