Sample repository to demonstrate RESTful API.
- Laravel 8.29.0
- PHP >= 7.3.0
- MySQL
- Nginx / Apache
- Clone this repository (
git clone https://github.com/suitmedia/laravel-restful-api-example.git) - Create dan configure
.envfile based on.env.example - Run
composer installin the root project to install all dependencies including develeopment requirement. - Run
php artisan key:generatein the root project to generate new Key for new Application. - Run
php artisan optimizein the root project to flush and cache configuratin. - Run
php artisan migratein the root project to migrate main suitcms database. - Run
php artisan db:seedin the root project to seed data. - Run
php artisan servein the root project to serve your project. - Done!
- Project endpoint documentation: http://your-project-base-url/docs
- Laravel documentation: https://laravel.com/docs/8.x
- Postman collection: https://www.getpostman.com/collections/b3d44811ec9256df3cb2
- Postman environtment: Click here (Change your base url on environtment with your base url on your project) ur