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.
37 lines
913 B
JSON
37 lines
913 B
JSON
{
|
|
"success": true,
|
|
"data": {
|
|
"id": 1,
|
|
"name": "Leonardo DiCaprio",
|
|
"photo": "https://example.com/leo.jpg",
|
|
"bio": "American actor and film producer",
|
|
"birthDate": "1974-11-11",
|
|
"birthPlace": "Los Angeles, California",
|
|
"createdAt": "2024-01-15 10:30:00",
|
|
"updatedAt": "2024-01-15 10:30:00",
|
|
"occupations": ["Actor", "Producer"],
|
|
"filmography": [
|
|
{
|
|
"id": 1,
|
|
"title": "Inception",
|
|
"year": 2010,
|
|
"poster": "https://example.com/poster.jpg",
|
|
"category": "Movie",
|
|
"type": "Movie",
|
|
"role": "Actor",
|
|
"characterName": "Dom Cobb"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"title": "The Revenant",
|
|
"year": 2015,
|
|
"poster": "https://example.com/revenant.jpg",
|
|
"category": "Movie",
|
|
"type": "Movie",
|
|
"role": "Actor",
|
|
"characterName": "Hugh Glass"
|
|
}
|
|
]
|
|
}
|
|
}
|