index
int64
0
0
repo_id
stringclasses
829 values
file_path
stringlengths
34
254
content
stringlengths
6
5.38M
0
code_files/vets-api-private/modules/mobile/spec/serializers/mobile
code_files/vets-api-private/modules/mobile/spec/serializers/mobile/v0/attachment_serializer_spec.rb
# frozen_string_literal: true require 'rails_helper' describe Mobile::V0::AttachmentSerializer, type: :serializer do subject { serialize(attachment, serializer_class: described_class) } let(:attachment) { build_stubbed(:attachment) } let(:data) { JSON.parse(subject)['data'] } let(:attributes) { data['attribu...
0
code_files/vets-api-private/modules/mobile/spec/serializers/mobile
code_files/vets-api-private/modules/mobile/spec/serializers/mobile/v0/triage_team_spec.rb
# frozen_string_literal: true require 'rails_helper' describe Mobile::V0::TriageTeamSerializer, type: :serializer do subject { serialize(triage_team, serializer_class: described_class) } let(:triage_team) { build_stubbed(:triage_team) } let(:data) { JSON.parse(subject)['data'] } let(:attributes) { data['attr...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/get_prefs_base.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "required": [ "preferenceId", "preferenceName", "value" ], "properties": { "preferenceId": { "description": "Preference key", "type": "string" }, "preferenceName": { "description": "Display version of preference ke...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/lighthouse_errors.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "errors" ], "properties": { "errors": { "type": "array", "items": { "type": "object", "required": [ ], "properties": { "status": { "type": "string"...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/facility_eligibility.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/suggested_address.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "id", "type", "attributes", "meta" ], "properties": { "id": { "type": "string" }, "type": { "type": "string" }, "attributes": { "type": "object", "required": [ ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/debts.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": ["data","meta"], "properties": { "data": { "type": "array", "items": { "$ref": "debt_record.json" } }, "meta": { "type": "object", "required": ["hasDependentDebts"], "pro...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/decision_letter.json
{ "$schema": "http://json-schema.org/draft-04/schema", "id": "http://example.com/example.json", "type": "object", "required": [ "data" ], "properties": { "data": { "id": "#/properties/data", "type": "array", "additionalItems": false, "items": { "id": "#/properties/dat...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/mobile_service_history_response.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string" ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/travel_pay_claim_summary.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string"}, "type": { "enum": ["travelPayClaimSummary"] }, "attributes": { "type": "object", "properties": { "id": { ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/prescription_tracking.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/sso_log.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "user_uuid", "sso_cookie_contents", "request_host" ], "properties": { "user_uuid": { "type": "string" }, "sso_cookie_contents": { "type": "object", "required": [ "patientIc...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/errors.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "errors" ], "properties": { "errors": { "type": "array", "items": { "type": "object", "required": [ "status", "code", "detail", "title" ],...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/community_care_providers.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/letter_beneficiary_benefit_information_dependent.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "properties": { "monthlyAwardAmount": { "type": "number", "not": { "type": "integer" } }, "awardEffectiveDate": { "type": "string" }, "hasChapter35Eligibility": { "type": "boolean" }, "hasSurviv...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/debt.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": ["data","meta"], "properties": { "data": { "$ref": "debt_record.json" }, "meta": { "type": "object", "required": ["hasDependentDebts"], "properties": { "hasDependentDebts": { "type":...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/payment_information.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": {}, "properties": { "data": { "properties": { "attributes": { "properties": { "accountControl": { "properties": { "canUpdateAddress": { "type": "boolean" ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/service.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "required": [ "name", "requestEligibleFacilities", "directEligibleFacilities" ], "properties": { "name": { "description": "Service name", "type": "string" }, "requestEligibleFacilities": { "description": "List of ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/appointments.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/debt_record.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": ["id", "type", "attributes"], "properties": { "id": { "type": "string"}, "type": { "enum": ["debts"] }, "attributes": { "type": "object", "properties": { "fileNumber": { "type": "strin...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/medical_copay_record.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "additionalProperties": false, "required": [ "id", "station", "details" ], "properties": { "id": { "type": "string", "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }, "pSSeqNum": { "type": ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/discovery.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "webviews": { "type": "object" }, "endpoints": { "type": "object" ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/travel_pay_smoc_response.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "data" ], "properties": { "data": { "$ref": "travel_pay_claim_summary.json" } } }
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/payment_history.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/maintenance_windows.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/address.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "id", "addressLine1", "addressLine2", "addressLine3", "addressPou", "addressType", "city", "internationalPostalCode", "province", "stateCode", "zipCode", "zipCodeSuffix" ], "p...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/clinic.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/facilities_info.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "facilities": { "description": "Array of facilities", "items": { "$ref": "faci...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/user.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/cemetery.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/individual_claim.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/get_prefs.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "preferences": { "description": "Array of current notification prefs for given endpoint (device)", ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/cc_eligibility.json
{ "$schema" : "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "data" ], "properties": { "required": ["id", "type", "attributes"], "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": ["cc_eligibility"] }, "attributes": { ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/prescription.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/immunization_location.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "name": { "description": "location name", "type": "string" }, "address...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/immunizations.json
{ "$schema": "http://json-schema.org/draft-04/schema", "id": "http://example.com/example.json", "type": "object", "required": [ "data" ], "properties": { "data": { "id": "#/properties/data", "type": "array", "additionalItems": false, "items": { "id": "#/properties/dat...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/letter_beneficiary_benefit_information_veteran.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "properties": { "monthlyAwardAmount": { "type": "number", "not": { "type": "integer" } }, "awardEffectiveDate": { "type": "string" }, "hasChapter35Eligibility": { "type": "boolean" }, "hasServic...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/suggested_addresses.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "$ref": "suggested_address.json" } } } }
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/email.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "id", "emailAddress" ], "properties": { "id": { "type": "integer" }, "emailAddress": { "type": "string" } } }
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/service_eligibility.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "facilities": { "description": "Array of services", "items": { "$ref": "servic...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/medical_copay.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": ["data","status"], "properties": { "data": { "$ref": "medical_copay_record.json" }, "status": { "type": "integer" } } }
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/letter_base.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "required": [ "letterType", "name" ], "properties": { "name": { "description": "Display name for the letter", "type": "string" }, "letterType": { "description": "Letter type used to pass as an argument to the letter do...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/letters.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "letters": { "description": "Array of letters available for the user to download", "items": { ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/push_register.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "endpointSid": { "type": "string" } }, "type": "object", "required...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/letter.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string" }...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/letter_beneficiary.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "properties": { "data": { "properties": { "attributes": { "properties": { "benefitInformation": { "anyOf": [ { "$ref": "letter_beneficiary_benefit_i...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/evss_errors.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { }, "id": "http://example.com/example.json", "properties": { "errors": { "items": { "properties": { "code": { "type": "string" }, "detail": { "type": "string" ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/phone.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "id", "areaCode", "countryCode", "extension", "phoneNumber", "phoneType" ], "properties": { "id": { "type": "integer" }, "areaCode": { "type": "string" }, "countryCode...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/travel_pay_claims_response.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "type": "array", "minItems": 0, "items": { "$ref": "travel_pay_claim_summary.json" } }, "meta": { "type": "object", "r...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/profile_update_response.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string" },...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/medical_copays.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": ["data","status"], "properties": { "data": { "type": "array", "items": { "$ref": "medical_copay_record.json" } }, "status": { "type": "integer" } } }
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/facility_info.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "required": [ "id", "name", "city", "state", "cerner" ], "properties": { "id": { "description": "Facility id", "type": "string" }, "name": { "description": "Facility name", "type": "string" }, ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/schemas/clinic_slot.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": {...
0
code_files/vets-api-private/modules/mobile/spec/support/schemas
code_files/vets-api-private/modules/mobile/spec/support/schemas/v1/allergy_v1.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "additionalProperties": false, "required": ["data", "meta"], "properties": { "data": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["type", "id", "attri...
0
code_files/vets-api-private/modules/mobile/spec/support/schemas
code_files/vets-api-private/modules/mobile/spec/support/schemas/v1/user.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string...
0
code_files/vets-api-private/modules/mobile/spec/support/schemas
code_files/vets-api-private/modules/mobile/spec/support/schemas/v2/user.json
{ "$schema": "http://json-schema.org/draft-04/schema", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "id", "type", "attributes" ], "properties": { "id": { "type": "string" },...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/individual_claims.json
[ {"data":{"id":"600323434","type":"claim","attributes":{"claimTypeCode":"010LCOMPBDD","claimDate":"2022-07-19","claimPhaseDates":{"phaseChangeDate":"2022-08-10","currentPhaseBack":false,"latestPhaseType":"CLAIM_RECEIVED","previousPhases":{}},"claimType":"Compensation","closeDate":null,"contentions":[],"decisionLette...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/triage_teams.json
[ { "name": "Automation Triage", "relation_type": "PATIENT", "triage_team_id": 153463, "preferred_team": true }, { "name": "Sustainment Team", "relation_type": "PATIENT", "triage_team_id": 333647, "preferred_team": true }, { "name": "Vets.gov Testing_DAYT29", "relation_type": "PATIENT", "tria...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/cc_appointments.json
{ "booked_appointment_collections": [ { "collection_name": "bookedCCAppointments", "booked_cc_appointments": [ { "appointment_request_id": "8a4885896a22f88f016a2c8834b1005d", "patient_identifier": { "unique_id": "1012845331V153043", "assigning_author...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/cerner_appointments_nil_provider.json
{ "errors": [ { "code": 500, "source": "451", "summary": "Could not get appointments from VistA Scheduling Service (94c6905c-6adc-4aa4-a79e-a39d73b4ee9d)" } ], "data": { "result": { "partial": true, "sources": [ "451", "VVS" ], "page_count": 1,...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/folders.json
[ { "id": 0, "name": "Inbox", "count": 10, "unread_count": 4, "system_folder": true }, { "id": -2, "name": "Drafts", "count": 86, "unread_count": 52, "system_folder": true }, { "id": -1, "name": "Sent", "count": 372, "unread_count": 0, "system_folder": true }, { "id": -3, "name"...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/prescriptions.json
{ "data":[ { "refill_status":"refillinprocess", "refill_submit_date":"Wed, 28 Oct 2020 15:42:43 EDT", "refill_date":"Wed, 28 Oct 2020 00:00:00 EDT", "refill_remaining":10, "facility_name":"DAYT29", "is_refillable":false, "is_trackable":false, "prescription_id":18492...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/VAOS_v2_appointments.json
[ { "id": "121133", "identifier": [ { "system": "http://med.va.gov/fhir/urn/vaos/vista/983/appointment/id", "value": "999;20220827.094500" } ], "kind": "clinic", "type": "VA", "status": "cancelled", "service_type": "optometry", "patient_icn": "1012846043V576...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/claims_and_appeals.json
[ { "id": "600561746", "type": "claim", "attributes": { "baseEndProductCode": "020", "claimDate": "2024-09-24", "claimPhaseDates": { "phaseChangeDate": "2024-11-20", "phaseType": "COMPLETE" }, "claimType": "Compensation", "claimTypeCode": "020SUPP", ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/appointment_requests.json
[ { "data_identifier": {"unique_id": "8a48e8db6d70a38a016d72b354240002", "system_id": "var"}, "patient_identifier": {"unique_id": "1012845943V900681", "assigning_authority": "ICN"}, "surrogate_identifier": {}, "last_updated_date": "09/27/2019 08:30:17", "option_date1": "10/01/2020", "option_ti...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/va_appointments_missing_status.json
{ "data": { "result": { "partial": false, "sources": [ "VVS", "983", "984" ], "page_count": 1, "current_page": 1 }, "appointment_list": [ { "id": "202101141500983000089800000000000000", "start_date": "2021-01-14T15:00:00Z", ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/all_triage_teams.json
[ { "triage_team_id": 4399547, "name": "589GR Pharmacy Ask a pharmacist SLC10 JAMES, DON", "station_number": "979", "preferred_team": true, "relation_type": "PATIENT", "location_name": "Robert J. Dole VA Medical And Regional Office Center", "suggested_name_display": "Robert J. Dole VA Medi...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/all_triage_teams_with_duplicates.json
[ { "triage_team_id": 4399547, "name": "589GR Pharmacy Ask a pharmacist SLC10 JAMES, DON", "station_number": "979", "preferred_team": true, "relation_type": "PATIENT", "location_name": "Robert J. Dole VA Medical And Regional Office Center", "suggested_name_display": "Robert J. Dole VA Medi...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/va_appointments.json
{ "data": { "result": { "partial": false, "sources": [ "VVS", "983", "984" ], "page_count": 1, "current_page": 1 }, "appointment_list": [ { "id": "202006031600983000030800000000000000", "start_date": "2020-11-03T16:00:00Z", ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/va_appointments_sta6aid.json
{ "data": { "result": { "partial": false, "sources": [ "983" ], "page_count": 1, "current_page": 1 }, "appointment_list": [ { "id": "202107151700983000108100000000000000", "char4": null, "clinic_id": "1081", "clinic_friendly_name"...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/va_appointments_covid.json
{ "data": { "result": { "partial": false, "sources": [ "VVS", "983", "984" ], "page_count": 1, "current_page": 1 }, "appointment_list": [ { "id": "202103031630983000103800000000000000", "start_date": "2021-03-03T16:30:00Z", ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/fixtures/folder_messages.json
[ { "id": 674400, "category": "OTHER", "subject": "General Inquiry - Khan", "body": null, "attachment": false, "attachments": null, "sent_date": "Mon, 30 Jan 2017 21:49:44 GMT", "sender_id": 24477, "sender_name": "Hall, Lisa", "recipient_id": 384939, "recipient_name": "MVIONE, TEST", "read_r...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/matchers/json_schema_matcher.rb
# frozen_string_literal: true require 'rspec/expectations' module JsonSchemaMatchers extend RSpec::Matchers::DSL matcher :match_json_schema do |schema_name, options = {}| schema_path = Rails.root.join('modules', 'mobile', 'spec', 'support', 'schemas', "#{schema_name}.json").to_s match { |data| JSON::Vali...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/helpers/spec_helper.rb
# frozen_string_literal: true UUID_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/helpers/iam_session_helper.rb
# frozen_string_literal: true module IAMSessionHelper DEFAULT_ACCESS_TOKEN = 'ypXeAwQedpmAy5xFD2u5' OPENSSL_X509_CERTIFICATE = 'OpenSSL::X509::Certificate' OPENSSL_PKEY_RSA = 'OpenSSL::PKey::RSA' def access_token DEFAULT_ACCESS_TOKEN end def iam_headers(additional_headers = nil) headers = { ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/helpers/committee_helper.rb
# frozen_string_literal: true module CommitteeHelper include Committee::Rails::Test::Methods def committee_options @committee_options ||= { schema_path: Rails.root.join('modules', 'mobile', 'docs', 'openapi.json').to_s, prefix: '/mobile', strict_reference_validation: true, check_conten...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/helpers/sis_session_helper.rb
# frozen_string_literal: true module SISSessionHelper def sis_access_token @sis_access_token ||= create(:access_token, audience: ['vamobile']) end def sis_bearer_token @sis_bearer_token ||= SignIn::AccessTokenJwtEncoder.new(access_token: sis_access_token).perform end # Accepts a list of FactoryBot ...
0
code_files/vets-api-private/modules/mobile/spec/support
code_files/vets-api-private/modules/mobile/spec/support/helpers/rails_helper.rb
# frozen_string_literal: true require 'rails_helper' require_relative 'spec_helper' require_relative 'sis_session_helper' require_relative '../../support/matchers/json_schema_matcher' RSpec.configure do |config| config.define_derived_metadata(file_path: %r{modules/mobile/spec}) do |metadata| metadata[:mobile_sp...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/factories/maintenance_windows.rb
# frozen_string_literal: true FactoryBot.define do factory :mobile_maintenance_lighthouse_first, class: '::MaintenanceWindow' do pagerduty_id { 'PHQI9WA' } external_service { 'lighthouse' } start_time { '2021-05-25 21:33:39' } end_time { '2021-05-25 22:33:39' } created_at { '2021-05-24 12:15:17' ...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/controllers/profile_base_controller_spec.rb
# frozen_string_literal: true require 'rails_helper' require_relative '../support/helpers/sis_session_helper' require_relative '../support/helpers/iam_session_helper' require_relative '../support/matchers/json_schema_matcher' RSpec.shared_examples 'sso logging' do |type| describe "#{type} logging" do before do ...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/controllers/application_controller_spec.rb
# frozen_string_literal: true require 'rails_helper' require_relative '../support/helpers/iam_session_helper' RSpec.describe Mobile::ApplicationController, type: :controller do controller do attr_reader :payload def index head :ok end def append_info_to_payload(payload) super @pa...
0
code_files/vets-api-private/modules/mobile/spec/helpers
code_files/vets-api-private/modules/mobile/spec/helpers/mobile/pagination_helper_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe Mobile::PaginationHelper, :aggregate_failures, type: :model do describe '.paginate' do let(:list) { (1..11).to_a } it 'returns the requested number of records' do params = Mobile::V0::Contracts::PaginationBase.new.call({ page_size: 2...
0
code_files/vets-api-private/modules/mobile/spec/helpers
code_files/vets-api-private/modules/mobile/spec/helpers/mobile/facilities_helper_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe Mobile::FacilitiesHelper, type: :model do describe 'haversine distance' do it 'correctly calculates a close distance', :aggregate_failures do geo_a = [40.024910, -83.015700] geo_b = [40.023100, -83.014010] miles = Mobile::Faci...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/services/lighthouse_health_configuration_spec.rb
# frozen_string_literal: true require 'rails_helper' describe Mobile::V0::LighthouseHealth::Configuration do subject(:config) { described_class.instance } describe '#access_token_connection' do it 'sets Content-Type header to application/x-www-form-urlencoded' do # This header is required for OAuth tok...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/services/lighthouse_health_service_spec.rb
# frozen_string_literal: true require 'rails_helper' describe Mobile::V0::LighthouseHealth::Service do let(:user) { build(:user, icn: '9000682') } let(:service) { Mobile::V0::LighthouseHealth::Service.new(user) } let(:rsa_key) { OpenSSL::PKey::RSA.generate(2048) } let(:access_token) do 'eyJraWQiOiIyWGlHcG...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/services/messaging_client_spec.rb
# frozen_string_literal: true require 'rails_helper' describe Mobile::V0::Messaging::Client do describe 'configuration override' do it 'uses alternate app_token' do with_settings(Settings.mhv_mobile.sm, app_token: 'TestToken') do stub_request(:get, /session/).with(headers: { 'appToken' => 'TestTok...
0
code_files/vets-api-private/modules/mobile/spec
code_files/vets-api-private/modules/mobile/spec/services/sync_update_service_spec.rb
# frozen_string_literal: true require 'rails_helper' require_relative '../support/helpers/rails_helper' describe Mobile::V0::Profile::SyncUpdateService do let(:service) { Mobile::V0::Profile::SyncUpdateService.new(user) } before do Timecop.freeze(Time.zone.parse('2024-09-16T16:09:37.000Z')) end after do...
0
code_files/vets-api-private/modules/mobile
code_files/vets-api-private/modules/mobile/docs/index.html
<!DOCTYPE html> <html> <head> <meta charset="utf8" /> <title>VA Mobile API</title> <!-- needed for adaptive design --> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { padding: 0; margin: 0; } </style> <script src="https://cdn.redocly.com/redoc/v2.5....
0
code_files/vets-api-private/modules/mobile
code_files/vets-api-private/modules/mobile/docs/README.md
# Mobile API Documentation This directory contains the OpenAPI specification and documentation for the VA Mobile API. ## Files - `openapi.yaml` - Source of truth for API documentation (edit this file) - `openapi.json` - Generated JSON version of the spec (auto-generated, do not edit) - `index.html` - Generated stati...
0
code_files/vets-api-private/modules/mobile
code_files/vets-api-private/modules/mobile/docs/validate_route_coverage.rb
#!/usr/bin/env ruby # frozen_string_literal: true require 'yaml' require 'date' # Parse routes.rb to extract all route definitions def extract_routes_from_file(routes_file) routes = [] content = File.read(routes_file) current_namespace = '' namespace_stack = [] content.each_line do |line| process_names...
0
code_files/vets-api-private/modules/mobile
code_files/vets-api-private/modules/mobile/docs/generate_static_docs.sh
redocly build-docs openapi.yaml -o index.html redocly bundle openapi.yaml -o openapi.json
0
code_files/vets-api-private/modules/mobile
code_files/vets-api-private/modules/mobile/docs/openapi.yaml
openapi: "3.0.0" info: version: 0.0.0 title: VA Mobile API license: name: MIT description: > The Department of Veterans Affairs mobile API. All paths are relative to https://api.va.gov/mobile. servers: - url: https://api.va.gov/mobile paths: /: get: description: Returns a welcome message. ...
0
code_files/vets-api-private/modules/mobile
code_files/vets-api-private/modules/mobile/docs/openapi.json
{ "openapi": "3.0.0", "info": { "version": "0.0.0", "title": "VA Mobile API", "license": { "name": "MIT" }, "description": "The Department of Veterans Affairs mobile API. All paths are relative to https://api.va.gov/mobile.\n" }, "servers": [ { "url": "https://api.va.gov/mobi...
0
code_files/vets-api-private/modules/mobile/docs/postman
code_files/vets-api-private/modules/mobile/docs/postman/.postman/config.json
{ "workspace": { "id": "88f8d0ac-78bb-43f7-a6d0-eb7d700ecb72" }, "entities": { "collections": [], "environments": [], "specs": [], "flows": [], "globals": [] } }
0
code_files/vets-api-private/modules/mobile/docs/postman/postman
code_files/vets-api-private/modules/mobile/docs/postman/postman/globals/workspace.postman_globals.json
{ "id": "bc69e8ac-9a33-4a33-a075-e126e84ad619", "name": "Globals", "values": [ { "key": "BEARER_TOKEN", "value": "", "enabled": true, "type": "any", "description": "This is manually set by \"Set Bearer Token\" request/script" }, { "key": "NGROK_URL", "value": ...
0
code_files/vets-api-private/modules/mobile/docs/postman/postman
code_files/vets-api-private/modules/mobile/docs/postman/postman/environments/Localhost.postman_environment.json
{ "id": "c3a06b8f-42be-447f-85c9-04b356f2900f", "name": "Localhost", "values": [ { "key": "BaseUrl", "value": "http://localhost:3000", "enabled": true, "type": "default", "description": "" }, { "key": "AuthUrl", "value": "https://va-mobile-dev-tools-0cb741eb06...
0
code_files/vets-api-private/modules/mobile/docs/postman/postman
code_files/vets-api-private/modules/mobile/docs/postman/postman/environments/Staging.postman_environment.json
{ "id": "e9f8a52d-7dc8-47a3-87f1-7f3351cf7ea2", "name": "Staging", "values": [ { "key": "BaseUrl", "value": "https://staging-api.va.gov", "enabled": true, "type": "default", "description": "" }, { "key": "AuthUrl", "value": "https://va-mobile-dev-tools-0cb741e...
0
code_files/vets-api-private/modules/mobile/docs/postman/postman
code_files/vets-api-private/modules/mobile/docs/postman/postman/environments/Localhost (DevTools Testing).postman_environment.json
{ "id": "cd315d93-b563-47ca-8637-61355c79c462", "name": "Localhost (DevTools Testing)", "values": [ { "key": "BaseUrl", "value": "http://localhost:3000", "type": "default", "enabled": true }, { "key": "AuthUrl", "value": "http://localhost:3000", "type": "defau...
0
code_files/vets-api-private/modules/mobile/docs/postman/postman
code_files/vets-api-private/modules/mobile/docs/postman/postman/collections/Auth.postman_collection.json
{ "info": { "_postman_id": "46e0e724-5b08-4ac2-9a2f-31595b2f377d", "name": "Auth", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Set Bearer Token", "event": [ { "listen": "test", "script": { ...
0
code_files/vets-api-private/modules/mobile/docs/postman/postman
code_files/vets-api-private/modules/mobile/docs/postman/postman/collections/Mobile Endpoints.postman_collection.json
{ "info": { "_postman_id": "0efaa37e-0fa8-42a6-bb35-cbd4e9c88abe", "name": "Mobile Endpoints", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "v0", "item": [ { "name": "/v0/appeal/{id}", "id": "2fbb9c9...