hackoregon / teamHomelessness-frontend

2016-2017 Homelessness Project Team - frontend code-staging site
http://hacko-homelessness-staging.s3-website-us-west-2.amazonaws.com/
MIT License
1 stars 10 forks source link

Finalize POC VS. General Data for integration into API #64

Open Zak-Kent opened 7 years ago

Zak-Kent commented 7 years ago

Hey y'all,

The POC table in the Google sheets was one of the tables that the students in Lindsay's class helped make. I'm pretty sure that there is redundant information in there that is included in other endpoints already. If we were trying to make a new card with some of that information, one idea would be building a JSON object that represents the ideal response from the API. Then we can look at that and pull the data together and put it in an endpoint. Let me know if we were thinking of something different on this one.

clemf commented 7 years ago

@Zak-Kent I will work on that. This is the data structure I have been using as I refactor the chart components:

[
  {
    name: '2016',
    data: [
      { name: 'Housing assistance', value: 46 },
      { name: 'Other services', value: 54 },
    ],
  },
  {
    name: '2017',
    data: [
      { name: 'Housing assistance', value: 32 },
      { name: 'Other services', value: 68 },
    ],
  },
]

I haven't put much thought into the API structure yet. I'm still working on some of the lower hanging issues.

Zak-Kent commented 7 years ago

Thanks @clemf! I'll try and make it to the next meet up so we can all figure out a plan for new stuff then.