Created
April 27, 2011 08:24
-
-
Save hemalich/943919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main)> resource = Restfulie.at('http://localhost:3000/items').get.resource | |
Response: | |
ready to execute request using stack typeRestfulie::Client::Feature::BaseRequestargstypeRestfulie::Client::Feature::RescueExceptionargstypeRestfulie::Client::Feature::SetupHeaderargstypeRestfulie::Client::Feature::SerializeBodyargstypeRestfulie::Client::Feature::EnhanceResponseargstypeRestfulie::Client::Feature::FollowRequestargs | |
invoking filter Restfulie::Client::Feature::FollowRequest with #<Restfulie::Client::Dsl:0xb708ff7c> at | |
invoking filter Restfulie::Client::Feature::EnhanceResponse with #<Restfulie::Client::Dsl:0xb708ff7c> at | |
invoking filter Restfulie::Client::Feature::SerializeBody with #<Restfulie::Client::Dsl:0xb708ff7c> at | |
invoking filter Restfulie::Client::Feature::SetupHeader with #<Restfulie::Client::Dsl:0xb708ff7c> at | |
invoking filter Restfulie::Client::Feature::RescueException with #<Restfulie::Client::Dsl:0xb708ff7c> at | |
invoking filter Restfulie::Client::Feature::BaseRequest with #<Restfulie::Client::Dsl:0xb708ff7c> at | |
GET /items | |
=> {"items"=>{"link"=>{"href"=>"http://localhost:3000/items", "rel"=>"self", "type"=>"application/xml"}, "item"=>[{"price"=>500, "name"=>"Pendrive", "link"=>{"href"=>"http://localhost:3000/items/1", "rel"=>"self", "type"=>"application/xml"}}, {"price"=>25000, "name"=>"Laptop", "link"=>{"href"=>"http://localhost:3000/items/2", "rel"=>"self", "type"=>"application/xml"}}]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment