lib/octoparts/client.rb in octoparts-0.0.7 vs lib/octoparts/client.rb in octoparts-0.0.8
- old
+ new
@@ -19,10 +19,12 @@
def post(path, body = nil, headers = {})
process(:post, path, {}, body, headers)
end
- # TODO: doc
+ # Post an AggregateRequest and return AggregateResponse.
+ # @param [Octoparts::Model::AggregateRequest, Hash] params aggregate request
+ # @return [Octoparts::Response] response object
def invoke(params)
body = create_request_body(params)
headers = { content_type: 'application/json' }
resp = post(OCTOPARTS_API_ENDPOINT_PATH, body, headers)
Response.new(