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.
- Host: GitHub
- URL: https://github.com/bubblxs/random-api
- Owner: bubblxs
- Created: 2024-06-19T19:19:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-20T15:43:27.000Z (over 1 year ago)
- Last Synced: 2025-03-27T04:32:15.864Z (about 1 year ago)
- Topics: javascript, node-js, nodejs-api
- Language: JavaScript
- Homepage:
- Size: 7.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.