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

calculate FPL percentage if user passes annual/monthly income #1

Closed mapsam closed 9 years ago

apranav19 commented 9 years ago

Hi, So the annual/monthly income will be an additional query parameter? Therefore, FPL % = (income) / the calculated rate?

apranav19 commented 9 years ago

Also with regards to the API structure .. would we want to specify the users to specify the income and the type of income. Something like this: api?year=2012&size=3&income=5000&income_type=annual?

mapsam commented 9 years ago

Seems good to me! Would defaulting to month/annual be helpful or does that seem unnecessary?

apranav19 commented 9 years ago

Since our data returns the amount at an annual rate, we could default to annual. If the users do provide a monthly income, we would just compute the annual income. What do you think?

And also, did you guys use Python 2.x for your project?

mapsam commented 9 years ago

Good thinking.

2.x?

Currently running 2.7.6!

mapsam commented 9 years ago

Resolved in #8