title: Springdoc - How do I add externalDocs to OpenAPI swagger UI auto generated documentation
body: <p>So I have a spring boot project that I just added OpenAPI Swagger UI to. It auto generates the documentation really well for all of our controllers and models. But I would like to add some additional configuration such as externalDocs as shown here.</p>
  <pre class="lang-yaml prettyprint-override"><code>externalDocs:
      url: URL
      description: DESC
  </code></pre>
  <p>But since its auto generated I don't have a YAML for swagger. I tried the following to add it through a Bean with no luck.</p>
  <pre class="lang-java prettyprint-override"><code>import io.swagger.v3.oas.models.ExternalDocumentation;
  import io.swagger.v3.oas.models.OpenAPI;
  import io.swagger.v3.oas.models.info.Info;
  import io.swagger.v3.oas.models.info.License;
  import org.springframework.context.annotation.Bean;
  
  public class springShopOpenAPI{
  
      @Bean
      public OpenAPI springShopOpenAPI() {
             return new OpenAPI()
              .info(new Info().title(&quot;SpringShop API&quot;)
              .description(&quot;Spring shop sample application&quot;)
              .version(&quot;v0.0.1&quot;)
              .license(new License().name(&quot;Apache 2.0&quot;).url(&quot;http://springdoc.org&quot;)))
              .externalDocs(new ExternalDocumentation()
              .description(&quot;SpringShop Wiki Documentation&quot;)
              .url(&quot;https://springshop.wiki.github.org/docs&quot;));
      }
  }
  </code></pre>
  <p>Below is my Pom.xml if needed.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
      &lt;artifactId&gt;springdoc-openapi-ui&lt;/artifactId&gt;
      &lt;version&gt;1.2.28&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>Thanks for any suggestions.</p>