IsReplaceable
public protocol IsReplaceable
Flags a resource as being replacable i.e. supports PUT
. This protocol does
nothing by itself, but has constrained extensions for types implementing
RootResource
and ChildResource
.
-
replace(_:)
Extension methodA static function for
RootResource
which returns aPath
that encodes aPUT
request for single resource.Declaration
Swift
public static func replace(_ id: ID) -> Path<Self, SingularPath, PUT>
-
replace
Extension methodA value for an instance of
RootResource
which returns aPath
that encodes aPUT
request for that resource.Declaration
Swift
public var replace: Path<Self, SingularPath, PUT>
-
replace(_:)
Extension methodA static function for
ChildResource
which returns aPath
that encodes aPUT
request for single resource.Declaration
Swift
public static func replace(_ id: ID) -> ChildPath<Self, SingularPath, PUT>
-
replace
Extension methodA value for an instance of
ChildResource
which returns aPath
that encodes aPUT
request for that resource.Declaration
Swift
public var replace: ChildPath<Self, SingularPath, PUT>
-
replace
Extension methodA static function for
SingularRootResource
which returns aPath
that encodes aPUT
request for single resource.Declaration
Swift
public static var replace: Path<Self, SingularPath, PUT>
-
replace
Extension methodA value for an instance of
SingularRootResource
which returns aPath
that encodes aPUT
request for that resource.Declaration
Swift
public var replace: Path<Self, SingularPath, PUT>
-
replace
Extension methodA static function for
SingularChildResource
which returns aPath
that encodes aPUT
request for single resource.Declaration
Swift
public static var replace: ChildPath<Self, SingularPath, PUT>
-
replace
Extension methodA value for an instance of
SingularChildResource
which returns aPath
that encodes aPUT
request for that resource.Declaration
Swift
public var replace: ChildPath<Self, SingularPath, PUT>