I got a problem when i try a route :
http://myocsserver/ocsapi/v1/computers?start={startoffset}&limit={limitoffset}
I'm using it like this : https://website/ocsapi/v1/computers?start=0&limit=50
It says "We're sorry, something went wrong", when i open my error.log in apache2 i got this :
DBD::mysql::db selectall_arrayref failed: Table 'ocsweb.service' doesn't exist at /usr/local/share/perl/5.24.1/Api/Ocsinventory/Restapi/ApiCommon.pm line 102.
[2020-03-27 14:19:14.46465] [6022] [error] DBD::mysql::db selectall_arrayref failed: Table 'ocsweb.service' doesn't exist at /usr/local/share/perl/5.24.1/Api/Ocsinventory/Restapi/ApiCommon.pm line 102
I got the sql file from source code of ocs, no "service" table exists. Can someone help me on this ?
I don't know if this help, but this query works : https://website/ocsapi/v1/computers/search?start=0&limit=50