peacecorps / peace-corps-countries-api

The Peace Corps Countries & Regions REST API provides read-only access and currently supports JSON data format. Developers, designers, engineers, and partners are all encouraged to leverage the Peace Corps Countries & Regions API to build innovative tools and/or creatively share this data.
4 stars 6 forks source link

Bucket policy fix? #3

Closed jedsundwall closed 9 years ago

jedsundwall commented 9 years ago

I'm getting "access denied" errors on the file URLs exposed by your API (e.g. http://files.peacecorps.gov/uploads/banners/albania.jpg). It seems like you might want to update your bucket policy to make those files readable by anyone.

sshami commented 9 years ago

Thanks for reporting. The example you provided seems to be the incorrect URL to the assets. It’s missing the ‘countries’ directory in the URL.

Can you confirm that you are getting the following URL for the banner image asset: http://files.peacecorps.gov/uploads/banners/albania.jpg

You should be getting the following URL instead. Are you not getting this when you call the API? http://files.peacecorps.gov/uploads/countries/banners/albania.jpg

jedsundwall commented 9 years ago

Ha! This is entirely my mistake. I had misread the URLs during your presentation. If only Firefox let you zoom in on the json! ;)

Carry on.