Skip to content

erdembircan/image-search-abstraction-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


freeCodeCamp
Image Search Abstraction Layer

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:

https://mysterious-brushlands-86683.herokuapp.com/api/imagesearch/pupper?offset=1

Output:

[ { "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAnmfWXQG8ulhDhlFtg9o8ZbJLoU_j0cIcsPzw8XfxF2DMNJ8TvcSFtAo", "context": "https://www.youtube.com/watch%3Fv%3D4PDQ1gziLL8", "snippet": "youtube.comBig Ol Pupper and Doggo Special V.2 - YouTube1280 × 720 - 49 k - jpg", "url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAnmfWXQG8ulhDhlFtg9o8ZbJLoU_j0cIcsPzw8XfxF2DMNJ8TvcSFtAo" } ]

Usage:

https://mysterious-brushlands-86683.herokuapp.com/api/latest/imagesearch

Output:

[ { "term": "pupper", "when": "Thu Dec 14 2017 16:08:06 GMT+0300 (+03)" } ]

About

freeCodeCamp Image Search Abstraction Layer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published