-
An array of
PathComponent
describing the path that theApi
extends.Declaration
Swift
public let pathComponents: [PathComponent]
-
Creates a
Api
from a path and a builder function passed as a closure.Declaration
Swift
public init( _ pathComponents: PathComponent..., @EndpointBuilder content: () -> Endpoint )
Parameters
pathComponents
One or more objects describing the route.
content
An
EndpointBuilder
, which is a function builder that takes in multipleEndpoints
and returns them as a singleEndpoint
.