A REST API that processes image searches using the Google custom search engine
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
.gitignore
.travis.yml
README.md
image-search-api.code-workspace
package-lock.json
package.json
server.js

README.md

Image Search Abstraction Layer

A REST API that processes image searches using the Google custom search engine


Development

* Frontend is built using HTML/CSS and is used to demo API functions
* API is built using Node/Express and handles data creation, updates, and retrieval
* Backend is a MongoDB document database that stores user and exercise data

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.

Usage:

Image Search

Endpoint:
/api/imagesearch/:search

Method:
GET

Parameters:
search=SEARCHTERM
offset=ENTERNUMBER

Example:
https://wme-image-search-api.glitch.me/api/imagesearch/:search?search=avengers&offset=2


Search History:

Endpoint:
/api/latest/imagesearch/

Method:
GET

To view the most recent searches access API at:
https://wme-image-search-api.glitch.me/api/latest/imagesearch/


Go to API demo page:
https://wme-image-search-api.glitch.me