Skip to content

ARWL2016/image-search

Repository files navigation

Image Search Abstraction Layer

This API microservice conducts an image search of the https://imgur.com/* domain using Google Custom Search. Users can enter a search term and an offset value (ie offset=10 will fetch results 11-20), and the API will respond with a list of image URLs and alt texts. The last 10 queries are recorded on a log file and can be returned. The API is CORS enabled for GET requests from all origins.

Project criteria: https://www.freecodecamp.org/challenges/image-search-abstraction-layer

API Usage

  • GET /api/imagesearch?search=[cats]&offset=[10] - query imgur with search term cats and offset of 10
  • GET /api/latest/imagesearch- return last 10 queries

Tech

Comments

Todos

  • add GET request tests
  • default to HTTPS since this is enabled on Heroku