UpdateEndpoint
public protocol UpdateEndpoint : AuthEndpoint
A special AuthEndpoint used to provide a common interface for Update
components so they can access their own .auth modifier.
-
auth(_:Extension method) A modifier used to make sure components only authorize requests where the supplied user
Uis actually related to theQuerySubject.Declaration
Swift
public func auth<T: CorvusModelAuthenticatable>( _ user: UpdateAuthModifier<Self, T>.UserKeyPath ) -> UpdateAuthModifier<Self, T>Parameters
userA
KeyPathto the related user property.Return Value
An instance of a
UpdateAuthModifierwith the suppliedKeyPathto the user.
UpdateEndpoint Protocol Reference