Sample services showing the usage of the SmokeFramework and related libraries.
An example of a service as it is generated using SmokeFrameworkApplicationGenerate with the command-
swift run -c release SmokeFrameworkApplicationGenerate \
--base-file-path ${workspaceRoot}/smoke-framework-examples/EmptyExampleService
An example of a service using SmokeDynamoDb to store and retrieve data. Initially generated using SmokeFrameworkApplicationGenerate with the command-
swift run -c release SmokeFrameworkApplicationGenerate \
--base-file-path ${workspaceRoot}/smoke-framework-examples/PersistenceExampleService \
A variant of PersistenceExampleService
that uses a generic context. This will mean that at runtime calls from operation
handlers to the DynamoDB table in the context will directly use the concrete AWSDynamoDBCompositePrimaryKeyTable
type rather than first using an existential type of the DynamoDBCompositePrimaryKeyTable
protocol (an additional layer of redirection).
A Swift package wrapper around an Open API 3.0 model. Allows this model to be used by codegen SwiftPM plugins in conjunction with a consuming package.
An example of a Swift Client created for an API Gateway-hosted API. Uses the Open API 3.0 model specified in OtherServiceModel
.
An example of a smoke-framework-based service that uses the OtherServiceSwiftClient
in one of its operations.
This library is licensed under the Apache 2.0 License.