Sha256: 2443c79bf17ab846591954214e1dd8bb33f80c93000f968b2b5922c82e559a91
Contents?: true
Size: 1.8 KB
Versions: 10
Compression:
Stored size: 1.8 KB
Contents
# frozen_string_literal: true module Crowdin module ApiResources module Workflows # -- For Enterprise mode only -- def list_workflow_steps(query = {}, project_id = config.project_id) enterprise_mode? || raise_only_for_enterprise_mode_error project_id || raise_project_id_is_required_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/projects/#{project_id}/workflow-steps", { params: query } ) Web::SendRequest.new(request).perform end def get_workflow_step(step_id = nil, project_id = config.project_id) enterprise_mode? || raise_only_for_enterprise_mode_error step_id || raise_parameter_is_required_error(:step_id) project_id || raise_project_id_is_required_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/projects/#{project_id}/workflow-steps/#{step_id}" ) Web::SendRequest.new(request).perform end def list_workflow_templates(query = {}) enterprise_mode? || raise_only_for_enterprise_mode_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/workflow-templates", { params: query } ) Web::SendRequest.new(request).perform end def get_workflow_template(template_id = nil) enterprise_mode? || raise_only_for_enterprise_mode_error template_id || raise_parameter_is_required_error(:template_id) request = Web::Request.new( connection, :get, "#{config.target_api_url}/workflow-templates/#{template_id}" ) Web::SendRequest.new(request).perform end end end end
Version data entries
10 entries across 10 versions & 1 rubygems