File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
- # swift-openapi-vapor
2
- Vapor Bindings for the OpenAPI Generator
1
+ # Swift OpenAPI Vapor
2
+
3
+ This package provides Vapor Bindings for the [ OpenAPI generator] ( https://github.com/apple/swift-openapi-generator ) .
4
+
5
+ ## Usage
6
+
7
+ In ` entrypoint.swift ` add:
8
+
9
+ ``` swift
10
+ // Create a Vapor OpenAPI Transport using your application.
11
+ let transport = VaporOpenAPITransport (app)
12
+
13
+ // Create an instance of your handler type that conforms the generated protocol
14
+ // defining your service API.
15
+ let handler = MyServiceAPIImpl ()
16
+
17
+ // Call the generated function on your implementation to add its request
18
+ // handlers to the app.
19
+ try handler.registerHandlers (on : transport, serverURL : Servers.server1 ())
20
+ ```
21
+
22
+ ## Documentation
23
+
24
+ To get started, check out the full [ documentation] [ docs-generator ] , which contains step-by-step tutorials!
25
+
26
+ [ docs-generator ] : https://swiftpackageindex.com/apple/swift-openapi-generator/documentation
You can’t perform that action at this time.
0 commit comments