Sign inSign up

eneskzlcn/fizz-buzz-api

By eneskzlcn

Updated over 4 years ago

It is a fizz buzz game provider api. Exposes 4000. Uses localhost to serve.Ex: localhost:4000/

Image
0

250

eneskzlcn/fizz-buzz-api repository overview

It is an api that have one handler on one route which is /fizzbuzz/count(int). When a request comes in it creates an array that consist of numbers and words according to the fizzbuzz game. The rules of the fizzbuzz game; Start counting from 1 to .. (given count) -If a number is fully divisible by 3 --> say "fizz" instead of number -If a number is fully divisible by 5 --> say "buzz" instead of number -If a number is both fully divisible by 3 and 5 --> say "fizzbuzz" instead of number

So that api behaves like that. Give a count like /fizzbuzz/15 . The output will be: [ "1","2","fizz",...,"4","buzz","fizz",...,....,"14","fizzbuzz" ,... ]

Tag summary

Content type

Image

Digest

Size

154.3 MB

Last updated

over 4 years ago

docker pull eneskzlcn/fizz-buzz-api