Use this API to search for CAEN codes by either Group (G) or Class (C).
URL: /api/search
Methods: GET, POST
Parameters:
Example:
/api/search?type=C&code=9900
Content-Type: application/json
JSON Body Format:
{
"type": "C", // 'G' for Grupă or 'C' for Clasă
"code": "9900"
}
URL: /api/reload
Method: POST
Use this endpoint to reload the data from the Excel file if it has changed.