Implementation of /similarity REST endpoint

Done