Classes
The following classes are available globally.
-
A default implementation of a bearer token.
See moreDeclaration
Swift
public final class CorvusToken : CorvusModelextension CorvusToken: CorvusModelTokenAuthenticatable -
A default implementation of a user for basic authentication.
See moreDeclaration
-
A class that provides functionality to create objects of a generic type
See moreTconforming toCorvusModel.Declaration
Swift
public final class Create<T> : CreateEndpoint where T : CorvusModel -
A class that contains custom functionality passed in by the implementor for a generic type
See moreTconforming toCorvusModelgrouped under a given path.Declaration
Swift
public final class Custom<T, R> : RestEndpoint where T : CorvusModel, R : ResponseEncodable -
A class that provides functionality to delete objects completely of a generic type
See moreTconforming toCorvusModeland identified by a route parameter.Declaration
Swift
public final class Delete<T> : AuthEndpoint where T : CorvusModel -
A class that provides functionality to log in a user with username and password credentials sent in a HTTP POST
See moreRequestand save a token for that user. Needs an object of typeTwhich represents the token to be created upon login.Declaration
Swift
public final class Login< T: CorvusModelTokenAuthenticatable & ResponseEncodable>: Endpoint where T.User: CorvusModelAuthenticatable -
A class that wraps a component which utilizes an
See more.auth()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toAuthEndpoint. Requires an objectUthat represents the user to authorize.Declaration
Swift
public class AuthModifier< A: AuthEndpoint, U: CorvusModelAuthenticatable>: RestModifier<A>, AuthEndpoint -
A class that wraps a
See moreCreatecomponent which utilizes an.auth()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toCreateAuthModifier. Requires an objectUthat represents the user to authorize.Declaration
Swift
public final class CreateAuthModifier< A: CreateEndpoint, U: CorvusModelAuthenticatable>: AuthModifier<A, U>, CreateEndpoint -
A class that wraps a component which utilizes an
See more.auth()modifier. Differs fromAuthModifierby authenticating on the user of an intermediate parentIofA.QuerySubject. Requires an objectUthat represents the user to authorize.Declaration
Swift
public class NestedAuthModifier< A: AuthEndpoint, I: CorvusModel, U: CorvusModelAuthenticatable>: RestModifier<A>, AuthEndpoint -
A class that wraps a
See moreCreatecomponent which utilizes an.auth()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toNestedCreateAuthModifier. Requires an objectUthat represents the user to authorize.Declaration
Swift
public final class NestedCreateAuthModifier< A: CreateEndpoint, I: CorvusModel, U: CorvusModelAuthenticatable>: NestedAuthModifier<A, I, U>, CreateEndpoint -
A class that wraps a component which utilizes an
See more.auth()modifier. Differs fromAuthModifierby authenticating on the user of an intermediate parentIofA.QuerySubject. Requires an objectUthat represents the user to authorize.Declaration
Swift
public final class NestedReadAllAuthModifier< A: AuthEndpoint, I: CorvusModel, U: CorvusModelAuthenticatable>: ReadEndpoint -
A class that provides functionality to read all objects of a generic type
See moreTconforming toCorvusModel.Declaration
Swift
public final class ReadAll<T> : ReadEndpoint where T : CorvusModel -
A class that wraps a component which utilizes an
See more.auth()modifier. Differs fromAuthModifierby authenticating on the user of an intermediate parentIofA.QuerySubject. Requires an objectUthat represents the user to authorize.Declaration
Swift
public final class ReadAllAuthModifier< A: AuthEndpoint, U: CorvusModelAuthenticatable>: ReadEndpoint -
A class that wraps a
See moreUpdatecomponent which utilizes an.auth()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toUpdateAuthModifier. Requires an objectUthat represents the user to authorize.Declaration
Swift
public final class UpdateAuthModifier< A: UpdateEndpoint, U: CorvusModelAuthenticatable>: AuthModifier<A, U>, UpdateEndpoint -
A class that wraps a component which utilizes an
See more.userAuth()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toAuthEndpoint.Declaration
Swift
public final class UserAuthModifier< A: AuthEndpoint >: RestModifier<A>, AuthEndpoint where A.QuerySubject: CorvusModelAuthenticatable -
A class that wraps a component which utilizes a
See more.respond(with:)modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toRestEndpoint.Declaration
Swift
public final class ResponseModifier<E: RestEndpoint, R: CorvusResponse>: RestEndpoint where E.Element == R.Item -
A class that wraps a component which utilizes a
See more.children()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toReadEndpoint.Declaration
Swift
public final class ChildrenModifier< R: ReadEndpoint, M: CorvusModel>: ReadEndpoint -
A class that wraps a component which utilizes a
See more.filter()modifier. That allows Corvus to chain modifiers, as it gets treated as any other struct conforming toReadEndpoint.Declaration
Swift
public final class FilterModifier< R: ReadEndpoint >: ReadEndpoint -
A class that provides functionality to read objects of a generic type
See moreTconforming toCorvusModeland identified by a route parameter.Declaration
Swift
public final class ReadOne<T> : ReadEndpoint where T : CorvusModel -
A class that provides functionality to restore soft-deleted objects of a generic type
See moreTconforming toCorvusModeland identified by a route parameter.Declaration
Swift
public final class Restore<T> : AuthEndpoint where T : CorvusModel -
A class that provides functionality to update objects of a generic type
See moreTconforming toCorvusModeland identified by a route parameter.Declaration
Swift
public final class Update<T> : UpdateEndpoint where T : CorvusModel -
A class that contains Create, Read, Update and Delete functionality for a generic type
See moreTrepresenting a user object.Declaration
Swift
public final class User<T> : Endpoint where T : CorvusModelAuthenticatable -
A class that wraps a
See moreRestEndpointwith additional functionalty. This allows Corvus to chain modifiers, as it gets treated as any other struct conforming toRestEndpoint.Declaration
Swift
public class RestModifier<R> : RestEndpoint where R : RestEndpoint
Classes Reference