ListApiResource<TData, TId> class abstract

Inheritance
Implementers

Constructors

ListApiResource(RoutePattern path, TransferBean<TData> bean, {String idParam = 'id', bool allowPatch = true, bool allowPost = true, bool allowDelete = true})

Properties

allowDelete bool
finalinherited
allowPatch bool
finalinherited
allowPost bool
finalinherited
bean TransferBean<TData>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
idParam String
final
routePattern RoutePattern
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

before(ApiRequest request) Future
This method gets called before every call to get, post, put, patch or delete. If this method throws an exception or returns anything other than null, the result is treated as response and the subsequent call to get, post, etc. will be skipped. (Useful for checking authorization.)
inherited
delete(ApiRequest request) Future
override
deleteElement(ApiRequest request, TId id) Future
get(ApiRequest request) Future
override
getElement(ApiRequest request, TId id) Future<TData>
getList(ApiRequest request, int offset, int limit) Future<List<TData>>
getMetaData(ApiRequest request, String name) Future
override
getSize(ApiRequest request) Future<int>
handleRequest(ApiRequest request) Future<ApiResponse>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(ApiRequest request) Future
override
patchElement(ApiRequest request, TId id, TData element) Future<TData>
post(ApiRequest request) Future
override
postElement(ApiRequest request, TData element) Future<Tuple<TId, TData>>
put(ApiRequest request) Future
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited