codeforamerica / fplapi

The FPL API makes current federal income requirements programmatically and reliably accessible for your applications.
http://fplapi.herokuapp.com/
11 stars 7 forks source link

Given no parameters, default to household size=1 and current year #10

Open daguar opened 9 years ago

daguar commented 9 years ago

Per @ycombinator's suggestion here: https://github.com/codeforamerica/project-ideas/issues/70#issuecomment-86179193

daguar commented 9 years ago

I'll take this on!

daguar commented 9 years ago

Actually! Looks like you had a different approach you were considering taking in the comments, @mapsam:

# TODO: return a different reponse with all household size info

What do we think makes the most sense?

daguar commented 9 years ago

Some work in progress on a branch I pushed up.

mapsam commented 9 years ago

This sounds good to me @daguar! I didn't have a particular opinion on that TODO. My original thinking was probably "how does a developer get ALL of the information at once?", but that could probably be a unique call instead of the default.

Also, is it crazy to default to something other than 1? What if we defaulted to the average family size per the US census? That feels like I might be over thinking it, though.