The @aws-prototyping-sdk/open-api-gateway package enables you to build an API using “model-driven development” - forcing you to start by thinking about how your customers will interact with your service, and to work backwards from there.
You can model your API operations, inputs and outputs using either Smithy or OpenAPI, and sit back as infrastructure, clients, documentation and lambda handler wrappers are generated for you - removing the heavy lifting and allowing you to focus on API design and the business logic behind your APIs.
Eliminate mistakes for both yourself and your customers by leveraging the power of type-safety, where generated client and server code ensures inputs and outputs conform to the Smithy or OpenAPI model.
PDK Documentation: aws.github.io/aws-prototyping...
GitHub Repo: github.com/aws/aws-prototypin...
00:00 - Introduction
01:28 - Create an NX Monorepo
02:31 - Add the SmithyApiGatewayTsProject
07:45 - The Smithy Model
11:10 - Generated CDK Infrastructure
14:28 - Type-Safe Lambda Handler Wrappers
16:54 - Generated Type-Safe Clients
19:28 - Custom Smithy Dependencies
20:28 - Deploying the API
21:50 - Calling the API
23:53 - Adding Another Operation
31:38 - Interceptors
34:28 - How to Get Started and Reach Out For Help
Негізгі бет Ғылым және технология AWS Prototyping SDK Smithy API Gateway Demo
Пікірлер: 6