Student Finder is a Restful Api for managing Student Details and store it collectively which can further be used for analytics and is based on Laravel framework.
- Supports CRUD operations of student records.
- Including version control
First, clone the repo:
$ git clone https://github.com/jai-k-gohil/Student-Finder.git
composer install
Create .env
file:
$ cat .env.example > .env
If you want you can edit database name, database username and database password.
$ php artisan migrate --seed
And also run
php artisan key:generate
to generate an application key for this app to run and you are ready to go.
Route::prefix('v1')->group(function(){
Route::apiResource('/student', 'Api\v1\StudentController')
->only(['show','destroy','update','store']);
Route::apiResource('/students', 'Api\v1\StudentController')
->only('index');
});
Route::prefix('v2')->group(function(){
Route::apiResource('/student', 'Api\v2\StudentController')
->only('show');
});