[英]Basic DRUPAL send data from external site
I have never used Drupal before and have been asked to send data from a form on "website A" to a Drupal site, I have set up Services module and have my endpoint. 我以前从未使用过Drupal,并且被要求将数据从“网站A”上的表单发送到Drupal站点,我已经设置了“服务”模块并有了端点。 dose anyone have a simple html or php form i can use to send data to this endpoint ?
剂量有人有一个简单的html或php形式,我可以用来将数据发送到此端点吗?
do I POST data to http://localhost/communicator-app/bensapi/node ? 如何将数据发布到http:// localhost / communicator-app / bensapi / node ?
There are a variety of clients that will let you create REST calls to test services. 有多种客户端可以让您创建REST调用来测试服务。 You don't need a special app/form to do it.
您不需要特殊的应用程序/表单即可。 Chrome has a couple, and there is one called Insomnia that I've heard some good things about, but I haven't had a chance to use it myself.
Chrome有一对,还有一个叫做Insomnia的 ,我听说过一些不错的东西,但是我自己没有机会使用它。
Probably the most common tool for this sort of thing is Postman . 可能最常见的工具是Postman 。 Personaly I use Paw , it a bit more powerful.
我个人使用Paw ,功能更强大。 I've not looked at Insomnia.
我没有看过失眠症。
You could also look at Apiary it's got a REST client build in and is a great way to document your API. 您还可以查看Apiary,它内置了REST客户端,并且是记录API的好方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.