简体   繁体   English

Magento REST API详细信息或详尽的文档

[英]Magento REST API details or swagger doc

How to find the correct json schema to post to the magento endpoint and create an account? 如何找到要发布到magento端点并创建帐户的正确json模式?

Am able to create account only from the front end, I need to be able to do from the backend using curl or Postman. 只能从前端创建帐户,我需要能够使用curl或Postman从后端创建帐户。

http://{ipaddress}/index.php/customer/account/create/ http:// {ipaddress} /index.php/customer/account/create/

This is an external api , i need to consume. 这是一个外部api,我需要使用。

I want to post to this end point from java, however am not able to find the correct request schema of the json endpoint. 我想从Java发布到此端点,但是无法找到json端点的正确请求架构。

Any help to find the swagger end point or schema would be great 找到摇摇欲坠的终点或方案的任何帮助都很好

I am assuming you are talking about magento 1? 我假设您是在谈论magento 1? Have you tried the REST API by chance? 您是否偶然尝试了REST API? It's well written out on how you should make a call to it here . 关于如何在此处致电给您,它写得很好。

If you need more functionality than just creating an account, you can also take a look at the SOAP API which handles more things, but does not support JSON from the box. 如果您需要的不仅仅是创建帐户,还需要更多功能,那么您还可以查看SOAP API,该API处理更多内容,但不支持JSON。 They did implement the WS-I complaint mode to support Java calls, so maybe that's something you'd be interested in as well. 他们确实实现了WS-I投诉模式来支持Java调用,所以也许您也会对此感兴趣。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM