diff --git a/catalyst-gateway/.gitignore b/catalyst-gateway/.gitignore index 92e534b054..8111f6ae51 100644 --- a/catalyst-gateway/.gitignore +++ b/catalyst-gateway/.gitignore @@ -13,3 +13,4 @@ target/ # Build artifacts cat-gateway.coverage-report.info cat-gateway.junit-report.xml +cat-gateway-api.* \ No newline at end of file diff --git a/catalyst-gateway/Earthfile b/catalyst-gateway/Earthfile index 91aec11f4b..e2849c6914 100644 --- a/catalyst-gateway/Earthfile +++ b/catalyst-gateway/Earthfile @@ -84,3 +84,9 @@ package-cat-gateway-with-preprod-snapshot: # Publish packages if all integration tests have passed. (Failure to pass tests will prevent packages being published.) # publish: # FROM scratch + +# get-api-locally : Get a copy of the OpenAPI json document locally. +get-api-locally: + FROM scratch + COPY +build/doc/cat-gateway-api.json cat-gateway-api.json + SAVE ARTIFACT cat-gateway-api.json AS LOCAL cat-gateway-api.json \ No newline at end of file