This project is a RESTful API built using Laravel 10 that provides CRUD functionality for managing post data.
The API is designed to be integrated with a React JS frontend.
- RESTful API architecture
- CRUD Post (Create, Read, Update, Delete)
- Image upload and storage
- JSON response
- Ready for frontend integration
- Backend: Laravel 10
- Language: PHP 8
- Database: MySQL
- Frontend Integration: React JS (Axios)
🔗 API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/posts | Get all posts |
| POST | /api/posts | Create post |
| GET | /api/posts/{id} | Get post detail |
| PUT | /api/posts/{id} | Update post |
| DELETE | /api/posts/{id} | Delete post |
Frontend Integration
This API is integrated with a React JS frontend using Axios. The connection between frontend and backend is done via local network (LAN / Wi-Fi IP address), allowing both applications to communicate within the same network environment.