Skip to content

SpiffGreen/random-words-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-Words-API

Description

Get random words of any length using this api

API

/data: This endpoint simply returns a random string

/data?number=n: Using the number parameter will return an array of random words of n length, where n is an integer.

/all: This endpoint returns all the documents data in the shop.

Sample Response

fetch("/data?number=3")
    .then(res => res.json())
    .then(data => console.log(data));

Possible Output:

["profuse","deranged","bomb"]

Installation

Run

$ npm install

License

MIT

About

Get random words of any length using this api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published