[ 'collectionOperations' => [ [ 'get', 'post', 'get_min_max_date' => [ 'method' => 'GET', 'path' => '/get-min-max-date', 'controller' => 'GetMinAndMaxDateController::class', 'openapi_context' => [ 'summary' => 'Allows you to retrieve the minimum and maximum date of statistics', 'description' => 'Allows you to retrieve the minimum and maximum date of statistics for all products or according to the list of products given as a parameter', 'parameters' => [ [ 'name' => 'products', 'in' => 'query', 'required' => false, 'description' => 'Liste d\'identifiants de produits', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'integer', ], ], ], ], ], ], 'get_by_year' => [ 'method' => 'GET', 'path' => '/get-by-year', 'controller' => 'GetByYearController::class', 'openapi_context' => [ 'summary' => 'Allows you to retrieve the statistics by year', 'description' => 'Allows you to retrieve the minimum and maximum date of statistics for all products or according to the list of products given as a parameter', 'parameters' => [ [ 'name' => 'products', 'in' => 'query', 'required' => false, 'description' => 'Liste d\'identifiants de produits', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'integer', ], ], ], [ 'name' => 'name', 'in' => 'query', 'required' => false, 'description' => 'Nom en tant que chaîne de caractères', 'schema' => [ 'type' => 'string', ], ], ], ], ], 'get_by_month' => [ 'method' => 'GET', 'path' => '/get-by-month', 'controller' => 'GetByMonthController::class', 'openapi_context' => [ 'summary' => 'Allows you to retrieve the statistics by year', 'description' => 'Allows you to retrieve the minimum and maximum date of statistics for all products or according to the list of products given as a parameter', 'parameters' => [ [ 'name' => 'products', 'in' => 'query', 'required' => false, 'description' => 'Liste d\'identifiants de produits', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'integer', ], ], ], [ 'name' => 'name', 'in' => 'query', 'required' => false, 'description' => 'Nom en tant que chaîne de caractères', 'schema' => [ 'type' => 'string', ], ], [ 'name' => 'to', 'in' => 'query', 'required' => false, 'description' => 'Date au format YYYY-MM', 'schema' => [ 'type' => 'string', ], ], ], ], ], 'get_by_day' => [ 'method' => 'GET', 'path' => '/get-by-day', 'controller' => 'GetByDayController::class', 'openapi_context' => [ 'summary' => 'Allows you to retrieve the statistics by day', 'description' => 'Allows you to retrieve the statistics by day', 'parameters' => [ [ 'name' => 'products', 'in' => 'query', 'required' => false, 'description' => 'Liste d\'identifiants de produits', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'integer', ], ], ], [ 'name' => 'name', 'in' => 'query', 'required' => false, 'description' => 'Nom en tant que chaîne de caractères', 'schema' => [ 'type' => 'string', ], ], [ 'name' => 'to', 'in' => 'query', 'required' => false, 'description' => 'Date au format YYYY-MM', 'schema' => [ 'type' => 'string', ], ], ], ], ], ], ], 'repositoryClass' => [ 1 => 'App\\Repository\\StatisticRepository', ], 'filterClass' => [ 2 => 'ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Filter\\SearchFilter', 'ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Filter\\DateFilter', 'ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Filter\\OrderFilter', ], 'properties' => [ 2 => [ 'name' => 'exact', 'uid' => 'exact', 'product' => 'exact', 'service' => 'exact', 'device' => 'exact', ], [ 'createdAt', ], [ 'id', 'name', 'createdAt', ], ], ], ], [ $o[0], $o[1], $o[2], $o[3], $o[4], $o[5], ], [] ); }];