You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>Boolean</code>. To expose the swagger-ui on the actuator management port.</p></td>
234
+
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>Boolean</code>. To expose the swagger-ui/scalar on the actuator management port.</p></td>
<p><ahref="https://swagger.io/tools/swagger-ui/">Scalar</a> Scalar is an open-source API platform, designed for creating beautiful, interactive API documentation and providing a built-in REST API client, with first-class support for OpenAPI (formerly Swagger) specifications.
530
+
<p><ahref="https://scalar.com/">Scalar</a> is an open-source API platform, designed for creating beautiful, interactive API documentation and providing a built-in REST API client, with first-class support for OpenAPI (formerly Swagger) specifications.
528
531
It’s particularly aimed at improving the developer experience when exploring APIs.</p>
<p>The Swagger UI page will then be available at <code>http://server:port/context-path/scalar</code> and the OpenAPI description will be available at the following url for json format: <code>http://server:port/context-path/v3/api-docs</code></p>
541
+
<divclass="ulist">
542
+
<ul>
543
+
<li>
544
+
<p>server: The server name or IP</p>
545
+
</li>
546
+
<li>
547
+
<p>port: The server port</p>
548
+
</li>
549
+
<li>
550
+
<p>context-path: The context path of the application</p>
551
+
</li>
552
+
</ul>
553
+
</div>
554
+
</li>
555
+
<li>
537
556
<p>If your project is using <code>spring-boot-starter-web</code> and you need the access to the swagger-ui, add the following dependency:</p>
<p><code>springdoc-openapi-starter-webmvc-api</code> if they depend on <code>spring-boot-starter-web</code> and they only need the access to the OpenAPI endpoints.</p>
620
639
</li>
621
640
<li>
622
-
<p>OR <code>springdoc-openapi-starter-webmvc-ui</code>, if they depend on <code>spring-boot-starter-web</code> and they also need the access to the swagger-ui.</p>
623
-
</li>
624
-
<li>
625
641
<p>OR <code>springdoc-openapi-starter-webflux-api</code> if they depend on <code>spring-boot-starter-webflux</code> and they only the access to the OpenAPI endpoints.</p>
626
642
</li>
627
-
<li>
628
-
<p>OR <code>springdoc-openapi-starter-webflux-ui</code>, if they depend on <code>spring-boot-starter-webflux</code> and they also need the access to the swagger-ui.</p>
629
-
</li>
630
643
</ul>
631
644
</div>
632
645
</div>
@@ -660,13 +673,15 @@ <h3 id="actuator-support"><a class="anchor" href="#actuator-support"></a>3.9. Ac
660
673
</table>
661
674
</div>
662
675
<divclass="paragraph">
663
-
<p>To expose the swagger-ui, on the management port, you should set</p>
676
+
<p>To expose the swagger-ui and Scalar, on the management port, you should set</p>
@@ -734,13 +759,13 @@ <h3 id="actuator-support"><a class="anchor" href="#actuator-support"></a>3.9. Ac
734
759
<iclass="fa icon-tip" title="Tip"></i>
735
760
</td>
736
761
<tdclass="content">
737
-
If you want to reach the application endpoints, from the swagger-ui deployed beneath the actuator base path, using a different port from your application, <code>CORS for your endpoints</code> on your application level should be enabled.
762
+
If you want to reach the application endpoints, from the swagger-ui/scalar deployed beneath the actuator base path, using a different port from your application, <code>CORS for your endpoints</code> on your application level should be enabled.
738
763
</td>
739
764
</tr>
740
765
</table>
741
766
</div>
742
767
<divclass="paragraph">
743
-
<p>Additionally, it is also possible to combine this property, with the existing property to display the actuator endpoints in the swagger-ui.</p>
768
+
<p>Additionally, it is also possible to combine this property, with the existing property to display the actuator endpoints in the swagger-ui/scalar.</p>
744
769
</div>
745
770
<divclass="listingblock">
746
771
<divclass="content">
@@ -763,6 +788,16 @@ <h3 id="actuator-support"><a class="anchor" href="#actuator-support"></a>3.9. Ac
763
788
</ul>
764
789
</div>
765
790
<divclass="paragraph">
791
+
<p>The scalar UI will be then accessible through the actuator port:</p>
<p>If the management port is different from the application port and <code>springdoc.use-management-port</code> is not defined but <code>springdoc.show-actuator</code> is set to true:</p>
767
802
</div>
768
803
<divclass="ulist">
@@ -771,6 +806,9 @@ <h3 id="actuator-support"><a class="anchor" href="#actuator-support"></a>3.9. Ac
771
806
<p>The swagger-ui will be then accessible through the application port. For example: <code>http://serverName:applicationPort/swagger-ui.html</code></p>
772
807
</li>
773
808
<li>
809
+
<p>The scalar UI will be then accessible through the application port. For example: <code>http://serverName:applicationPort/scalar</code></p>
810
+
</li>
811
+
<li>
774
812
<p>A dedicated group for the actuator endpoints will be by default added.</p>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>Boolean</code>. To expose the swagger-ui on the actuator management port.</p></td>
1625
+
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>Boolean</code>. To expose the swagger-ui/scalar on the actuator management port.</p></td>
0 commit comments