{"id":30714899,"url":"https://github.com/repoleved08/laravel_product_api","last_synced_at":"2026-05-08T14:16:17.529Z","repository":{"id":312058367,"uuid":"1046125578","full_name":"repoleved08/laravel_product_api","owner":"repoleved08","description":"Laravel api for managing products and users","archived":false,"fork":false,"pushed_at":"2025-08-28T08:35:32.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-28T15:39:11.926Z","etag":null,"topics":["eloquent-orm","laravel","mysql","php8","scribe"],"latest_commit_sha":null,"homepage":"","language":"Blade","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/repoleved08.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,"zenodo":null}},"created_at":"2025-08-28T08:18:13.000Z","updated_at":"2025-08-28T08:36:40.000Z","dependencies_parsed_at":"2025-08-28T15:39:36.505Z","dependency_job_id":"02aafa61-d59b-451d-82b2-8d168b95874c","html_url":"https://github.com/repoleved08/laravel_product_api","commit_stats":null,"previous_names":["repoleved08/laravel_product_api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/repoleved08/laravel_product_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repoleved08%2Flaravel_product_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repoleved08%2Flaravel_product_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repoleved08%2Flaravel_product_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repoleved08%2Flaravel_product_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repoleved08","download_url":"https://codeload.github.com/repoleved08/laravel_product_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repoleved08%2Flaravel_product_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273397840,"owners_count":25098235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eloquent-orm","laravel","mysql","php8","scribe"],"created_at":"2025-09-03T05:48:06.150Z","updated_at":"2026-05-08T14:16:12.497Z","avatar_url":"https://github.com/repoleved08.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Product API\n\nA Laravel-based RESTful API for managing products and users.\n\n## Overview\n\nThis project provides endpoints to create, read, update, and delete products. It is designed to be a starting point for e-commerce applications, inventory systems, or any scenario where structured product management is needed. The API leverages the power of Laravel, Eloquent ORM, and MySQL, and uses PHP 8.\n\n## Features\n\n- **Product CRUD:** Create, read, update, and delete products.\n- **Product Model:** Fields include `name`, `description`, `price`, `stock`, and `featured`.\n- **Validation:** Ensures product data integrity.\n- **API Resource Controllers:** Clean RESTful endpoints.\n- **Task API:** Additional endpoints for task management.\n- **Scribe Documentation:** Interactive API docs and example requests/responses.\n\n## Technology Stack\n\n- Laravel\n- PHP 8\n- MySQL\n- Eloquent ORM\n- Scribe (for API docs)\n- Blade (for views)\n\n## API Endpoints\n\n### Products\n\n- `GET /api/products` - List all products\n- `POST /api/products` - Create new product\n- `GET /api/products/{id}` - Get a specific product\n- `PUT/PATCH /api/products/{id}` - Update a product\n- `DELETE /api/products/{id}` - Delete a product\n\n#### Example Requests\n\n**List Products**\n```bash\ncurl --request GET \\\n  --get \"http://localhost:8000/api/products\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"Accept: application/json\"\n```\n\n**Create Product**\n```bash\ncurl --request POST \\\n  \"http://localhost:8000/api/products\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"Accept: application/json\" \\\n  --data '{\n    \"name\": \"New Product\",\n    \"description\": \"This is a new product.\",\n    \"price\": \"19.99\",\n    \"stock\": 100,\n    \"featured\": false\n}'\n```\n\n### Tasks\n\n- `GET /api/tasks` - List all tasks\n- `POST /api/tasks/{task}/complete` - Mark a task as complete\n- `POST /api/tasks/{task}/incomplete` - Mark a task as incomplete\n\n## Database Schema\n\n**Products Table**\n```php\n$table-\u003eid();\n$table-\u003estring('name');\n$table-\u003etext('description')-\u003enullable();\n$table-\u003edecimal('price', 8, 2);\n$table-\u003einteger('stock');\n$table-\u003eboolean('featured')-\u003edefault(false);\n$table-\u003etimestamps();\n```\n\n## Getting Started\n\n1. Clone the repository\n2. Run `composer install`\n3. Set up your `.env` file and database\n4. Run migrations: `php artisan migrate`\n5. Start server: `php artisan serve`\n6. Access API at `http://localhost:8000/api/products`\n\n## API Documentation\n\nInteractive API docs are available via Scribe at `/scribe`.\n\n## License\n\n_No license specified. Please add your license information._\n\n---\nBuilt by [repoleved08](https://github.com/repoleved08)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepoleved08%2Flaravel_product_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepoleved08%2Flaravel_product_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepoleved08%2Flaravel_product_api/lists"}