mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

Image API end point and image viewing URLs do not match #84

Closed struan closed 9 years ago

struan commented 10 years ago

There's some awful inconsistency in our URLs for images in that if you want to replace an image you use /api/v0.1/:collection/:id/image/:image_id but to view it /:collection/images/:image_id/:id.

Make /:collection/:id/image/:image_id also work for getting the image so the schemas are consistent between the API and the UI.

/api/v0.1/:collection/:id/image/:image_id should also return the JSON data for the image.

chrismytton commented 9 years ago

Fixed in https://github.com/mysociety/popit/commit/9e7903d442dd74b996b509c881dd3638d7e39752