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:
parent
cd8f5b2c79
commit
4e417b709a
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ of specifying actions: get, put, post, delete.
|
||||||
|
|
||||||
RestClient.get 'http://example.com/resource'
|
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' }
|
RestClient.post 'http://example.com/resource', :param1 => 'one', :nested => { :param2 => 'two' }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue