Rest Api
this a way to create your web application send request and get the response as json file.
this way is usually use for the single page application , but it's up to you how you want to handle it
you are able to use GET/POST/PUT/PATCH/DELETE
php artisan migrate --seed
php artisan serve
4: open the (localhost:8000/getToken) and take toke and put use them in your Api test tool (postMan)
5: there is three type of token for with special capability. use the token and send request and take your response
Route::group(['prefix' => 'v1','middleware' => 'auth:sanctum'], function () {
Route::apiResource('customer', CustomerController::class);
Route::apiResource('invoice', InvoiceController::class);
Route::post('invoice/bulk',[InvoiceController::class,'bulkStore']);
//Eg:localhost:8000/api/v1/customer
});
the first Realise of the api is: 2023-05-۰5
the last update of the game is: 2023-08-05
the current api version is :1.0.0