Skip to content

7d4b9/fizzbuzz-lbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fizzbuzz

Unit tests

make unit-tests

Integration tests

make integration-tests

Example usage

go run main.go
curl --header "Content-Type: application/json"   --request POST   --data '{"Int1": 2,"Int2": 3, "Limit": 10, "Str1": "fizz", "Str2": "buzz"}' localhost:8080
1 fizz buzz fizz 5 fizzbuzz 7 fizz buzz fizz

Statistics endpoint

Return the parameters corresponding to the most used request, as well as the number of hits for this requests.

curl  localhost:8080/statistics
{"Pattern":"/fizzbuzz/{\"Int1\": 2,\"Int2\": 3, \"Limit\": 10, \"Str1\": \"fizz\", \"Str2\": \"buzz\"}","Count":4}

About

Fizzbuzz server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published