Skip to content

Commit

Permalink
Merge pull request #6 from LinuxSuRen/chore/openapi
Browse files Browse the repository at this point in the history
chore: add openapi support
  • Loading branch information
LinuxSuRen authored Dec 5, 2023
2 parents eb36a9e + c46507d commit 62f9e61
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ Run E2E testing:
```shell
make build-image test-e2e
```

## OpenAPI
You can visit the swagger UI with the following address:

* https://localhost:8080/swagger-ui/index.html
* https://localhost:8080/v3/api-docs
2 changes: 1 addition & 1 deletion e2e/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

mkdir -p /var/data

atest run -p test-suite.yaml --report md
atest run -p test-suite.yaml --report md --swagger-url "${SERVER}/v3/api-docs" --level debug

# cannot get the token in a pr
# if [[ "$PULL_REQUEST" == "" || "$GITHUB_TOKEN" == "" ]];
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.2.0</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down

0 comments on commit 62f9e61

Please sign in to comment.