Skip to content

Files

Latest commit

0d285c0 · Feb 2, 2020

History

History
56 lines (46 loc) · 1.39 KB

File metadata and controls

56 lines (46 loc) · 1.39 KB

SpringDoc OpenAPI

NOTE: Servlet...

springdoc-openapi-core

    <dependencies>
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-core</artifactId>
            <version>1.1.49</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>

now let's build, run and test:

mvn spring-boot:run &
http :8080/v3/api-docs/

springdoc-openapi-ui

    <dependencies>
        <!--<dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-core</artifactId>
            <version>1.1.49</version>
        </dependency>-->
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>1.2.17</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>

now let's build, run and test:

open http://127.0.0.1:8080/swagger-ui.html

resources