feedingamerica / freshtrak-public

FreshTrak public access created with Can't Stop Columbus March 2020
4 stars 3 forks source link

Pantry Finder - Foodbanks Section - Pull foodbank_logo from DB and use it for the image #78

Closed davidpickering closed 4 years ago

davidpickering commented 4 years ago

Currently, all of the foodbanks are displaying the Mid-Ohio Food Collective logo

e.g. a cleveland zip code should show the Greater Cleveland Food Bank logo. foodbank logo

foodbank - singular

If there are multiple agencies service the zip code, they each will get their own logo

E.g. Shared Harvest - Logo E.g. The Foodbank, INC. Logo

Existing JSON object does not include the field 'fb_logo', it will need to be added. These all reference an external resource from Feeding America's website.

http://localhost:8888/api/foodbanks?zip_code=44110 `

{ "foodbanks":[ { "address":"15500 S WATERLOO RD ", "city":"Cleveland", "state":"OH", "zip":"44110", "name":"Greater Cleveland Food Bank", "nickname":"Greater Cleveland Food Bank", "display_url":"https://www.greaterclevelandfoodbank.org/", "fb_agency_locator_url":null, "fb_url":"https://www.greaterclevelandfoodbank.org/", "fb_fano_url":"https://www.feedingamerica.org/find-your-local-foodbank/greater-cleveland-food-bank-inc" } ] } `

davidpickering commented 4 years ago

If Phil's pull request is successful, we can move this to purely a front-end change. https://github.com/midohiofoodbank/freshtrak-pantry-finder-api/pull/5

davidpickering commented 4 years ago

Closing because it has been transitioned to client/#18