Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 731 Bytes

File metadata and controls

29 lines (22 loc) · 731 Bytes

random api

node.js api that displays random images of cats, dogs, and cute quotes.

usage

git clone https://github.com/bubblxs/random-api.git
cd random-api && node ./index.js

the server will start running on port 4242

endpoints

  • endpoint: /api/cat|dog|quote
  • method: GET
  • description: returns a random image or quote.

  • endpoint: /api/cat|dog|quote?id=int
  • method: GET
  • description: returns the image or quote with the associated id.

credits