Listar los años con cotizaciones
GET/api/years-quotation
Devuelve, sin paginar, los años distintos en que se crearon cotizaciones.
Permiso
Sección titulada «Permiso»No exige un permiso del módulo: basta con un token válido (auth:sanctum). El controlador no llama a ninguna política.
curl \ "https://servererp.allendostmen.app/api/years-quotation" \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/json"const response = await fetch( "https://servererp.allendostmen.app/api/years-quotation", { method: "GET", headers: { Authorization: `Bearer ${token}`, Accept: "application/json", }, },);const data = await response.json();use Illuminate\Support\Facades\Http;
$response = Http::withToken($token) ->acceptJson() ->get('https://servererp.allendostmen.app/api/years-quotation');Años200
[ { "year": 2025 }, { "year": 2026 }]