swift-openapi-hummingbird

2.0.0-beta.2

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

What's New

v2.0.0 Beta 2

2024-06-18T09:38:47Z

Changes required after RequestContext and BaseRequestContext were merged in Hummingbird 2.0.0 Beta 7.

Swift OpenAPI Hummingbird

Hummingbird transport for OpenAPI generator.

// Create your router.
let router = Router()

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

// Call the generated function on your implementation to add its request
// handlers to the app.
try api.registerHandlers(on: router)

// Create the application and run as you would normally.
let app = Application(router: router)
try await app.runService()

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: Wed Dec 18 2024 12:19:34 GMT-1000 (Hawaii-Aleutian Standard Time)