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
-
Alexandre Atoji November 15th, 2010 @ 05:53 PM
- State changed from new to resolved
-
Alexandre Atoji December 21st, 2010 @ 04:41 PM
- Assigned user set to Alexandre Atoji
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 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