RestEndpointModifier
public protocol RestEndpointModifier : RestEndpoint
A class that wraps a RestEndpoint
with additional functionalty.
This allows Corvus to chain modifiers, as it gets treated as any other
struct conforming to RestEndpoint
.
-
The return type for the
.handler()
modifier.Declaration
Swift
associatedtype Endpoint : RestEndpoint
-
operationType
Extension methodThe HTTP method of the functionality of the component.
Declaration
Swift
public var operationType: OperationType { get }
-
pathComponents
Extension methodAn array of
PathComponent
describing the path that theEndpoint
extends.Declaration
Swift
public var pathComponents: [PathComponent] { get }