Skip to content

MahdiBM/swift-openapi-hummingbird

 
 

Repository files navigation

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!

About

Hummingbird transport for OpenAPI generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.2%
  • Swift 47.8%