Class: BulkDataTestKit::BulkDataV200Client::Endpoints::Delete

Inherits:
Inferno::DSL::SuiteEndpoint
  • Object
show all
Includes:
ServerProxy
Defined in:
lib/bulk_data_test_kit/v2.0.0_client/endpoints/delete.rb

Instance Method Summary collapse

Methods included from ServerProxy

#proxy_client, #request_headers, #rewrite_url_base

Methods included from URLs

#base_url, #fhir_url, #output_url, #resume_pass_url, #status_url, #suite_id

Instance Method Details

#job_idObject



26
27
28
# File 'lib/bulk_data_test_kit/v2.0.0_client/endpoints/delete.rb', line 26

def job_id
  request.params[:job_id]
end

#make_responseObject



18
19
20
# File 'lib/bulk_data_test_kit/v2.0.0_client/endpoints/delete.rb', line 18

def make_response
  response.status = 202
end

#tagsObject



22
23
24
# File 'lib/bulk_data_test_kit/v2.0.0_client/endpoints/delete.rb', line 22

def tags
  [DELETE_TAG]
end

#test_run_identifierObject



10
11
12
13
14
15
16
# File 'lib/bulk_data_test_kit/v2.0.0_client/endpoints/delete.rb', line 10

def test_run_identifier
  return request.params[:session_path] if request.params[:session_path].present?

  SMARTAppLaunch::MockSMARTServer.issued_token_to_client_id(
    request.headers['authorization']&.delete_prefix('Bearer ')
  )
end