A cut-down sample illustrating how we built the Octopus REST API