code: @RequestMapping(value = "builds/{buildId}/previous", method = RequestMethod.GET)
      public ResponseEntity<Build> getPreviousBuild(@PathVariable ID buildId) {
          return structureService.getPreviousBuild(buildId)
                  .map(ResponseEntity::ok)
                  .orElse(ResponseEntity.status(HttpStatus.NO_CONTENT).body(null));
      }
docs: Gets the previous build