Image search Micro service

By Roel Verbunt | Project GitHub

User Stories:
  1. I can get the image URLs, alt text and page urls for a set of images relating to a given search string.
  2. I can paginate through the responses by adding a ?offset=2 parameter to the URL.
  3. I can get a list of the most recently submitted search strings.

Example usage:

https://imgsearch-micro.herokuapp.com/search/lolcats
https://imgsearch-micro.herokuapp.com/search/lolcats?offset=10

Example output:

[ { "url": "https://upload.wikimedia.org/wikipedia/commons/1/1a/Cat_crying_(Lolcat).jpg", "snippet": "Lolcat", "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQhYHRZ-aoumwW08SSvzu9xXEvuZX9yxaeYs1wQiw_ZYizo8uZvxtQs69Xj", "context": "https://en.wikipedia.org/wiki/Lolcat" }, : ]

 

https://imgsearch-micro.herokuapp.com/latest

Example output:

[ { "term": "lolcats", "when": "2016-02-29T21:29:34.144Z" } ]