Initial project scaffold for a PHP Media API including routing, controllers, models and services under api/ (Router, Media/Cast/Image/Settings controllers, models, database/bootstrap files and automatic docs service). Adds Docker support (Dockerfile, docker-compose.yml, DOCKER_README.md, php-custom.ini), .htaccess for pretty URLs, API documentation and example payloads (API_EXAMPLES.md, api/README.md, api_examples/*.json), image handling service and logging, plus a comprehensive .gitignore. This commit provides a runnable development environment and example requests to get the API up and tested quickly.
33 lines
792 B
JSON
33 lines
792 B
JSON
{
|
|
"type": "Game",
|
|
"title": "1-2-Switch",
|
|
"playtime": 120,
|
|
"completionStatus": "Completed",
|
|
"favorite": true,
|
|
"communityScore": 55,
|
|
"userScore": 80,
|
|
"achievements": [
|
|
{
|
|
"name": "First Victory",
|
|
"description": "Win your first game",
|
|
"icon": "https://example.com/achievement-icon.png",
|
|
"unlocked": true,
|
|
"unlocked_date": "2026-04-09T18:00:00"
|
|
},
|
|
{
|
|
"name": "Master Player",
|
|
"description": "Win 100 games",
|
|
"icon": "https://example.com/master-icon.png",
|
|
"unlocked": true,
|
|
"unlocked_date": "2026-04-09T20:30:00"
|
|
},
|
|
{
|
|
"name": "Champion",
|
|
"description": "Win 1000 games",
|
|
"icon": "https://example.com/champion-icon.png",
|
|
"unlocked": false,
|
|
"unlocked_date": null
|
|
}
|
|
]
|
|
}
|