lib/api_client/connection/basic.rb in api_client-0.5.18 vs lib/api_client/connection/basic.rb in api_client-0.5.19

- old
+ new

@@ -41,9 +41,22 @@ # This method automatically adds the application token header def post(path, data = {}, headers = {}) exec_request(:post, path, data, headers) end + #### ApiClient::Connection::Abstract#patch + # Performs a PATCH request + # Accepts three parameters: + # + # * path - the path request should go to + # * data - (optional) data sent in the request + # * headers - (optional) headers sent along in the request + # + # This method automatically adds the application token header + def patch(path, data = {}, headers = {}) + exec_request(:patch, path, data, headers) + end + #### ApiClient::Connection::Abstract#put # Performs a PUT request # Accepts three parameters: # # * path - the path request should go to