User

public final class User<T> : Endpoint where T : CorvusModelAuthenticatable

A class that contains Create, Read, Update and Delete functionality for a generic type T representing a user object.

  • Initializes the component with one or more route path components.

    Declaration

    Swift

    public init(_ pathComponents: PathComponent..., softDelete: Bool = false)

    Parameters

    pathComponents

    One or more PathComponents identifying the path to the operations defined by the CRUD component.

    softDelete

    Enable/Disable soft deletion of Models.

  • The content of the User, containing Create, Read, Update and Delete functionality grouped under one.

    Declaration

    Swift

    public var content: Endpoint { get }