开发者

accessing restlet from programming languages different than java

开发者 https://www.devze.com 2023-03-11 20:07 出处:网络
i开发者_运维知识库f im using restlet as an API, can I access it from client PCs using programming langages other than java ? and do I need language binding ? or how could this be done ? I don\'t have

i开发者_运维知识库f im using restlet as an API, can I access it from client PCs using programming langages other than java ? and do I need language binding ? or how could this be done ? I don't have experience in this so can you please provide good explanation ? Thanks in advance


You are using the Restlet framework to provide a RESTful API. REST itself is a software architecture style and language independent.

Basically any client capable of generating HTTP requests and deserializing the data you return (JSON, XML, HTML etc.) should be able to access your API.

There are also a lot of client libraries for different languages that make using RESTful services more easy. The implementing REST project has more information about these.


REST architectures are independent from any language. This means that they can be produce and consume by any language / technology and the sent data format can be specified using the Content-Type header. Moreover the possible expected data format for responses can be "configured" using content negociation (headers Accept).

You can even interact with RESTful applications with simple / low level client like RestClient (http://code.google.com/p/rest-client/). The tool allows you specifying hints for the HTTP request.

You can also notice that some works are done at the moment to make available a JavaScript version of Restlet. See the following page for more details: http://wiki.restlet.org/developers/172-restlet/g1/368-restlet.html. A very first version of the Restlet client support is usable within browser and node.js.

Hope it helps you, Thierry

0

精彩评论

暂无评论...
验证码 换一张
取 消