Skip to content

Commit

Permalink
swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Aug 6, 2024
1 parent 75dd794 commit 7c466f9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ phases:
docker ${BUILDCMD} \
--build-arg ECR_REGISTRY=${ECR_REGISTRY} \
-t ${ECR_REGISTRY}/mrt-dashboard:dev .
- aws s3 cp swagger.html s3://${S3CFBUCKET}/api/mrt-dashboard/index.html
- aws s3 cp swagger.yml s3://${S3CFBUCKET}/api/mrt-dashboard/
- aws cloudfront create-invalidation --distribution-id ${CFDISTRIBUTIONID} --paths /api/mrt-dashboard/ --region us-east-1
22 changes: 22 additions & 0 deletions swagger.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="SwaggerUI" />
<title>SwaggerUI</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" />
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-bundle.js" crossorigin></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: 'swagger.yml',
dom_id: '#swagger-ui',
});
};
</script>
</body>
</html>

0 comments on commit 7c466f9

Please sign in to comment.