Skip to content

Commit

Permalink
API-22649-new-526-endpoints (#11938)
Browse files Browse the repository at this point in the history
  • Loading branch information
stiehlrod authored Mar 1, 2023
1 parent d263f8a commit 7f7b142
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions modules/claims_api/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f7b142

Please sign in to comment.