Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task 3.swagger: export and host swagger ui and schema #15

Merged
merged 2 commits into from
Oct 17, 2022
Merged

Conversation

Guria
Copy link
Owner

@Guria Guria commented Oct 17, 2022

  • Swagger scheme is extracted from aws and published along with frontend app.
  • Swagger UI is added to the app temporarily. Will be in a separate bucket in future.

@github-actions
Copy link

Build output

Deploying to stage task3-swagger
api-gw › waiting
products-api › waiting
shop-frontend-app › waiting
api-gw › deploying
api-gw › Running "serverless deploy --stage task3-swagger"
api-gw › Deploying aws-js-practitioner-api to stage task3-swagger (us-east-1)
api-gw › ✔ Service deployed to stack aws-js-practitioner-api-task3-swagger (67s)
api-gw › Update available. Run "npm install serverless@^3.23.0" to update
api-gw › Running "serverless info --verbose --stage task3-swagger"
api-gw › service: aws-js-practitioner-api
api-gw › stage: task3-swagger
api-gw › region: us-east-1
api-gw › stack: aws-js-practitioner-api-task3-swagger
api-gw ›
api-gw › Stack Outputs:
api-gw › apiGatewayRestApiId: st9l13wyke
api-gw › apiGatewayRestApiRootResourceId: w5cisidj0j
api-gw › ServerlessDeploymentBucketName: aws-js-practitioner-api-serverlessdeploymentbuck-dwudabzujnxk
api-gw › deployed
products-api › deploying
products-api › Running "serverless deploy --stage task3-swagger --param apiGatewayRestApiId=st9l13wyke --param apiGatewayRestApiRootResourceId=w5cisidj0j"
products-api › Deploying products-api to stage task3-swagger (us-east-1)
products-api › ✔ Service deployed to stack products-api-task3-swagger (126s)
products-api › endpoints:
products-api › GET - https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger/products
products-api › GET - https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger/products/{productId}
products-api › functions:
products-api › getProductsList: products-api-task3-swagger-getProductsList (139 kB)
products-api › getProductById: products-api-task3-swagger-getProductById (139 kB)
products-api › Running "serverless info --verbose --stage task3-swagger --param apiGatewayRestApiId=st9l13wyke --param apiGatewayRestApiRootResourceId=w5cisidj0j"
products-api › service: products-api
products-api › stage: task3-swagger
products-api › region: us-east-1
products-api › stack: products-api-task3-swagger
products-api › endpoints:
products-api › GET - https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger/products
products-api › GET - https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger/products/{productId}
products-api › functions:
products-api › getProductsList: products-api-task3-swagger-getProductsList
products-api › getProductById: products-api-task3-swagger-getProductById
products-api ›
products-api › Stack Outputs:
products-api › GetProductByIdLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:products-api-task3-swagger-getProductById:1
products-api › GetProductsListLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:products-api-task3-swagger-getProductsList:1
products-api › ServiceEndpoint: https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger
products-api › ServerlessDeploymentBucketName: products-api-task3-swagg-serverlessdeploymentbuck-1shekoev5nln2
products-api › deployed
shop-frontend-app › deploying
shop-frontend-app › Running "serverless deploy --stage task3-swagger --param apiGatewayRestApiId=st9l13wyke --param productsApiServiceEndpoint=https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger"
shop-frontend-app › Deploying aws-js-practitioner-shop-frontend to stage task3-swagger (us-east-1)
shop-frontend-app › Running command: aws apigateway get-export --parameters extensions='apigateway' --rest-api-id st9l13wyke --stage-name task3-swagger --export-type swagger public/swagger.json
shop-frontend-app › echo "CONFIG = {BASE_URL: "https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger\"}" > public/config.js
shop-frontend-app › npm run build
shop-frontend-app › {
shop-frontend-app › "contentType": "application/octet-stream",
shop-frontend-app › "contentDisposition": "attachment; filename="swagger_2022-10-17T21:43:46Z.json""
shop-frontend-app › }
shop-frontend-app › > @guria.dev/[email protected] build
shop-frontend-app › > tsc && vite build
shop-frontend-app › vite v3.1.8 building for production...
shop-frontend-app › transforming...
shop-frontend-app › ✓ 3423 modules transformed.
shop-frontend-app › warnings when minifying css:
shop-frontend-app › ▲ [WARNING] Expected identifier but found "*" [css-syntax-error]
shop-frontend-app ›
shop-frontend-app › :1:30219:
shop-frontend-app › 1 │ ...fter{clear:both}.swagger-ui .cf{*zoom:1}.swagger-ui .cl{clear:le...
shop-frontend-app › ╵ ^
shop-frontend-app ›
shop-frontend-app ›
shop-frontend-app › rendering chunks...
shop-frontend-app › dist/index.html 0.64 KiB
shop-frontend-app › dist/assets/dehydrated.eb01c8e5.js 0.58 KiB / gzip: 0.33 KiB
shop-frontend-app › dist/assets/SwaggerStyles.b21286a4.js 0.05 KiB / gzip: 0.06 KiB
shop-frontend-app › dist/assets/SwaggerStyles.e392df80.css 140.02 KiB / gzip: 22.23 KiB
shop-frontend-app › dist/assets/libs.f5f78b2b.js 115.30 KiB / gzip: 38.24 KiB
shop-frontend-app › dist/assets/react.988ba9ed.js 198.68 KiB / gzip: 60.68 KiB
shop-frontend-app › dist/assets/index.6b686a0f.js 216.23 KiB / gzip: 65.57 KiB
shop-frontend-app › dist/assets/swagger.c4dd6200.js 898.55 KiB / gzip: 281.32 KiB
shop-frontend-app › DistributionIdKey: WebAppDistributionIdOutput
shop-frontend-app › CloudfrontInvalidate: Invalidation started
shop-frontend-app › Web App deployed to Cloudfront and available at following addresses:
shop-frontend-app › * https://d1l4ekaz3pwivb.cloudfront.net
shop-frontend-app › * https://aws-js-practitioner-shop-frontend-task3-swagger.guria.dev
shop-frontend-app › Swagger Schema available at:
shop-frontend-app › * https://aws-js-practitioner-shop-frontend-task3-swagger.guria.dev/swagger.json
shop-frontend-app › Swagger UI available at:
shop-frontend-app › * https://aws-js-practitioner-shop-frontend-task3-swagger.guria.dev/swagger
shop-frontend-app › ✔ Service deployed to stack aws-js-practitioner-shop-frontend-task3-swagger (366s)
shop-frontend-app › Running "serverless info --verbose --stage task3-swagger --param apiGatewayRestApiId=st9l13wyke --param productsApiServiceEndpoint=https://st9l13wyke.execute-api.us-east-1.amazonaws.com/task3-swagger"
shop-frontend-app › service: aws-js-practitioner-shop-frontend
shop-frontend-app › stage: task3-swagger
shop-frontend-app › region: us-east-1
shop-frontend-app › stack: aws-js-practitioner-shop-frontend-task3-swagger
shop-frontend-app ›
shop-frontend-app › Stack Outputs:
shop-frontend-app › WebAppDistributionIdOutput: E3FHVKVA4B2FH
shop-frontend-app › WebAppDistributionOutput: d1l4ekaz3pwivb.cloudfront.net
shop-frontend-app › ServerlessDeploymentBucketName: aws-js-practitioner-shop-serverlessdeploymentbuck-8pnkff5y9w54
shop-frontend-app › WebAppCustomDomainOutput: aws-js-practitioner-shop-frontend-task3-swagger.guria.dev
shop-frontend-app › deployed

@Guria Guria merged commit 877a875 into main Oct 17, 2022
@github-actions
Copy link

Deployment removed

@Guria Guria changed the title task 3.additional: export and host swagger ui and schema task 3.swagger: export and host swagger ui and schema Oct 18, 2022
@Guria Guria linked an issue Oct 18, 2022 that may be closed by this pull request
@Guria Guria linked an issue Oct 18, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task 3. First API with AWS API Gateway and AWS Lambda
1 participant