From 7f7b142b9c31f68fbab528ded336fe2580f6ec77 Mon Sep 17 00:00:00 2001 From: Jennica Stiehl <25069483+stiehlrod@users.noreply.github.com> Date: Wed, 1 Mar 2023 13:53:27 -0700 Subject: [PATCH] API-22649-new-526-endpoints (#11938) --- .../disability_compensation_controller.rb | 15 ++++++++ modules/claims_api/config/routes.rb | 3 ++ .../disability_compensation_request_spec.rb | 36 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb create mode 100644 modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb diff --git a/modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb b/modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb new file mode 100644 index 00000000000..3d1cd88f27a --- /dev/null +++ b/modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module ClaimsApi + module V2 + module Veterans + class DisabilityCompensationController < ClaimsApi::V2::ApplicationController + def submit; end + + def validate; end + + def attachments; end + end + end + end +end diff --git a/modules/claims_api/config/routes.rb b/modules/claims_api/config/routes.rb index a645967df2c..c5a31df88b9 100644 --- a/modules/claims_api/config/routes.rb +++ b/modules/claims_api/config/routes.rb @@ -50,6 +50,9 @@ get '/:veteranId/intent-to-file/:type', to: 'intent_to_file#type' post '/:veteranId/intent-to-file', to: 'intent_to_file#submit' post '/:veteranId/intent-to-file/validate', to: 'intent_to_file#validate' + post '/:veteranId/526', to: 'disability_compensation#submit' + post '/:veteranId/526/validate', to: 'disability_compensation#validate' + post '/:veteranId/526/attachments', to: 'disability_compensation#attachments' end end diff --git a/modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb b/modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb new file mode 100644 index 00000000000..163e4a31abf --- /dev/null +++ b/modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe 'Disability Claims', type: :request do + let(:headers) do + { 'X-VA-SSN': '796-04-3735', + 'X-VA-First-Name': 'WESLEY', + 'X-VA-Last-Name': 'FORD', + 'X-Consumer-Username': 'TestConsumer', + 'X-VA-Birth-Date': '1986-05-06T00:00:00+00:00', + 'X-VA-Gender': 'M' } + end + let(:scopes) { %w[claim.write] } + + before do + stub_poa_verification + stub_mpi + Timecop.freeze(Time.zone.now) + end + + after do + Timecop.return + end + + describe '#526' do + context 'submit' do + end + + context 'validate' do + end + + context 'attachments' do + end + end +end