Skip to content

A super lightweight microservice API in Go that takes a named numerical set in JSON and returns the median value of that set in JSON

License

Notifications You must be signed in to change notification settings

handle2001/medianserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medianserver v1.0.0

Overview:

Medianserver performs a simple task: it accepts a named set of integers in JSON format and returns their median value.

Download:

You can clone this repository and run medianserver locally or obtain the docker image by running:

docker pull flagrantist/medianserver

Examples:

$ curl -X POST -d '{"name":"deezNuts","set":[90,92,93,88,95,88,97,87,98]}' http://localhost:8080 | jq

Returns:

{
  "Name": "deezNuts",
  "Type": "Median",
  "Value": [
    92
  ]
}

About

A super lightweight microservice API in Go that takes a named numerical set in JSON and returns the median value of that set in JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published