{"id":18329679,"url":"https://github.com/muhammadpauzi/php-rest-api-mysql","last_synced_at":"2026-04-26T22:31:43.979Z","repository":{"id":110150789,"uuid":"440013225","full_name":"muhammadpauzi/php-rest-api-mysql","owner":"muhammadpauzi","description":"🐘 Learn to make Rest API with PHP and MySQL using OOP paradigm and design patterns. (Project of learn PHP and MySQL with PZN)","archived":false,"fork":false,"pushed_at":"2022-01-01T03:46:05.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T17:52:16.977Z","etag":null,"topics":["design-patterns","mysql","oop","pdo","php-mvc","rest-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muhammadpauzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T01:50:47.000Z","updated_at":"2022-05-17T17:01:35.000Z","dependencies_parsed_at":"2023-07-09T10:46:34.794Z","dependency_job_id":null,"html_url":"https://github.com/muhammadpauzi/php-rest-api-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muhammadpauzi/php-rest-api-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadpauzi%2Fphp-rest-api-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadpauzi%2Fphp-rest-api-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadpauzi%2Fphp-rest-api-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadpauzi%2Fphp-rest-api-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhammadpauzi","download_url":"https://codeload.github.com/muhammadpauzi/php-rest-api-mysql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadpauzi%2Fphp-rest-api-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design-patterns","mysql","oop","pdo","php-mvc","rest-api"],"created_at":"2024-11-05T19:18:18.194Z","updated_at":"2026-04-26T22:31:43.949Z","avatar_url":"https://github.com/muhammadpauzi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Rest API with MySQL\n🐘 Learn to make Rest API with PHP and MySQL using OOP paradigm and design patterns. (Project of learn PHP and MySQL with PZN).\n\n\n## **API SPEC**\n\u003cbr\u003e\n\n**BASE URL** : `http://localhost:8080/`\n\n### **Users**\n\u003chr\u003e\n\n### Find all users\nRequest :\n- Endpoint : `/users`\n- Method : **GET**\n\nResponse : \n```json\n{\n    \"data\": [\n        {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"username\": \"\",\n            \"email\": \"\",\n            \"created_at\": \"\"\n        }\n    ]\n}\n```\n\n### Find a user\nRequest :\n- Endpoint : `/users/:id`\n- Method : **GET**\n\nResponse : \n```json\n{\n    \"data\": {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"username\": \"\",\n        \"email\": \"\",\n        \"created_at\": \"\"\n    }\n}\n```\n\n### Find a user with the posts\nRequest :\n- Endpoint : `/users/:id/posts`\n- Method : **GET**\n\nResponse : \n```json\n{\n    \"data\": {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"username\": \"\",\n        \"email\": \"\",\n        \"created_at\": \"\",\n        \"posts\": [\n            {\n                \"id\": \"\",\n                \"title\": \"\",\n                \"description\": \"\",\n                \"body\": \"\",\n                \"id_user\": \"\", \n                \"created_at\": \"\", \n            }\n        ]\n    }\n}\n```\n\n### **Posts**\n\u003chr\u003e\n\n### Find all posts\nRequest :\n- Endpoint : `/posts`\n- Method : **GET**\n\nResponse : \n```json\n{\n    \"data\": [\n        {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"username\": \"\",\n            \"email\": \"\",\n            \"created_at\": \"\",\n            \"title\": \"\",\n            \"description\": \"\",\n            \"body\": \"\",\n            \"id_user\": \"\", \n            \"user_created_at\": \"\", \n        }\n    ]\n}\n\n```\n### Find a post\nRequest :\n- Endpoint : `/posts/:id`\n- Method : **GET**\n\nResponse : \n```json\n{\n    \"data\": {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"username\": \"\",\n        \"email\": \"\",\n        \"created_at\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"body\": \"\",\n        \"id_user\": \"\", \n        \"user_created_at\": \"\", \n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadpauzi%2Fphp-rest-api-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammadpauzi%2Fphp-rest-api-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadpauzi%2Fphp-rest-api-mysql/lists"}