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 -
operationTypeExtension methodThe HTTP method of the functionality of the component.
Declaration
Swift
public var operationType: OperationType { get } -
pathComponentsExtension methodAn array of
PathComponentdescribing the path that theEndpointextends.Declaration
Swift
public var pathComponents: [PathComponent] { get }
View on GitHub
RestEndpointModifier Protocol Reference