Open kamyweb opened 5 days ago
Hi, that's an endpoint we don't yet use. We deduce how to read from the api endpoints from the json resources schema reviso provides, and automatically deduce how they work
Provinces is an experimental endpoint according to reviso, and it does seem that it doesn't follow the rest of the endpoints.
If you can / want you can PR a fix. This consists in creating a dedicated Endpoint
class that fixes the differences, usually either the route lists method or the resource key one.
You can check the ProjectsEndpoint
class for an example
webleit/revisoapi version 2.0.0 with illuminate/collections v8.83.27 on PHP 8.1.27
$reviso->provinces->get();
launch an exception:
Problem is inside illuminate/collections/Collection.php on function keyBy that try to cast the StdClass object as string.
The json received from reviso is the following:
The same if I try to filter/search a single province.
$reviso->provinces->where('code', '=', 'MI')->get();
How can I retrive information for this endpoint?