/** * Adds the operation title to the document. If the operation has a summary, the title is the summary. * Otherwise the title is the method of the operation and the URL of the operation. * * @param operation the Swagger Operation */ private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, PathOperation operation) { buildOperationTitle(markupDocBuilder, operation.getTitle(), operation.getId()); if (operation.getTitle().equals(operation.getOperation().getSummary())) { markupDocBuilder.block(operation.getMethod() + " " + operation.getPath(), MarkupBlockStyle.LITERAL); } }
buildOperationTitle(markupDocBuilder, operation);
/** * Adds the operation title to the document. If the operation has a summary, the title is the summary. * Otherwise the title is the method of the operation and the URL of the operation. * * @param operation the Swagger Operation */ private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, PathOperation operation) { buildOperationTitle(markupDocBuilder, operation.getTitle(), operation.getId()); if (operation.getTitle().equals(operation.getOperation().getSummary())) { markupDocBuilder.block(operation.getMethod() + " " + operation.getPath(), MarkupBlockStyle.LITERAL); } }
/** * Adds the operation title to the document. If the operation has a summary, the title is the summary. * Otherwise the title is the method of the operation and the URL of the operation. * * @param operation the Swagger Operation */ private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, PathOperation operation) { buildOperationTitle(markupDocBuilder, operation.getTitle(), operation.getId()); if (operation.getTitle().equals(operation.getOperation().getSummary())) { markupDocBuilder.block(operation.getMethod() + " " + operation.getPath(), MarkupBlockStyle.LITERAL); } }
buildOperationTitle(markupDocBuilder, operation);
buildOperationTitle(markupDocBuilder, operation);