The current API in GLPI works at a very low level and is only a thin layer over the PHP classes and the search engine.
Just like the Infocom data is in a separate tab, you need a separate API call when getting a single asset's details.
Like in GLPI when searching though, you can add columns to be able to see at least some of the infocom data. For the API, that means passing the 'forcedisplay' parameter with the search option numbers related to the columns you want to force to show.
How to determine what those search option numbers are? You have to call the /listSearchOptions/:itemtype endpoint.
Now the good news, and a little hype generation for the next main GLPI version .
GLPI 11.0 is the next main release and will be coming with a new REST API. It is a high-level API with more strict schema control. So, while not all data will be available (at least not to start), it will be a lot more user friendly and even come with a Swagger UI documentation.
This will exist alongside the existing API.
Now, the new REST API won't solve your issue on its own, but the new API knows how certain types of data are related like Cartridges and Printers (Cartridge > Printer Model > Printer) and even if all that data isn't shown in the REST API it enables the use of a second new feature/API.
The new REST API has a GraphQL wrapper.
This means you can define exactly what data you need from the server even across datatypes as long as the API knows how they are related.
Example:
query {
CartridgeItem {
id
name
printer_models {
name
product_number
}
}
}
While the infocom data isn't available in the new API yet, it is on my list of things to add before the GLPI 11.0 release.
]]>Now I get an error.
The File "KPM Schalter auf AUTO.jpg" not found.
Back to last page.
Another error is displayed at the browser windows: Zugriff verweigert - GLPI
]]>edit .po files and add the string "xxxxxx_report_title" and its translation then convert .po file to .mo file ( use on line converters)
then replace .mo file in "locale" folder.
then refresh translation cache ( glpi -> debug mode> setup> general> performance> )
]]>INSERT INTO `glpi_notificationtargets` (`id`, `items_id`, `type`, `notifications_id`) VALUES (NULL, '1', '99', '105');
items_id => /marketplace/webhook/front/config.form.php?id=1
type => /marketplace/webhook/inc/config.class.php const (WEBHOOK_TYPE = 99)
notifications_id => /front/notification.form.php?id=105
Notification templates - Email text body
{
"id": "##ticket.id## ",
"name": "##ticket.title##",
"type": "##FOREACH LAST 1 tasks####task.category####ENDFOREACHtasks##",
"state": "##FOREACH LAST 1 tasks####task.status####ENDFOREACHtasks##"
}
Webhook Raw Content
{
"id": "0000637 ",
"name": "MANTENIMIENTO PREVENTIVO SG-MG01",
"type": "LISTA DE CHEQUEO",
"state": "Done"
}
GLPI 10.0.7
]]>[Mon Mar 18 09:36:54 2024][error] [http client] communication error: 403 Forbidden
[Mon Mar 18 09:36:54 2024][error] No supported answer from server at https://[domain_name]/marketplace/glpiinventory/
In my URL https://[domain_name]/front/inventory.conf.php I have the Enable Inventory option Active
I found it strange that it was an HTTP error and not HTTPS, since it is a secure server.
]]>I have a weird problem after installation of GLPI. When I want to create a new ticket, Choose files to upload button is missing, I either tried it with root GLPI user and basic self-service user, no difference.
Can someone help me with this?
I can't post links to print screens unfortunately
]]>When I tested, I was able to view the Credit tab in the entity configuration without issue. I could recreate the last two warnings by opening the credit dropdown in a followup before configuring anything in the entity, but they are non-blocking errors.
]]>Can someone helps me
]]>I added a date field to a simplified ticket view, but the width and alignment of the new field is different from the rest, it fills the whole width of the view. I tried modifying the CSS it references to make it smaller, but it seems that same value is shared with other UI elements, and it ends up breaking the user interface.
This is the Ticket view
This is the value i changed, but it also made the search bar and other UI elements smaller.
Any help or direction is appreciated.
]]>Im new to glpi
Is it possible to write a script that makes a computer reboot everyday at the same time and push it to all the devices on GLPI.
Could i also monitor hardware changes on a device? If a cpu is replaced for example?
Thanks
Thomas
]]>