Author Topic: is there any restful api for VM???  (Read 1633 times)

Bhole

  • Beginner
  • *
  • Posts: 1
  • A beginner
is there any restful api for VM???
« on: October 30, 2018, 08:51:19 am »
Does any of you know of anyone maintaining a restful api for VM?
i thinking of a plugin that you install on your VM and then you can create products, delete products, create orders etc.?
This could probably also be used as a sync'ing plugin?????
__________________________________________________________________________________________________________________________________________

Watch Movies Online CyberGhost  ExpressVPN

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: is there any restful api for VM???
« Reply #1 on: October 30, 2018, 09:06:36 am »
Maybe this can help you a bit.

https://api.virtuemart.net/

Regards
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.


Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: is there any restful api for VM???
« Reply #3 on: October 30, 2018, 11:07:34 am »
Valerie, it's a soap solution, a little obsolete or not ?

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Re: is there any restful api for VM???
« Reply #4 on: October 30, 2018, 11:39:17 am »
Wtf?

https://forum.virtuemart.net/index.php?topic=141201.msg496971#msg496971

anyway..so far i have made my own oneway sync script
Best regards,
Wel

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: is there any restful api for VM???
« Reply #5 on: October 30, 2018, 11:40:03 am »
Valerie, it's a soap solution, a little obsolete or not ?

SOAP might not be the fastest protocol alive, but it still works well over a lot of transport protocols and will probably still do when others are already forgotten.
Nothing is wrong with SOAP, if you don't need a high performance scenario.

I guess the TO was interested in solutions, that seems to be one. Of course, better suggestions are always welcome.

 

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9230
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: is there any restful api for VM???
« Reply #6 on: October 30, 2018, 11:54:52 am »
personally I dislike SOAP   ;)  - find it difficult to work with and seems so complex for what should be a relatively simple task

When I need a hookup between an external "system" and I have control over the url and payload (so also applies to this question)  I use a small J comp I have built that receives JSON payloads and does what ever functions in VM that are required.
For protection I use header user/password etc
urls in the form:  /index.php?option=com_vmxxx&view=notification&task=productupdate  etc

whats a "TO"?


GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: is there any restful api for VM???
« Reply #7 on: October 30, 2018, 14:31:49 pm »
whats a "TO"?

It's the Thread Opener, it's like someone who starts a thread with a question and wants answers to that question. Not to confuse with threat. :-O
Since I don't have answers right now, I stop cluttering the thread.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: is there any restful api for VM???
« Reply #8 on: October 30, 2018, 18:22:00 pm »
@StefanSTS,
A solution is not always the right solution.
I have plenty of customers that tried a solution and have to find another one some weeks later because the solution was bad and loosed many money and time.

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: is there any restful api for VM???
« Reply #9 on: October 30, 2018, 20:50:49 pm »
@Studio 42
I did not say it was the right solution, it might be, it might not be, but this tool is at least something that you can put into the pot for evaluation.

It might be a good tool, and if you call it "a little obsolete" you should have a good reason to say so. Do you know it, is it not working?

Just because the protocol is not JSON and not in everyones favor, it doesn't mean it's bad and should be discarded from the beginning. That's what your comment suggested.

If someone has used it or is using it and has reliable information towards the quality that would be useful.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: is there any restful api for VM???
« Reply #10 on: October 30, 2018, 23:27:13 pm »
restful api is not soap.
soap is a protocol and have nothing to do with restful.
restful is only a way to get or set data that you need in any form XML,JSON,RSS,CSV ... and have nothing to do with JSON directly.
The question was "Does any of you know of anyone maintaining a restful api for VM?" and not "does someone know a soap api", it's why my answer.

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: is there any restful api for VM???
« Reply #11 on: October 31, 2018, 13:26:03 pm »
restful api is not soap.
soap is a protocol and have nothing to do with restful.
restful is only a way to get or set data that you need in any form XML,JSON,RSS,CSV ... and have nothing to do with JSON directly.
The question was "Does any of you know of anyone maintaining a restful api for VM?" and not "does someone know a soap api", it's why my answer.

You did not offer any new information and avoided to answer the questions.

If you read more than the first line the question was also:
"i thinking of a plugin that you install on your VM and then you can create products, delete products, create orders etc.?"

So is the main point to have a plugin that does the intended work?
Or is the main point to use a REST API?

For me Alataks suggestion was exactly to the point of the question.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: is there any restful api for VM???
« Reply #12 on: October 31, 2018, 23:19:19 pm »
Here a restApi for Joomla, but plugin is needed for Virtuemart
https://extensions.joomla.org/extension/rest-api/

webkul

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 137
    • eCommerce On Salesforce
Re: is there any restful api for VM???
« Reply #13 on: November 09, 2018, 12:20:12 pm »
Hi,

I would like to inform you that we can develop such Restful API for VirtueMart, that you can use, for detail discussion please write us @, support@webkul.com