department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 205 forks source link

Build /community-care/supported-sites GET endpoint #2972

Closed markgreenburg closed 4 years ago

markgreenburg commented 5 years ago

Story

As a backend developer, I want to be able to call a service to get a list of veterans' sites that support CC scheduling, so that the front end can check whether a veteran should see the community care option and whether they need to choose between multiple CC-enabled sites.

AC

sjbrush commented 4 years ago

I am trying to figure out how this functionality works in current vaos. if someone knows what that actual service call is and could post it here, that would be great.

sjbrush commented 4 years ago
  "/facility-service/supported-facilities/?siteCodes=#{siteCodes}"  this is handled by var-resources.  Apparently a VAR supported facility is a CC supported facility.  in other words, if they are able to use VAR, they are able to use CC assuming the user is eligible.
sjbrush commented 4 years ago

For the call to https://veteran.apps-staging.va.gov/var/VeteranAppointmentRequestService/v4/rest/facility-service/supported-facilities?siteCodes=983%2C984&_=1576697126602 I got:

{
"sitesSupportingVAR" : [ {
  "id" : "983",
  "name" : "CHYSHR-Cheyenne VA Medical Center",
  "timezone" : "US/EST",
  "objectType" : "SiteSupportingVAR",
  "link" : [ ]
  } ]
}