在多个轨道应用程序之间传输数据
现在我有一个任务要做,任务如标题所示,现在我应该创建一个 Rails 应用程序以从其他四个 Rails 应用程序获取数据。我应该为 Rails 应用程序制作接口,这样我的新 Rails 应用程序就可以从其他应用程序获取数据。我该怎么办?解决任务的最佳方法是什么?网络服务或其他解决方案?谢谢您并致以诚挚的问候!
Now i have a task to do,the task is as the title said, now i should crate a rails application to get the data from the other four rails application. i should make the interface for the rails application ,so my new rails application can get the data from the others. how should i do? what is the best way to solve the task? web-service or some other solution for this? Thank you and best regards!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
XMLHttpRequest
调用它。XMLHttpRequest
.答案是“这取决于情况”。为了确定下来,您需要了解的信息是:
但最快、最简单的方法(足以让您入门)是使用 Rails 的内置 REST 功能:
The answer is, "it depends." Info you'd need to know in order to nail it down is:
But the fastest and easiest way to do this, which will be enough to get you started, is to use the built-in REST features of Rails: