1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

separated params get example from https example

This commit is contained in:
Julien Kirch 2010-05-31 19:56:41 +02:00
parent cd8f5b2c79
commit 4e417b709a

View file

@ -13,7 +13,9 @@ of specifying actions: get, put, post, delete.
RestClient.get 'http://example.com/resource'
RestClient.get 'https://user:password@example.com/private/resource', {:accept => :json, :params => {'foo' => 'bar'}}
RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}}
RestClient.get 'https://user:password@example.com/private/resource', {:accept => :json}
RestClient.post 'http://example.com/resource', :param1 => 'one', :nested => { :param2 => 'two' }