Thanks.
As we spoke today, there is the inniciative to generalize the ruby
tokamak language to be supported in Java too. The first step is to
create a new marshaller on the client side, then support jruby, then
eval the tokamak script using Restfulie. As soon as its working we can
extract tokamak.
Our annotations follow:
recurso.link("order").follow().post(order);
serializer = map(content type)
serializer.serialize(obj)
recurso.link("order").follow().post(order);
XmlSerializer
context = new jrubycontext
context.eval("restfulie.rb")
context.set(Class.getSimpleName(), obj)
String xml = context.eval(Class.getSimpleName() + ".to_xml.rb")
member(order) do
price = order.price
collection(order.products) do |product|
id = product.id
end
end
<order>
<price>...
<products>
<product>
<id>
</product>
</products>
</order>
Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/