Add Rest API for results.