dsfdsf46465 2013-05-14 17:58
浏览 83
已采纳

prestashop通过url webservice api创建和更新资源

I (unfortunately) have to write a client application as front end to a prestashop powered web site. I'd need to perform all CRUD operations on resources via url webservice and I'm stuck on create and update. I was very surprise to find out how few examples are available on the web since prestashop is supposed to be a widely used cms. However, till now I came to:

GET http://www.myshop.com/api/myresource/id

to get xml for resource with given id or

GET http://www.myshop.com/api/myresource/?display=full&filter[field]=[value]

to filter results. I'm writing this just because I had to struggle with google to achieve this information, this filters stuff might help somebody in the future.

DELETE http://www.myshop.com/api/myresource/id

to delete a resource (I suppose filters work here too, but didn't try so far)

now, does somebody know how create and update resources? I tried

POST/PUT http://www.myshop.com/api/myresource/

giving couples of field - value in http request parameters with no luck, I'm getting internal server error. No, I have no direct access to the server so I don't know what error is thrown and I hope it can be solved without bother website maintainers, I'd like to save my ammunitions.

The only useful resource I found on the web is this one, I also looked among other question on SO and suggested links in those question was of no help.

  • 写回答

3条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 和您碰到了同一个问题
      • ¥15 如何在微信支付V3PHP版请求中添加header?
      • ¥15 在数字信号处理中用MATLAB显示波形。
      • ¥15 keil MDK软件进行仿真调试的局限
      • ¥15 关于gateway产生临时文件夹的问题
      • ¥15 Java Broken Pipe以及OOM
      • ¥20 请问有没有RTL8211FS的参考原理图
      • ¥50 esp32的platfromio工程添加文件就会编译失败
      • ¥15 linux下运行VASP报错
      • ¥15 python里面查找赋值,如何可以在剩余未空值的行里面进行进一步的筛选呢?