Module: Teleflow::Api::Changes
- Included in:
- Client
- Defined in:
- lib/teleflow/api/changes.rb
Overview
Module Teleflow::Api::Changes provides an API for managing changes in the Teleflow application.
This module includes methods for retrieving, count, and applying bulk changes.
For more information on the Teleflow API(api-teleflow.khulnasoft.com/api#/Changes), see docs.teleflow.khulnasoft.com/api/get-changes/.
Instance Method Summary collapse
-
#apply_bulk_changes(changeIds) ⇒ Hash, number
Apply Bulk Change.
-
#apply_change(change_id) ⇒ Hash, number
Apply change.
-
#changes(query = {}) ⇒ Hash, number
Returns a list of changes that can be paginated using the ‘page` query parameter.
-
#count_changes ⇒ Hash, number
Returns changes count.
Instance Method Details
#apply_bulk_changes(changeIds) ⇒ Hash, number
Apply Bulk Change
41 42 43 |
# File 'lib/teleflow/api/changes.rb', line 41 def apply_bulk_changes(changeIds) post("/changes/bulk/apply", body: changeIds) end |
#apply_change(change_id) ⇒ Hash, number
Apply change
@pathparams:
53 54 55 |
# File 'lib/teleflow/api/changes.rb', line 53 def apply_change(change_id) post("/changes/#{change_id}/apply") end |
#changes(query = {}) ⇒ Hash, number
Returns a list of changes that can be paginated using the ‘page` query parameter
@queryparams:
21 22 23 |
# File 'lib/teleflow/api/changes.rb', line 21 def changes(query = {}) get("/changes", query: query) end |
#count_changes ⇒ Hash, number
Returns changes count
30 31 32 |
# File 'lib/teleflow/api/changes.rb', line 30 def count_changes get("/changes/count") end |