Design an API which Returns data as Fizz Buzz Pattern:
- A program that prints each number from 1 to 100 on a new line.
- For each multiple of 3, print "Fizz" instead of the number.
- For each multiple of 5, print "Buzz" instead of the number.
- For numbers which are multiples of both 3 and 5, print "FizzBuzz" instead of the number.
More on Fizz Buzz: https://en.wikipedia.org/wiki/Fizz_buzz
The application exposes a few REST endpoints
HTTP GET /api/fizz-buzz/:count
npm installnpm start- Starts the application and run on port 8080npm run dev- Starts the application in development modenpm run test- Runs all the test cases - unit test cases + integration tests
http://localhost:8080/swagger-ui
- Vercel has some issue with handling static files. So swagger UI is not loaded properly.
https://fizz-buzz-api.vercel.app/swagger-ui- Won't work due to above issue.