sunlightlabs / adhawk-ios

Ad Hawk for iOS
http://adhawk.sunlightfoundation.com/
Other
3 stars 2 forks source link

JSON response #2

Closed boblannon closed 12 years ago

boblannon commented 12 years ago

here's the JSON response (with headers) to expect from the server. it'll always be of the form ../ad/. I'm working right now on the view associated with that location.

200 OK
Server:  nginx/1.2.1
Date:  Wed, 11 Jul 2012 19:49:13 GMT
Content-Type:  application/json
Transfer-Encoding:  chunked
Connection:  keep-alive
{"ad_profile_url": "http://adhawk.sunlight.com/ad/1"}
boblannon commented 12 years ago

fyi, since i haven't finished the view for the ad profile, right now you'll just get a picture of eric wareheim

dcloud commented 12 years ago

Handling that. I suggest we go with "result_url" as a more generic term so we can respond with that on "not found" errors as well. Or something like that, anyway.

boblannon commented 12 years ago

good call. i'll change it.