Skip to content

Commit

Permalink
openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Aug 31, 2023
1 parent 15ca6f1 commit 2b57010
Show file tree
Hide file tree
Showing 15 changed files with 5,485 additions and 3,636 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ helm/charts
helm/Chart.lock
/.identity/.terraform.lock.hcl
/docker/secrets
.cache
14 changes: 3 additions & 11 deletions openapi/generate_openapi.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
#!/bin/bash
set -e

if ! $(curl --output /dev/null --silent --head --fail http://localhost:8080/actuator/info); then
# create containers
cd ../docker || exit
sh ./run_docker.sh "$1" "$2"
cd ../openapi || exit
if [[ "$(pwd)" =~ .*"openapi".* ]]; then
cd ..
fi


# save openapi
curl http://localhost:8080/v3/api-docs > ./openapi.json
curl http://localhost:8080/v3/api-docs/nodev1 > ./openapi_nodev1.json
curl http://localhost:8080/v3/api-docs/verifierv1 > ./openapi_verifierv1.json
curl http://localhost:8080/v3/api-docs/fdrv1 > ./openapi_fdrv1.json
mvn test -Dtest=OpenApiGenerationTest

# UI mode http://localhost:8080/swagger-ui/index.html
Loading

0 comments on commit 2b57010

Please sign in to comment.