JsonApiAdapter class

Inheritance

Constructors

JsonApiAdapter(String hostname, String apiPath, {bool useSSL = true})

Properties

apiPath String
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
getter/setter pairinherited
hostname String
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializer Serializer
getter/setter pairinherited
useSSL bool
getter/setter pairinherited

Methods

addHeader(dynamic name, dynamic value) → void
inherited
cache(String endpoint, Object document) → void
override
cacheMany(String endpoint, Iterable<Object> documents) → void
override
checkAndDecode(Response response) String?
inherited
clearCache() → void
override
delete(String endpoint, Object document) Future<void>
override
fetch(String endpoint, String id) Future<JsonApiDocument>
fetchAndCache(String endpoint, String id) Future<JsonApiDocument>
find(String endpoint, String id, {bool forceReload = false}) Future<JsonApiDocument>
override
findAll(String endpoint) Future<JsonApiManyDocument>
override
findMany(String endpoint, Iterable<String> ids, {bool forceReload = false}) Future<JsonApiManyDocument>
override
httpDelete(String path) Future<Response>
inherited
httpGet(String path, {Map<String, String>? queryParams}) Future<Response>
inherited
httpPatch(String path, {String? body}) Future<Response>
inherited
httpPost(String path, {String? body}) Future<Response>
inherited
httpPut(String path, {String? body}) Future<Response>
inherited
memberPutAction(String endpoint, Object document, String actionPath) Future<JsonApiDocument>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek(String endpoint, String id) JsonApiDocument?
override
peekAll(String endpoint) JsonApiManyDocument
override
peekMany(String endpoint, Iterable<String> ids) JsonApiManyDocument
override
performDelete(String endpoint, JsonApiDocument jsonApiDoc) Future<void>
query(String endpoint, Map<String, String> params) Future<JsonApiManyDocument>
override
save(String endpoint, Object document) Future<JsonApiDocument>
override
toString() String
A string representation of this object.
inherited
unCache(String endpoint, Object document) → void
override

Operators

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