-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add endpoint for EVSS #4370
Add endpoint for EVSS #4370
Changes from 6 commits
b0bab57
1115deb
fa105ea
844b582
18ebb07
d12c150
239ff0b
e9db769
a505099
88c629b
c9ae1a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
class EVSSSeparationLocationSerializer < ActiveModel::Serializer | ||
attribute :separation_locations | ||
|
||
def id | ||
nil | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
module Swagger | ||
module Schemas | ||
module Form526 | ||
class SeparationLocations | ||
include Swagger::Blocks | ||
swagger_schema :SeparationLocation do | ||
key :required, [:separation_locations] | ||
|
||
property :separation_locations, type: :array do | ||
items do | ||
key :required, %i[code description] | ||
property :code, type: :string, example: '98283' | ||
property :description, type: :string, example: 'AF Academy' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,7 @@ evss: | |
mock_pciu: true | ||
mock_pciu_address: false | ||
mock_ppiu: true | ||
mock_reference: false | ||
mock_itf: true | ||
mock_disabilities_form: true | ||
mock_common_service: true | ||
|
@@ -194,9 +195,6 @@ evss: | |
cert_path: ~ | ||
key_path: ~ | ||
root_ca: ~ | ||
jwt: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused |
||
issuer: fake_issuer | ||
key: fake_key | ||
reference_data_service: | ||
enabled: false | ||
international_postal_codes: 'config/evss/international_postal_codes.json' | ||
|
@@ -444,10 +442,6 @@ betamocks: | |
cache_dir: /cache | ||
services_config: config/betamocks/services_config.yml | ||
|
||
faraday_socks_proxy: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused - TODO: check if I need to remove from devops repo. |
||
enabled: false | ||
uri: socks5://localhost:2002 | ||
|
||
google_analytics_tracking_id: ~ | ||
|
||
# Settings for search | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'evss/response' | ||
|
||
module EVSS | ||
module ReferenceData | ||
## | ||
# Model for Intake Sites returned by reference_datea | ||
# | ||
# @param status [Integer] The HTTP status code | ||
# @param response [Hash] The API response | ||
# | ||
# @!attribute countries | ||
# @return [Array[String]] An array of intake sites | ||
# | ||
class IntakeSitesResponse < EVSS::Response | ||
attribute :separation_locations, Array[Hash] | ||
|
||
def initialize(status, response = nil) | ||
separation_locations = response&.body&.dig('intake_sites') | ||
super(status, separation_locations: separation_locations) | ||
end | ||
end | ||
end | ||
end |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate