CoffeeRequest class
Methods
-
create(String endpoint, Map<String, dynamic> json, [bool isFormData = false])
→ Future<Map<String, dynamic>>
-
Creates a new register on a specific endpoint.
-
delete(String endpoint, dynamic identifier)
→ Future<bool>
-
Deletes a register on a specific endpoint.
-
get<T extends CoffeeModel>(String endpoint, [List<CoffeeQueryFilter>? args])
→ CoffeeRequestGet<T>
-
Retrieves a CoffeeRequestGet instance configured for querying a specified API
endpoint
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
save<T>({required String endpoint, required Map<String, dynamic> json, required T fromJson(Map<String, dynamic>), bool isFormData = false})
→ SaveResponse<T>
-
Saves a CoffeeModel instance to the API.
-
setBaseApiUrl(String newApiBaseUrl)
→ CoffeeRequest
-
Sets the base URL for the API requests.
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(String endpoint, Map<String, dynamic> json, [bool isFormData = false])
→ Future<Map<String, dynamic>>
-
Updates a register on a specific endpoint.