Class: Vidispine::API::Client::Requests::ImportSidecarFile
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Vidispine::API::Client::Requests::ImportSidecarFile
- Defined in:
- lib/vidispine/api/client/requests/import_sidecar_file.rb
Overview
Constant Summary collapse
- HTTP_METHOD =
:post
- HTTP_PATH =
'/import/sidecar/#{path_arguments[:item_id]}'
- PARAMETERS =
[ { :name => :item_id, :required => true, :send_in => :path }, :sidecar, :notification, :notificationDta, :priority, :jobmetadata, ]
Constants inherited from BaseRequest
BaseRequest::DEFAULT_PARAMETER_SEND_IN_VALUE, BaseRequest::HTTP_BASE_PATH, BaseRequest::HTTP_SUCCESS_CODE
Instance Attribute Summary
Attributes inherited from BaseRequest
#arguments, #body, #client, #default_parameter_send_in_value, #initial_arguments, #missing_required_arguments, #options, #parameters, #path, #processed_parameters, #query
Instance Method Summary collapse
Methods inherited from BaseRequest
#after_initialize, #base_path, #before_process_parameters, #body_arguments, #eval_http_path?, #http_method, #http_path, #http_success_code, #initialize, #matrix, #matrix_arguments, normalize_argument_hash_keys, normalize_parameter_name, #path_arguments, #path_only, process_parameter, #process_parameters, process_parameters, #query_arguments, #reset_attributes, #success?, #uri_request_path
Constructor Details
This class inherits a constructor from Vidispine::API::Client::Requests::BaseRequest
Instance Method Details
#after_process_parameters ⇒ Object
19 20 21 22 23 |
# File 'lib/vidispine/api/client/requests/import_sidecar_file.rb', line 19 def after_process_parameters # URI Needs to be escaped twice, so we do it once here and then again when the query is built sidecar = arguments[:sidecar] arguments[:sidecar] = CGI.escape(sidecar) if sidecar and sidecar.start_with?('file://') end |