Support follow 201 response
Reported by Guilherme Silveira | June 4th, 2010 @ 06:02 PM | in upcoming release
If the response to a POST request is 201, follow its Location header, i.e.
Restfulie.at('uri').as('application/xml').post(some_object)
Will create a resource and redirect the client to retrieve (GET) another one by its Location header.
Comments and changes to this ticket
-
Carlos Alberto (euprogramador) June 6th, 2010 @ 10:50 PM
- State changed from new to resolved
A implementação foi feita e usada no mock, testar ainda em um ambiente real, sem o mock
-
Guilherme Silveira June 7th, 2010 @ 10:52 AM
- State changed from resolved to open
Great. Can you test against the ruby example application prior to closing?
http://github.com/caelum/restfulie-full-examplesIn rest_from_scratch/part3 you can execute
rails script/serverAnd do a post to http://localhost:3000/items with an item:
{"item" : {"name" : "item name", "price" : 30}} -
Carlos Alberto (euprogramador) June 10th, 2010 @ 11:26 AM
- State changed from open to resolved
Testado com
rest_from_scratch/part3
funcionando corretamente
-
Guilherme Silveira June 18th, 2010 @ 10:30 AM
- Milestone changed from upcoming release to upcoming release
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 »
Restfulie's javascript port