简体   繁体   English

什么是最适合构建REST API的RIA编程语言?

[英]What is the most suitable RIA programming language to construct a REST API?

We are currently designing a REST API that we want to publish in a few months. 我们目前正在设计一个REST API,希望在几个月内发布。 Since this is a brand new application we can choose any other programming language other than PHP. 由于这是一个全新的应用程序,我们可以选择除PHP之外的任何其他编程语言。 At this moment we are using the following link to have a base of best practices for APIs . 目前,我们正在使用以下链接为API提供最佳实践基础。

What is the most suitable Rich Internet Application Programming Language to construct a REST API? 什么是最适合构建REST API的Rich Internet Application编程语言? I know you can accomplish this goal with almost any PL, we are looking for one that will give us the base. 我知道您几乎可以使用任何PL都可以实现这一目标,我们正在寻找可以为我们奠定基础的目标。 And while you are at it, if you can point the second better and the reasoning that will be perfect. 而当您处于这种状态时,如果您能指出第二点更好的话,那么这将是完美的推理。

Thanks SO for this great website. 非常感谢您访问这个伟大的网站。

EDIT 1: Other link related to this question . 编辑1:与此问题相关的其他链接。

Depends on what your team is comfortable with. 取决于您的团队的适应程度。

You really can't go wrong with Ruby on Rails or Microsoft .NET (using WCF with REST endpoints). 使用Ruby on Rails或Microsoft .NET(将WCF与REST端点一起使用),您确实不会出错。

Ruby on Rails is good if that architecture works for your application and you only need that REST endpoint. 如果该体系结构适用于您的应用程序并且您只需要该REST端点,则Ruby on Rails会很好。

With .NET, you can create the REST endpoint for your WCF service but also provide other endpoints if you find you need them. 使用.NET,您可以为WCF服务创建REST终结点,但是如果发现需要,还可以提供其他终结点。

I actually don't think you could use an RIA language to build a REST API, because a REST (Web) API is an collection of resources served via an HTTP server. 我实际上不认为您可以使用RIA语言来构建REST API,因为REST(Web)API是通过HTTP服务器提供服务的资源的集合。 An RIA usually runs client-side. RIA通常在客户端运行。

So I assume you're asking what's the most suitable programming language to build a REST API which will be used by an RIA. 因此,我假设您在问什么是最合适的编程语言来构建供RIA 使用的REST API。

There are many good choices. 有很多不错的选择。 I'm not sure what your parameters are, so I'll suggest what I would use if I needed to build a REST API. 我不确定您的参数是什么,因此我将建议您在需要构建REST API时使用的参数。

Some good choices: 一些不错的选择:

  • Java, using the Restlet framework. Java,使用Restlet框架。 I use this all the time and I'm very happy with it. 我一直在使用它,对此我感到非常满意。
  • Ruby, using the Ruby on Rails framework or the Sinatra micro-framework Ruby,使用Ruby on Rails框架或Sinatra微框架
  • Python, using a micro-framework such as Bottle , djng , itty , juno , mnml , newf , web.py , or Werkzeug . Python,使用诸如Bottledjngittyjunomnmlnewfweb.pyWerkzeug之类的微框架。 It's definitely possible to use a full-blown framework such as Django or CherryPy, but I've found them to be not particularly well suited to this use case. 绝对有可能使用成熟的框架,例如Django或CherryPy,但是我发现它们并不特别适合此用例。

Hope this helps! 希望这可以帮助!

如果不是PHP,则为Ruby或Python。

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

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