WhiteHouse / ndoch-hackathon

15 stars 14 forks source link

White House Responses to Petitions Should Be Resources #5

Open BigSauce opened 11 years ago

BigSauce commented 11 years ago

Developers should be able to query for responses as resources just as they can do so with petitions.

Similarly to how developers would access petitions using the following url: https://api.whitehouse.gov/v1/petitions/50cb6d2ba9a0b1c52e000017.json

they would likewise be able to access responses with the following url: https://api.whitehouse.gov/v1/petitions/responses/responseID.json

An example of the format returned by this request is provided in Issue #4 :

nickcatal commented 11 years ago

responses.json is in the Drupal codebase for WTP. It just isn't live on the production site yet.

@welschp @lheyman - do you have an ETA on the responses endpoint? Will it be live by the hackathon?

welschp commented 11 years ago

We don't have a specific delivery date for the responses endpoint at his stage, but it is in the queue.

ivanstegic commented 11 years ago

I may have created some duplication in #14 that requests a small addition to the petition resource that adds the body of the response to the petition itself. I guess I'm torn between a second call to the API to get more info, or having that response embedded with the petition itself, which also makes sense. sigh