AdminRestClient class
Cliente HTTP genérico do admin: fala com os endpoints declarativos do Flenx
(envelope {success, data, error, meta}) para qualquer recurso — posts,
produtos, pedidos, usuários, configurações. É a ponte entre as telas Flutter
do admin (ilha) e a API do servidor.
Constructors
- AdminRestClient({String baseUrl = ''})
-
const
Properties
Methods
-
getOne(
String path) → Future< Map< String, Object?> ?> -
GET de um único registro (
dataé um objeto). Usado por*/get?id=. -
list(
String path) → Future< List< Map< >String, Object?> > -
GET que devolve uma lista (
dataé um array). Usado por*/list. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String path, Map< String, Object?> body) → Future<Map< String, Object?> > -
POST com corpo JSON. Retorna o
data(ex.:{id: N}). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited