swift-openapi-hummingbird

1.0.0

Hummingbird transport for OpenAPI generator
swift-server/swift-openapi-hummingbird

What's New

v1.0.0

2023-12-12T08:58:00Z

Update to support v1.0.0 of OpenAPI runtime.

Swift OpenAPI Hummingbird

Hummingbird transport for OpenAPI generator.

// Create your Hummingbird application.
let app = HBApplication()

// Create a Hummingbird OpenAPI Transport using your application.
let transport = HBOpenAPITransport(app)

// Create an instance of your handler type that conforms the generated protocol
// defining your service API.
let handler = MyServiceAPIImpl()

// Call the generated function on your implementation to add its request
// handlers to the app.
try handler.registerHandlers(on: transport, serverURL: Servers.server1())

// Start the app as you would normally.
try app.start()
app.wait()

Documentation

To get started, check out the full documentation, which contains step-by-step tutorials!

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Sun Apr 14 2024 06:22:27 GMT-0900 (Hawaii-Aleutian Daylight Time)