Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.2 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.2 KB

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