Import data from REST API
Does Data Injection provide any kind of Rest API to inject CSV files?
I am in the same case, there is a testwebservice.php but no way to get it working
After a few update of the file, at the end i have this
+ Calling 'glpi.doLogin' on http://support-test/plugins/webservices/xmlrpc.php
xmlrpc error(4): Server not ready (xml-rpc)
@ready2play32 no way to have it working. I've been looking for a possible solution for a while but at the end I personally changed my mind and starting using native GLPI restAPI.
They work even with custom objects and fields.
No much support from the plugin's Dev here. I've known they want to ingest this particular plugin into the new version of GLPI but there is no roadmap.
The webservices plugin hasn't been updated in a while and that is what is currently used as an API integration by this plugin. Native API is the replacement for the webservices plugin.
Maybe a new API integration can be made between this plugin and the newer REST API coming with GLPI 10.1, or something completely native to the new API. https://github.com/glpi-project/glpi/pull/12221
@cconard96 thank you for your clarification. I've proposed even another enhancement for this useful plugin and it is to get it integrated natively with the statecheck one to check massive input with specific rules. Indeed, I've provided already a solution that is working to me for my business. Hope it'll be accepted some day.
Thank you
Maybe the last version of glpi-webservices work but i can't find anywhere because the plugin page provide a link that does no longer exist. On sourcefourge i can only find version from 2016 if someone have version glpi-webservices-2.0.0.tar.gz to share (for GLPI 10.0.10 maybe)
Thanks
Work was started to add an integration between this plugin and the new API coming with GLPI 10.1. See #374
A fork exist to schedule datainjection with csv and it's working fine : https://github.com/Mirkk/datainjection
@ready2play32 how did you install his version and how does it work? I already have this plugin and all my data fields mapped.
@coopernicholas To install this plugin, you need to git clone the repository into your glpi server and copy the folder in plugins folder of GLPI Maybe after the install, to enable schedulable injection for a glpi model, you have to manually add 2 columns into your glpi database if these are not created in table glpi_plugin_datainjection_models, make sure you have these two columns :
csvfilenameVARCHAR(255) NOT NULL DEFAULT '',enable_scheduled_injectiontinyint NOT NULL DEFAULT 0,
after this you have to recreate every model that you already have if this correctly work, in model creation, you gonna see enable status of schedulable injection and csv filename to make it work and in automatic action in glpi, enable datainjection task