@RequestMapping(value = "download/{branchId}")
    public ResponseEntity<String> download(@PathVariable ID branchId, String path) {
        return gitService.download(structureService.getBranch(branchId), path)
                .map(ResponseEntity::ok)
                .orElseThrow(
                        () -> new SCMDocumentNotFoundException(path)
                );
    }
@ RequestMapping ( value = "download/{branchId}" ) public ResponseEntity < String > download ( @ PathVariable ID branchId , String path ) { return gitService . download ( structureService . getBranch ( branchId ) , path ) . map ( ResponseEntity :: ok ) . orElseThrow ( ( ) -> new SCMDocumentNotFoundException ( path ) ) ; }
Download a path for a branch

@param branchId ID to download a document from