Method: ONEAccess::Http::HttpClient.post
- Defined in:
- lib/oneaccess/http/http_client.rb
.post(url, body, headers = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/oneaccess/http/http_client.rb', line 13 def post(url, body, headers = {}) RestClient.post(url, body.to_json, headers.merge(auth_headers)) rescue RestClient::Exception => e raise create_api_error(e) end |