swagger2markup/src/main/java/io/github/swagger2markup/internal/document/OverviewDocument.java
/**
     * Builds the overview MarkupDocument.
     *
     * @return the overview MarkupDocument
     */
Builds the overview MarkupDocument.
@return the overview MarkupDocument
Builds the overview MarkupDocument . @return the overview MarkupDocument
@Override
    public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, OverviewDocument.Parameters params) {
        Swagger swagger = params.swagger;
        Info info = swagger.getInfo();
        buildDocumentTitle(markupDocBuilder, info.getTitle());
        applyOverviewDocumentExtension(new Context(Position.DOCUMENT_BEFORE, markupDocBuilder));
        buildOverviewTitle(markupDocBuilder, labels.getLabel(SwaggerLabels.OVERVIEW));
        applyOverviewDocumentExtension(new Context(Position.DOCUMENT_BEGIN, markupDocBuilder));
        buildDescriptionParagraph(markupDocBuilder, info.getDescription());
        buildVersionInfoSection(markupDocBuilder, info);
        buildContactInfoSection(markupDocBuilder, info.getContact());
        buildLicenseInfoSection(markupDocBuilder, info);
        buildUriSchemeSection(markupDocBuilder, swagger);
        buildTagsSection(markupDocBuilder, swagger.getTags());
        buildConsumesSection(markupDocBuilder, swagger.getConsumes());
        buildProducesSection(markupDocBuilder, swagger.getProduces());
        buildExternalDocsSection(markupDocBuilder, swagger.getExternalDocs());
        applyOverviewDocumentExtension(new Context(Position.DOCUMENT_END, markupDocBuilder));
        applyOverviewDocumentExtension(new Context(Position.DOCUMENT_AFTER, markupDocBuilder));
        return markupDocBuilder;
    }
@ Override public MarkupDocBuilder apply ( MarkupDocBuilder markupDocBuilder , OverviewDocument . Parameters params ) { Swagger swagger = params . swagger ; Info info = swagger . getInfo ( ) ; buildDocumentTitle ( markupDocBuilder , info . getTitle ( ) ) ; applyOverviewDocumentExtension ( new Context ( Position . DOCUMENT_BEFORE , markupDocBuilder ) ) ; buildOverviewTitle ( markupDocBuilder , labels . getLabel ( SwaggerLabels . OVERVIEW ) ) ; applyOverviewDocumentExtension ( new Context ( Position . DOCUMENT_BEGIN , markupDocBuilder ) ) ; buildDescriptionParagraph ( markupDocBuilder , info . getDescription ( ) ) ; buildVersionInfoSection ( markupDocBuilder , info ) ; buildContactInfoSection ( markupDocBuilder , info . getContact ( ) ) ; buildLicenseInfoSection ( markupDocBuilder , info ) ; buildUriSchemeSection ( markupDocBuilder , swagger ) ; buildTagsSection ( markupDocBuilder , swagger . getTags ( ) ) ; buildConsumesSection ( markupDocBuilder , swagger . getConsumes ( ) ) ; buildProducesSection ( markupDocBuilder , swagger . getProduces ( ) ) ; buildExternalDocsSection ( markupDocBuilder , swagger . getExternalDocs ( ) ) ; applyOverviewDocumentExtension ( new Context ( Position . DOCUMENT_END , markupDocBuilder ) ) ; applyOverviewDocumentExtension ( new Context ( Position . DOCUMENT_AFTER , markupDocBuilder ) ) ; return markupDocBuilder ; }
Builds the overview MarkupDocument.
Builds the overview MarkupDocument .