Skip to content

novr/swift-openapi-compute

Repository files navigation

Build

Swift OpenAPI Compute

This package provides Compute Bindings for the OpenAPI generator.

Usage

In entrypoint.swift add:

// Create a Compute OpenAPI Transport using your router.
let transport = ComputeTransport(router)

// 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())

Documentation

TBD