lib/api-client/class_methods.rb in api-client-2.0.0 vs lib/api-client/class_methods.rb in api-client-2.0.1
- old
+ new
@@ -27,10 +27,10 @@
#
# @param [Hash] attributes hash with the attributes to send.
# @param [Hash] header hash with the header options.
# @return [Base] the object initialized.
def post(attributes, header = {})
- url = "#{ApiClient.config.path}#{self.resource_path}/"
+ url = "#{ApiClient.config.path}#{self.resource_path}"
response = ApiClient::Dispatcher.post(url, attributes, header)
params = ApiClient::Parser.response(response, url)
build(params)
end
\ No newline at end of file