My Docs
DeploymentTrelloCalendar 🗓 Family Promise Roadmap
LAMBDA_LABS_Family_Promise
LAMBDA_LABS_Family_Promise
  • Home
  • navigation
    • Resume
    • My Notes:
    • NAVIGATION
    • Calendar
    • Youtube:
    • Roadmap:
    • TEAM MEMBERS
    • Running List Of Notes Links & Pertinent Info From Meetings
    • Trello
      • Github/Trello Integration
  • UX
    • UX_TOPICS
      • Action Items:
      • Accessibility
      • Figma Notes
        • Tables In Figma
        • Notes
        • Frames in Figma
        • Prototyping In Figma
        • More Notes
      • UX-Design
        • Facebook Graph API
      • Ant Design
        • ANT Components
          • Buttons
        • ANT DOCS
        • Application (Codesandbox)
      • Examples
      • How to add external URL links to your prototype
  • CANVAS
    • Interview
    • Design
      • What's Inclusive Design?
      • Accessibility
      • What are Design Systems?
    • Canvas
      • Career Readiness:
    • Notes
      • User Experience Design
      • User Research
      • Interaction Design
    • UX-Engineer
      • Accessibility
      • Patterns
      • Design Tools
      • UX Principles
      • Design Critiques
      • Product Review
      • Quiz
      • Seven Principles of Design
      • Other Articles
    • Labs
  • Front End
    • Frontend:
    • Redux
  • Back End
    • Backend:
      • API
  • Research
    • Research Navigation
      • Front End
      • Back End
      • UX
      • PTM
      • General
  • DS_API
    • Data Science API
  • ROLES
    • TEAM ROLES
      • Bryan Guner
  • Action Items
    • Trello
    • Maps
  • ARCHITECTURE
    • DNS
    • AWS
    • Heroku
  • Questions
    • From Previous Cohort
  • Standup Notes
    • Meeting Notes
      • Stakeholder Meeting 1
      • 9/29/2021
  • GitHub & Project Practice
    • GitHub
      • Github Guide
      • Github Actions:
      • Live Implementation
  • MISC
    • MISCELLANEOUS
      • Links
  • Background Information
    • Background Info
      • Swagger OPEN API SPECIFICATION
        • Swagger Docs (General)
      • GITHUB:
        • Git Bash
        • Git Prune:
  • DOCS
    • DS AP
    • What is JSON Web Token?
      • Environment Variables
      • Git Rebase:
      • Git Workflow:
      • Linting and Formatting
    • Project Docs
      • Eng-Docs-Home
      • Basic Node API
      • Contributing to this scaffold project
      • Examples:
    • PROJECT DESCRIPTION (Feature List)
    • Labs Learners Guide
    • REACT
      • Create React App
      • Awesome React
    • Labs Engineering Docs
      • Okta Basics
      • Roadmap
      • Repositories
  • Workflow
    • Workflow
    • Advice
  • AWS
    • AWS
      • Elastic Beanstalk
        • Elastic Beanstalk DNS
      • Amplify:
        • Amplify-DNS
    • Account Basics
    • AWS-Networking
  • Career & Job Hunt
    • Career
  • LABS
    • Introduction
    • User Stories
    • Why Pairing?
    • GitHub
    • Planning as an Engineer
    • Authentication and Authorization
      • Authentication VS Authorization
    • Giving Feedback
    • Modules Grades Understanding Your ISA
    • Rest Architecture
Powered by GitBook
On this page
  • DS API - Family Promise
  • Input:
  • Output:

Was this helpful?

  1. DOCS

DS AP

PreviousGit Prune:NextWhat is JSON Web Token?

Last updated 3 years ago

Was this helpful?

DS API - Family Promise

Verify we can connect to the database, and return the database URL in this format: dialect://user:password@host/dbname The password will be hidden with ***

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/info' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/info

Server response

Code
Details

200

Response body

Download

"database_url": "postgresql://aztugzfejptrww:***@ec2-107-22-245-82.compute-1.amazonaws.com:5432/db9egku1e3j21v"

}

Response headers

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Creates an interactive map with dots pertaining to location of service. The dots on the map are color coded by service. Because there is no latitude or longitude in BE database, we geocode in order to get latitude and longitude. With the acquired latitude and longitude, the map visualization can be created and sent to the BE in JSON form.

Input:

query_json : JSON object Sent to DS API from BE

Output:

JSON object sent back to BE

Parameters

Cancel

Name
Description

query_json *(path)

Execute

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

422

Validation Error

Media typeapplication/json

  • Example Value

  • Schema

"detail": [

{
  "loc": [
    "string"
  ],
  "msg": "string",
  "type": "string"
}

] } | No links |

This function will return a bar chart of the count of veterans being served by Family Promise, in JSON form.

Parameters

Cancel

Name
Description

query_json *(path)

Execute

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

422

Validation Error

Media typeapplication/json

  • Example Value

  • Schema

"detail": [

{
  "loc": [
    "string"
  ],
  "msg": "string",
  "type": "string"
}

] } | No links |

This function will return a table visual of the count of recipients by age group being served by Family Promise, in JSON form.

Parameters

Cancel

Name
Description

query_json *(path)

Execute

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

422

Validation Error

Media typeapplication/json

  • Example Value

  • Schema

"detail": [

{
  "loc": [
    "string"
  ],
  "msg": "string",
  "type": "string"
}

] } | No links |

Checks for eligibility for services based on service provider data.

Parameters


id A household_id entry from the households table.

Returns


JSON "resident_assistance_eligibility": bool "reduced_bus_fare_eligibility": bool

Parameters

Cancel

Name
Description

household_id *string(path)

Execute

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

422

Validation Error

Media typeapplication/json

  • Example Value

  • Schema

"detail": [

{
  "loc": [
    "string"
  ],
  "msg": "string",
  "type": "string"
}

] } | No links |

Returns the total number of recipients TODO: Return recipients relavent to user

Returns


int total_served

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/total_served' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/total_served

Server response

Code
Details

200

Response body

Download

Response headers

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the total number of families TODO: Return only those relavent to the user

Returns


int families_served

Parameters

Cancel

No parameters

Execute

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the number of recipients under 18, not inclusive.

Returns


int children_served

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/children_served' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/children_served

Server response

Code
Details

200

Response body

Download

Response headers

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the count of each gender served.

Returns


list genders_served

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/genders_served' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/genders_served

Server response

Code
Details

200

Response body

Download

{

"gender": "Female",
"total": 5

}, { "gender": "Male", "total": 12 }, { "gender": "Transgender: M to F", "total": 4 }, { "gender": "Transgender: F to M", "total": 5 }, { "gender": "Gender fluid", "total": 6 }, { "gender": "Agender", "total": 5 }, { "gender": "Androgynous", "total": 8 }, { "gender": "Bi-gender", "total": 8 }, { "gender": "Non-binary", "total": 4 }, { "gender": "Demi-boy", "total": 3 }, { "gender": "Demi-girl", "total": 6 }, { "gender": "Genderqueer", "total": 7 }, { "gender": "Gender nonconforming", "total": 2 }, { "gender": "Tri-gender", "total": 6 }, { "gender": "All genders", "total": 6 }, { "gender": "In the middle of boy and girl", "total": 8 }, { "gender": "Intersex", "total": 10 }, { "gender": "Not sure", "total": 2 }, { "gender": "Prefer not to say", "total": 7 }, { "gender": "Other", "total": 0 } ]

Response headers

 connection: keep-alive  content-length: 716  content-type: application/json  date: Thu,14 Oct 2021 15:27:21 GMT  server: nginx/1.20.0 

|

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the count of each race served.

Returns


list races_served

Parameters

Cancel

No parameters

Execute

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the count of each ethnicity served.

Returns


list ethnicities_served

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/ethnicities_served' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/ethnicities_served

Server response

Code
Details

200

Response body

Download

{

"ethnicity": "Hispanic/Latino",
"total": 61

}, { "ethnicity": "Non-Hispanic/Non-Latino", "total": 51 }, { "ethnicity": "Prefer not to say", "total": 2 } ]

Response headers

 connection: keep-alive  content-length: 139  content-type: application/json  date: Thu,14 Oct 2021 15:27:29 GMT  server: nginx/1.20.0 

|

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the count of services done for each program.

Returns


list program_enrollment

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/program_enrollment' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/program_enrollment

Server response

Code
Details

200

Response body

Download

{

"program_name": "Shelter Support",
"total": 174

}, { "program_name": "Prevention/Diversion", "total": 177 }, { "program_name": "Aftercare", "total": 151 }, { "program_name": "Test setup by Admin ", "total": 0 } ]

Response headers

 connection: keep-alive  content-length: 191  content-type: application/json  date: Thu,14 Oct 2021 15:27:34 GMT  server: nginx/1.20.0 

|

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the count of each service provided.

Returns


list services_given

Parameters

Try it out

No parameters

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Returns the count of services at each type of location.

Returns


list locations_of_service

Parameters

Cancel

No parameters

ExecuteClear

Responses

Curl

curl -X 'GET' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/locations_of_service' \
  -H 'accept: application/json'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/locations_of_service

Server response

Code
Details

200

Response body

Download

{

"location_type": "Personal Home",
"total": 146

}, { "location_type": "Halfway House", "total": 142 }, { "location_type": "Service Distribution Center", "total": 110 }, { "location_type": "Unaffiliated Service Distribution Location", "total": 104 } ]

Response headers

 connection: keep-alive  content-length: 228  content-type: application/json  date: Thu,14 Oct 2021 15:27:41 GMT  server: nginx/1.20.0 

|

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

Please post an address as a JSON object with this format:

{"address": "123 Gilman Dr W", "address_line2": "", "city": "Seattle", "state": "WA", "zip": "98119", "country": "United States"}

The output will be a JSON object with the following format:

{"latitude": 47.64971, "longitude": -117.39764}

Parameters

Cancel

No parameters

Request body

application/jsonExecuteClear

Responses

Curl

curl -X 'POST' \
  'http://family-promise-dev.us-east-1.elasticbeanstalk.com/geocode/' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'

Request URL

http://family-promise-dev.us-east-1.elasticbeanstalk.com/geocode/

Server response

Code
Details

200

Response body

Download

"latitude": 47.64971,

"longitude": -117.39764

}

Response headers

Responses

Code
Description
Links

200

Successful Response

Media typeapplication/jsonControls Accept header.

  • Example Value

  • Schema

No links

422

Validation Error

Media typeapplication/json

  • Example Value

  • Schema

"detail": [

{
  "loc": [
    "string"
  ],
  "msg": "string",
  "type": "string"
}

] } | No links |

Schemas

HTTPValidationError{

detail

Detail[...]

}ValidationError{

loc*

Location[...]

msg*

string title: Message

type*

string title: Error Type

}

GETGet Url

POSTVisual

POSTVeteran Counts

POSTAge Metric

POSTCheck Eligibility

GETGet Total Served

GETGet Families Served

GETGet Children Served

GETGet Genders Served

GETGet Races Served

GETGet Ethnicities Served

GETGet Program Enrollment

GETGet Services Given

GETGet Locations

POSTGet Latitude Longitude

{
 connection: keep-alive  content-length: 112  content-type: application/json  date: Thu,14 Oct 2021 15:26:09 GMT  server: nginx/1.20.0 
"string"
"string"
{
"string"
{
"string"
{
"string"
{
115
 connection: keep-alive  content-length: 3  content-type: application/json  date: Thu,14 Oct 2021 15:26:36 GMT  server: nginx/1.20.0 
"string"
"string"
71
 connection: keep-alive  content-length: 2  content-type: application/json  date: Thu,14 Oct 2021 15:27:14 GMT  server: nginx/1.20.0 
"string"
[
"string"
"string"
[
"string"
[
"string"
"string"
[
"string"
{
 access-control-allow-credentials: true  access-control-allow-origin: *  connection: keep-alive  content-length: 44  content-type: application/json  date: Thu,14 Oct 2021 15:27:47 GMT  server: nginx/1.20.0 
"string"
{
/openapi.json
Database
/info
Visualizations
/vizmap/{query_json}
/veteran_counts/{query_json}
/age_metric/{query_json}
Eligibility
/eligibility/{household_id}
Metrics
/total_served
/families_served
/children_served
/genders_served
/races_served
/ethnicities_served
/program_enrollment
/services_given
/locations_of_service
Geocode
/geocode/
http://family-promise-dev.us-east-1.elasticbeanstalk.com/#/Geocode/get_latitude_longitude_geocode__post
DS API - Family Promise - Swagger UI
Logo