DoSomething / DS-Realtime-Feed

A realtime feed of everything going on in DoSomething.org.
MIT License
5 stars 1 forks source link

Adds report back functionality #97

Closed itsjoekent closed 9 years ago

itsjoekent commented 9 years ago

Adds endpoint for getting approved reportback data based on nid (client would supply this based off the current campaign it's featuring)

Also minor adjustments to the staff pick endpoint

Fixes https://github.com/DoSomething/DS-Realtime-Feed/issues/88

@DFurnes

DFurnes commented 9 years ago

What's the purpose of mirroring the Drupal API here?

itsjoekent commented 9 years ago

I always found it more convenient to target internal URL's instead of external from the client (mostly because of same origin policy and it always seems to get in the way). Also this is going to change at some point when Diego builds out the new reportback endpoint, and there is gonna be more logic when that happens on the backend.

itsjoekent commented 9 years ago

also just realized that Dee & Aaron wanted me to log everytime I hit the DS api in StatHat to see if we can figure out when/why it sometimes derps out. I dont think I can do that from the client?

DFurnes commented 9 years ago

Gotcha. Carry on!