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
  • The instance of Endpoint the RestEndpointModifier is modifying.

    Declaration

    Swift

    var modifiedEndpoint: Endpoint { get }
  • operationType Extension method

    The HTTP method of the functionality of the component.

    Declaration

    Swift

    public var operationType: OperationType { get }
  • pathComponents Extension method

    An array of PathComponent describing the path that the Endpoint extends.

    Declaration

    Swift

    public var pathComponents: [PathComponent] { get }