Skip to content

benschool/REST-fizz-buzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST Fizzbuzz

A small api which returns a fizzbuzz array using NodeJS Express. Run using npm start and navigating to localhost:3000.

API Reference

Get a fizzbuzz array

  GET /*
Query Type Description
count number The number of elements in the array. defaults to 100
onFive string The string to be printed when a number is divisible by 5. defaults to buzz
onThree string The string to be printed when a number is divisible by 3. defaults to fizz
onBoth string The string to be printed when a number is divisible by 5 and 3. defaults to fizzbuzz

Example

  GET /?count=15&onThree=fizzy

Returns

[1,2,"fizzy",4,"buzz","fizzy",7,8,"fizzy","buzz",11,"fizzy",13,14,"fizzbuzz"]

About

A NodeJS REST API that returns fizzbuzz.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published