Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Support follow 201 response

#3

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.

Reported by Guilherme Silveira · June 4th, 2010 @ 06:02 PM

State: resolved
Milestone: upcoming release

Activity

  1. Guilherme Silveira
    Guilherme Silveira
    • Milestone set to upcoming release

    June 4th, 2010 @ 06:14 PM

  2. Carlos Alberto (euprogramador)
    Carlos Alberto (euprogramador)
    • State changed from new to resolved

    A implementação foi feita e usada no mock, testar ainda em um ambiente real, sem o mock

    June 6th, 2010 @ 10:50 PM

  3. Guilherme Silveira
    Guilherme Silveira
    • State changed from resolved to open

    Great. Can you test against the ruby example application prior to closing?
    http://github.com/caelum/restfulie-full-examples

    In rest_from_scratch/part3 you can execute
    rails script/server

    And do a post to http://localhost:3000/items with an item:
    {"item" : {"name" : "item name", "price" : 30}}

    June 7th, 2010 @ 10:52 AM

  4. Carlos Alberto (euprogramador)
    Carlos Alberto (euprogramador)
    • State changed from open to resolved

    Testado com

    rest_from_scratch/part3

    funcionando corretamente

    June 10th, 2010 @ 11:26 AM

  5. Guilherme Silveira
    Guilherme Silveira
    • Milestone changed from upcoming release to upcoming release

    June 18th, 2010 @ 10:30 AM

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.