-
An array of
PathComponentdescribing the path that theApiextends.Declaration
Swift
public let pathComponents: [PathComponent] -
Creates a
Apifrom a path and a builder function passed as a closure.Declaration
Swift
public init( _ pathComponents: PathComponent..., @EndpointBuilder content: () -> Endpoint )Parameters
pathComponentsOne or more objects describing the route.
contentAn
EndpointBuilder, which is a function builder that takes in multipleEndpointsand returns them as a singleEndpoint.
Api Class Reference