RestService<Id, Data> class

Queries an Angel service via REST.

Inheritance

Constructors

RestService(BaseClient client, BaseAngelClient app, dynamic url, Type type)

Properties

type → Type
final
app BaseAngelClient
The Angel instance powering this service.
final, inherited
basePath → String
Use baseUrl instead.
read-only, inherited
baseUrl → Uri
final, inherited
client BaseClient
final, inherited
deserializer AngelDeserializer<Data>
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
onCreated → Stream<Data>
Fired on created events.
read-only, inherited
onIndexed → Stream<List<Data>>
Fired on indexed events.
read-only, inherited
onModified → Stream<Data>
Fired on modified events.
read-only, inherited
onRead → Stream<Data>
Fired on read events.
read-only, inherited
onRemoved → Stream<Data>
Fired on removed events.
read-only, inherited
onUpdated → Stream<Data>
Fired on updated events.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

deserialize(dynamic x) → Data
override
makeBody(dynamic x) → dynamic
override
close() → Future
inherited
create(Data data, [ Map<String, dynamic> params ]) → Future<Data>
Creates a resource.
inherited
index([Map<String, dynamic> params ]) → Future<List<Data>>
Retrieves all resources.
inherited
map<U>(U encoder(Data), Data decoder(U)) Service<Id, U>
Creates a Service that wraps over this one, and maps input and output using two converter functions. [...]
inherited
modify(Id id, Data data, [ Map<String, dynamic> params ]) → Future<Data>
Modifies a resource.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
read(Id id, [ Map<String, dynamic> params ]) → Future<Data>
Retrieves the desired resource.
inherited
remove(Id id, [ Map<String, dynamic> params ]) → Future<Data>
Removes the given resource.
inherited
send(BaseRequest request) → Future<StreamedResponse>
inherited
toString() → String
Returns a string representation of this object.
inherited
update(Id id, Data data, [ Map<String, dynamic> params ]) → Future<Data>
Overwrites a resource.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited