Class: CortexApp::CustomData
Overview
API client to interact with Cortex custom data
Constant Summary
Constants inherited from Api
Instance Method Summary collapse
-
#post(entity_tag:, data:) ⇒ Object
POSTs custom data to Cortex for a specific entity.
-
#put_bulk(data:) ⇒ Object
Bulk PUTs custom data to Cortex for multiple entities.
Methods inherited from Api
Constructor Details
This class inherits a constructor from CortexApp::Api
Instance Method Details
#post(entity_tag:, data:) ⇒ Object
POSTs custom data to Cortex for a specific entity
10 11 12 |
# File 'lib/cortex_app/custom_data.rb', line 10 def post(entity_tag:, data:) http_post(path: post_path(entity_tag), data: data) end |
#put_bulk(data:) ⇒ Object
Bulk PUTs custom data to Cortex for multiple entities
17 18 19 |
# File 'lib/cortex_app/custom_data.rb', line 17 def put_bulk(data:) http_put(path: 'catalog/custom-data', data: data) end |