An open API service indexing awesome lists of open source software.

https://github.com/bubblxs/random-api

api that displays random images of cats, dogs and quotes.
https://github.com/bubblxs/random-api

javascript node-js nodejs-api

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

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
- cat images were taken from The Cat API.

- dog images were taken from The Dog API.