Basic Go Lang API endpoint based on the instructions found here: https://github.com/tobym/cartesian.
On terminal run the following command lines:
cd /path/to/cartesian/project
go run . --port 8000
Here's an example using HTTPie:
http -v "http://localhost:8000/api/points?x=1&y=1&distance=24"