Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 802 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 802 Bytes

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!