[{"path":"/api","description":"This page describing all available API calls"},{"path":"/api/result/:type/:group/:name/:hardware/:timestamp?","description":"Returns the result for a specific 'type', 'group', 'name', and\n        'hardware'. The 'timestamp' parameter is optional and if it is omitted, the latest\n        image is used. The type must be either 'reference', 'candidate', 'difference',\n        \"reference-thumbnail\", \"candidate-thumbnail\", \"difference-thumbnail\", or \"log\".\n        For all but the last option, the result will be an image file, for the \"log\"\n        option, the result will be a text file."},{"path":"/api/compare/:type/:group/:name/:hardware1/:hardware2","description":"Generates a new comparison image that takes either the reference\n        images or the candidate images for two hardware setups for the same test and runs\n        a comparison image on those. These images will generally not be cached and thus\n        this API call will take some time to finish. The 'type' must be either\n        \"reference\" or \"candidate\"."},{"path":"/api/test-records","description":"Returns all of the tests results as a JSON object"},{"path":"/api/diff-threshold","description":"Returns the current difference threshold used for image comparisons"},{"path":"/api/update-diff-threshold","description":"(Requires admin) This will recalculate all of the difference images\n        with the new threshold that is passed to this function. The JSON object in the\n        body must contain the 'threshold' value as a number between 0 and 1 that is the\n        new error threshold"},{"path":"/api/submit-test","description":"(Requires runner) This will submit a new test to the image testing\n        server. The body of message must contain a 'runnerID', 'hardware', 'group',\n        'name', 'timestamp', 'timing', and 'commitHash'. The 'runnerID' must be one of the\n        allowed runners setup for this server. Furthermore, there needs to be the\n        candidate file as a multipart encoded file"},{"path":"/api/run-test","description":"This will run a comparison against the current reference image on the\n        server without storing the results. The body of message must contain a 'hardware',\n        'group', and 'name'. Furthermore, there needs to be the candidate file as a\n        multipart encoded file. The API returns the difference image."},{"path":"/api/update-reference","description":"(Requires admin) Marks the current reference image for a specific test\n        as invalid and instead use the latest test as a reference instead. In addition to\n        the admin token, the JSON object contained in the body must provide the\n        'hardware', 'group', and 'name' for test whose reference should be invalidated."}]