Go to file
Adam Fowler e621e157e0 Relax minimum platforms
to macOS 10.15, iOS 13, tvOS 13, and watchOS 6
2023-06-14 09:02:43 +01:00
Sources/OpenAPIHummingbird Add soundness, generate-contributors scripts 2023-05-14 10:56:38 +02:00
Tests/OpenAPIHummingbirdTests Add soundness, generate-contributors scripts 2023-05-14 10:56:38 +02:00
scripts Add soundness, generate-contributors scripts 2023-05-14 10:56:38 +02:00
.gitignore Add Package.resolved 2023-05-10 16:10:58 +01:00
.swift-format Add soundness, generate-contributors scripts 2023-05-14 10:56:38 +02:00
CONTRIBUTORS.txt Add soundness, generate-contributors scripts 2023-05-14 10:56:38 +02:00
LICENSE Initial commit 2023-05-10 16:04:22 +01:00
Package.swift Relax minimum platforms 2023-06-14 09:02:43 +01:00
README.md Update README.md 2023-06-06 11:50:21 +01:00

README.md

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!