#5 ✓resolved
Guilherme Silveira

Suportar envio de um objeto

Reported by Guilherme Silveira | October 25th, 2010 @ 09:31 AM

Ao fazer um post,put ou patch com um objeto - nao uma string - o Restfulie deve serializa-lo.
Para isso implementar um strategy:

def post(what)

if what.kind_of? String

post_content(what)

else

marshaller = marshallers[header["Content-type"]]
post_content(marshaller.marshal(what))

end

end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A python version of restfulie

Shared Ticket Bins

People watching this ticket

Pages