System Requirement (Laravel 5.6)
- PHP >= 7.1.3
How to use this
- Download and install composer
- Download and install postmant
- Copy .env.example to .env
- Edit .env add mysql connection
- Open your cmd and set destination to this project
- Run "composer install"
- Run "php artisan key:generate"
- Run "php artisan migrate"
- Run "php artisan db:seed"
- Run "php artisan serve"
- Open you postman and
- Enjoy
Route
- #GET localhost:8000/api/users --> Show all user
- #GET localhost:8000/api/user/{id} --> Show user by ID
- #POST localhost:8000/api/user --> Create new user
- #PUT localhost:8000/api/user/{id} --> Update data by ID
- #DELETE localhost:8000/api/user/[id} --> Delete data by ID