swift-openapi-vapor

1.0.1

Vapor Bindings for the OpenAPI Generator
swift-server/swift-openapi-vapor

What's New

1.0.1

2024-04-09T12:12:23Z

What's Changed

  • Fix empty path component in route registration by @marius-se in #13
  • Enable documentation + Add a tutorial for Request injection by @MahdiBM in #16
  • Migrate to NIOExtras HTTP Types Conversion by @0xTim in #18

New Contributors

Full Changelog: 1.0.0...1.0.1

Swift OpenAPI Vapor

This package provides Vapor Bindings for the OpenAPI generator.

Usage

In entrypoint.swift add:

// Create a Vapor OpenAPI Transport using your application.
let transport = VaporTransport(routesBuilder: 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)

Documentation

To get started, check out the full documentation, which contains step-by-step tutorials!

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Wed Dec 18 2024 11:16:36 GMT-1000 (Hawaii-Aleutian Standard Time)