You are not logged in.
Pages: 1
Hi,
I am just getting started with the glpi API and run into this issue while querying for "all items" from a collection.
The docs say the url is
URL: apirest.php/:computer/ would return me the entire list of machines. However, I am only getting like 32 machines when its suppose to return 500~
furthermore, when i use "Get an item" to get a single item, and use a script to iterate through 500 ids, I am able to get the information of all 500~ machines
URL: apirest.php/:computer/:id
Any thoughts?
Thanks!
Offline
did you set range ?
$url="/Computer/?is_deleted=0&range=0-500&get_hateoas=0";
Trouver la panne avant de réparer...
*GLPI 9.4.6+fusion9.4+2.4+behaviours2.3.2+reports+fields+appliances+pdf+badges+formcreator2.10.4 PHP7.4 Mariadb10.3
*GLPI 9.4.6(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1) php7.3 mysql5.6 hebergé sur serveur mutualisé.
TEST GLPI9.5.3 mutualisé OVH ( collecteur KO en pop3)
Online
did you set range ?
$url="/Computer/?is_deleted=0&range=0-500&get_hateoas=0";
Ah, Ic yup that just fixed it.
Thanks for the quick responds!
Offline
follow up question, when query /computers the json it returns includes the "links" entry which has DeviceGraphicCard linked to /Computer/256/DeviceGraphicCard/.
But when i go on that url, it gives back a whole list of graphics cards instead of the one linked to that specific machine.
How would i query the graphics card specific to that machine?
Offline
Pages: 1