/Laravel_Rest_Api

i simple laravel rest Api

Primary LanguagePHP

🔥🔥What Is this!!🔥🔥

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

🧑‍💻how to use🧑‍💻

1: clone the repository

2: run the migration commend and seed the tables

    php artisan migrate --seed

3: run the application in the localhost

    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

🚸routes🚸

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
});

📝About📝

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