REST API

Started by wouterdt, 11 July 2021, 12:51:04

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

wouterdt

Hi

Not sure where to put this, so here it goes: ;D
So i'm looking to import a big excel file regulary into alexandria.
I did not really find the SQL or csv import to satisfy my needs, so i started tinkering with com_api.
https://docs.techjoomla.com/joomla-rest-api/com-api-plugin-development/
Hope is to be able to add categories, books and maybe more.
You can checkout my (very) limited code here  8)
https://github.com/wouterdt/joomla_plg_api_abook
current implementation only gets and adds categories  ::) so nothing really big, but i thought it was worth sharing the idea anyway.
Please be aware that i'm not at all experienced in writing php or Joomla code for that matter.
So i hope it's not too awfull!

Thanks for reading
Wouter

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

Hi wouterdt,
thanks for that contribute.
I never worked with the APIs but this is a great extension!

If you are agree I could add the link to your extension (with credits) to the Contribution page of Abook website.
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]