More to come. The API server to power the visual testing framework.
Based heavily off of https://github.com/webdriverio/webdrivercss-adminpanel
/*Start a buildPOST params:- HEAD sha- BASE sha- Num BrowsersResponse:{ status: "success", build: 203} { status: "failure", message: "Invalid Arguments"}*/app; /*Upload a tarball with the imagesPOST params:- build id- sha (40 chars)- browser name- images (a tar of the images)Response:{ status: "success"} { status: "failure", message: "unknown sha"}*/app; /*Get a build detailsGET Params- idResponse:{ id: 203, head: {SHA}, base: {SHA}, status: "pending" // one of "pending", "failed", "success" browsers: ['Chrome 28', 'Firefox 34', 'IE 8'], diffs: { 'Chrome 28': [ 'homepage.navbar.700.png', 'homepage.navbar.1300.png', 'homepage.search.700.png', 'homepage.search.1300.png' ], 'IE 8': [ 'homepage.navbar.700.png', 'homepage.search.700.png' ] }} { status: "failure", message: "unknown build"}*/app; /*Approve a buildPOST Params- idResponse:{ status: "success"} { status: "failure", message: "unknown build"}*/app; /*Get the image for the SHA. These routes can be used to in <img> tags*/app;app;