Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import data from REST API #368

Open
maunat opened this issue Nov 29, 2023 · 9 comments
Open

Import data from REST API #368

maunat opened this issue Nov 29, 2023 · 9 comments
Assignees

Comments

@maunat
Copy link

maunat commented Nov 29, 2023

Does Data Injection provide any kind of Rest API to inject CSV files?

@ready2play32
Copy link

ready2play32 commented Dec 8, 2023

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)

@cconard96 cconard96 self-assigned this Dec 8, 2023
@maunat
Copy link
Author

maunat commented Dec 8, 2023

@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.

@cconard96
Copy link
Contributor

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.
glpi-project/glpi#12221

@maunat
Copy link
Author

maunat commented Dec 8, 2023

@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

@ready2play32
Copy link

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

@cconard96
Copy link
Contributor

Work was started to add an integration between this plugin and the new API coming with GLPI 10.1.
See #374

@ready2play32
Copy link

A fork exist to schedule datainjection with csv and it's working fine :
https://github.com/Mirkk/datainjection

@coopernicholas
Copy link

@ready2play32 how did you install his version and how does it work? I already have this plugin and all my data fields mapped.

@ready2play32
Copy link

@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 :

  • csvfilename VARCHAR(255) NOT NULL DEFAULT '',
  • enable_scheduled_injection tinyint 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants