-
Pertama pastiin dulu udah install composer ya bisa diliat disini lingknya composer
-
Kalo udah import dulu sql, nama databasenya api_kompress kalau mau diubah bisa diubah dari ENV nya
-
Ekstrak filenya seluruhnya di htdocs terserah nama foldernya apa ga masalah
-
Setelah di ekstrak buka cmd di direktori itu
-
Ketikin php artisan serve -> nanti dia bakalan ada started 127.0.0.1:8000 -> ini URLnya
-
Sekarang siapin postmannya dulu, kalo belom punya bisa install lewat sini Postman
-
Cara penggunaan postman gampang, abis install dkknya, bisa buka postmannya pilih metode nya dulu GET/POST
-
Berikut ini URL yang udah tersedia di API ini ** POST localhost:8000/api/signup (header = accept : aplication/json, content-type : application/json) (body[ pilih raw ganti type menjadi JSON] = {"username" : "apa", "password" : "apa", "email" : "apa"}) ** ** POST localhost:8000/api/signin (header = accept : aplication/json, content-type : application/json) (body[ pilih raw ganti type menjadi JSON] = {"username" : "apa", "password" : "apa"}) -> nanti bakalan keluar token ** ** GET localhost:8000/api/user (header = accept : aplication/json, content-type : application/json, token : bearer tokentadi) -> nanti diakan keluar daftar user** ** POST localhost:8000/api/user/update (header = accept : aplication/json, content-type : application/json, token : bearer tokentadi)(body {"nama" : "apa ","alamat" : "apa","pendidikan" : "apa","telp" : "apa","role" : 1/2}) -> akan update userr** ** POST localhost:8000/api/user/update (header = accept : aplication/json, content-type : application/json, token : bearer tokentadi)(body {"nama_instansi" : "apa ","deskripsi_instansi" : "apa"}) -> akan menambahkan user dengan role 1 ke database**
Route::post('/signup', 'userController@signup'); Route::post('/signin', 'userController@signin'); Route::group(['middleware' => 'jwt.auth'], function(){ Route::get('/user', 'userController@index'); Route::post('/user/facilitator/add', 'userController@createFacilitator'); Route::post('/user/update', 'userController@update'); Route::get('/beasiswa', 'beasiswaController@show'); Route::get('/beasiswa/{id}', 'beasiswaController@single');
ayo-beasiswa's Introduction
ayo-beasiswa's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.