Protocols
The following protocols are available globally.
-
A protocol that defines bearer authentication tokens, similar to
See moreModelAuthenticatable.Declaration
Swift
public protocol CorvusModelAuthenticatable : CorvusModel, Authenticatable -
A protocol that defines bearer authentication tokens, similar to
See moreModelTokenAuthenticatable.Declaration
Swift
public protocol CorvusModelTokenAuthenticatable : CorvusModel, Authenticatable -
A special
See moreRestEndpointused to provide a common interface for endpoints which provide access to the.auth()modifier.Declaration
Swift
public protocol AuthEndpoint : RestEndpoint -
A special
See moreAuthEndpointused to provide a common interface forCreatecomponents so they can access their own.authmodifier.Declaration
Swift
public protocol CreateEndpoint : AuthEndpoint -
A special
See moreAuthEndpointused to provide a common interface forUpdatecomponents so they can access their own.authmodifier.Declaration
Swift
public protocol UpdateEndpoint : AuthEndpoint -
A special
See moreAuthEndpointused to provide a common interface for endpoints which provide access to modifiers that are applcable for Database read requestsDeclaration
Swift
public protocol ReadEndpoint : AuthEndpoint -
A protocol most Corvus components in a hierarchy conform to, so that they may be treated as the same type interchangeably.
See moreDeclaration
Swift
public protocol Endpoint -
A protocol that wraps both
See moreModelandContentfor convenience and is used to define all models that are used in database persistency and in network communication.Declaration
Swift
public protocol CorvusModel: Model, Content where IDValue: LosslessStringConvertible -
See moreCorvusResponseis a wrapper type for the result ofQueryEndpoints. Can be used to add metadata to a response.Declaration
Swift
public protocol CorvusResponse : Content
Protocols Reference