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
pathComponentsOne or more
PathComponentsidentifying the path to the operations defined by theCRUDcomponent.softDeleteEnable/Disable soft deletion of Models.
-
The
contentof theUser, containing Create, Read, Update and Delete functionality grouped under one.Declaration
Swift
public var content: Endpoint { get }
User Class Reference