@GET
 @Path("/")
 @ApiOperation(
     value = "Get all documents",
     notes = "All documents that are avaliable",
     response = DocumentDTO.class,
     responseContainer = "List")
 public List<DocumentDTO> documentIndex() {
   return documentRepository
       .getAllDocuments()
       .stream()
       .map(Transformations::convertDocumentToDTO)
       .collect(Collectors.toList());
 }
  @GET
  @Path("/documentation")
  @ApiOperation(
      value = "Documentation for specific documents",
      notes = "Gets all documentation in all documents with matching name and version",
      response = DocumentationItemDTO.class,
      responseContainer = "List")
  public List<DocumentationItemDTO> searchDocumentation(
      @ApiParam(value = "Max number of results", required = false, defaultValue = "50")
          @DefaultValue("50")
          @QueryParam("maxResults")
          int maxResults,
      @ApiParam(value = "Search Term for documentation", required = false)
          @DefaultValue("")
          @QueryParam("searchTerm")
          String searchTerm) {
    List<Document> allDocs = documentRepository.getAllDocuments();

    return getDocumentation(allDocs, searchTerm, maxResults);
  }