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.
29 lines
650 B
JSON
29 lines
650 B
JSON
{
|
|
"title": "Thriller",
|
|
"year": 1982,
|
|
"poster": "https://example.com/thriller-cover.jpg",
|
|
"description": "Sixth studio album by Michael Jackson",
|
|
"rating": 9.0,
|
|
"category": "Music",
|
|
"type": "Album",
|
|
"status": "Released",
|
|
"genres": ["Pop", "Funk", "Rock"],
|
|
"tags": ["Classic", "Best-selling"],
|
|
"studios": ["Epic Records"],
|
|
"staff": [],
|
|
"tracks": [
|
|
{
|
|
"track_number": 1,
|
|
"title": "Wanna Be Startin' Somethin'",
|
|
"duration": "6:03",
|
|
"artist": "Michael Jackson"
|
|
},
|
|
{
|
|
"track_number": 2,
|
|
"title": "Baby Be Mine",
|
|
"duration": "4:20",
|
|
"artist": "Michael Jackson"
|
|
}
|
|
]
|
|
}
|