modules/claims_api/app/controllers/claims_api/v1/forms/intent_to_file_controller.rb
def submit_form_0966
          validate_json_schema
          validate_veteran_identifiers(require_birls: true)
          check_for_invalid_burial_submission! if form_type == 'burial'

          bgs_response = bgs_service.intent_to_file.insert_intent_to_file(intent_to_file_options)
          render json: bgs_response,
                 serializer: ClaimsApi::IntentToFileSerializer
        rescue Savon::SOAPFault => e
          raise ::Common::Exceptions::UnprocessableEntity.new(detail: e.message&.split('>')&.last)
        end
# POST to submit intent to file claim.
#
# @return [JSON] Response from BGS
POST to submit intent to file claim.
POST to submit intent to file claim .
def submit_form_0966
          validate_json_schema
          validate_veteran_identifiers(require_birls: true)
          check_for_invalid_burial_submission! if form_type == 'burial'
          bgs_response = bgs_service.intent_to_file.insert_intent_to_file(intent_to_file_options)
          render json: bgs_response,
                 serializer: ClaimsApi::IntentToFileSerializer
        rescue Savon::SOAPFault => e
          raise ::Common::Exceptions::UnprocessableEntity.new(detail: e.message&.split('>')&.last)
        end
def submit_form_0966 validate_json_schema validate_veteran_identifiers ( require_birls : true ) check_for_invalid_burial_submission! if form_type == 'burial' bgs_response = bgs_service . intent_to_file . insert_intent_to_file ( intent_to_file_options ) render json : bgs_response , serializer : ClaimsApi :: IntentToFileSerializer rescue Savon :: SOAPFault => e raise :: Common :: Exceptions :: UnprocessableEntity . new ( detail : e . message &. split ( '>' ) &. last ) end
POST to submit intent to file claim.
POST to submit intent to file claim .
Response from BGS
Response from BGS
JSON