Gravity Recommender TL;DR

TL;DR

Since there are only two functions:

... all you need to know, is this:

The API can be called both from browsers and from a server, thus you get this matrix of four possible endpoints:

A useful description of the needed JSON payloads is found on the payload specifications page.