IsListable
public protocol IsListable: Resource
Flags a resource as being listable i.e. it has a collection. This protocol
does nothing by itself, but has constrained extensions for types implementing
RootResource
and ChildResource
.
-
list
Extension methodA static value for
RootResource
which returns aPath
that encodes aGET
request for listing resources.Declaration
Swift
public static var list: Path<Self, CollectionPath, GET>
-
list
Extension methodA static value for
ChildResource
which returns aPath
that encodes aGET
request for listing resources.Declaration
Swift
public static var list: ChildPath<Self, CollectionPath, GET>