Git Product home page Git Product logo

imagesearchabstractionlayer2's Introduction

Image Search Abstraction Layer

http://www.freecodecamp.com/challenges/image-search-abstraction-layer

I used the Imgur API.

User Stories (Requirements)

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

Setup

This project was done in WebStorm 11.0.3 with no file watchers. I used the current version of Javascript to make it easier to debug in WebStorm. It's easier because I don't have to deal with source-maps.

Example Usage

To get results for a search query use the API like this:

/api/imagesearch/cat

This would search for cat images. You will always get 59 results. You can change which 10 you want by adding an offset like this:

/api/imagesearch/cat?offset=1

This would return images 60 to 119, inclusive.

To get the latest searches made you can query the API like this:

/api/latest/imagesearch

This will return all the searches done.

Extras

๐Ÿณjs-standard-style

imagesearchabstractionlayer2's People

Contributors

fallrisk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.