API routes are declared in routes/api.php, prefixed with /api, with no session or CSRF protection. They return JSON and generally authenticate by token. Route::apiResource generates the routes of a resource without the create and edit forms.
Example
Route::apiResource('produits', ProduitController::class);