Restful API DESA bahasa Indonesia built with laravel
-
Clone this repository
git clone https://github.com/Amar-arruf/REST-API-Desa.git
-
Install dependecies (
composer
)composer install
-
Start the development environment
php artisan serve
-
setting DB
.env
with following:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=api_desa DB_USERNAME=root DB_PASSWORD=
-
this case , project will use library laravolt indonesia reatrivat data , please following setup with laravolt,
-
visit http://localhost:8000
API PATH = http://localhost:8000/api/
postman colletction : https://documenter.getpostman.com/view/11362142/2sA2r6WPbm
Get Latest Desa , Method GET
/api/desa
example : http://localhost:8000/api/desa
Get Specific, Method GET
/api/desa/[id]
example : http://localhost:8000/api/desa/1
update Desa, Method PUT
/api/desa/[id]
example : http://localhost:8000/api/desa/1
Method DELETE
/api/desa/[id]
example : http://localhost:8000/api/desa/1