Client interface defines the available API methods called inside the admin
components.
You can implement custom strategies on the Request signature here defined, in
order to integrate with custom endpoints, i.e. GraphQL or localStorage.
todo
Enhance type definitions in order to include FetchApiResult status.
Actually there is no way to know if a request was successful or not;
maybe we need to add Generic to FetchApiResult, so we can do something
like (..) => Promise<FetchResult<ModelRecord>> where ModelRecord will be
response.data type.
Client interface defines the available API methods called inside the admin components.
You can implement custom strategies on the Request signature here defined, in order to integrate with custom endpoints, i.e. GraphQL or localStorage.
Enhance type definitions in order to include FetchApiResult status. Actually there is no way to know if a request was successful or not; maybe we need to add Generic to
FetchApiResult, so we can do something like(..) => Promise<FetchResult<ModelRecord>>where ModelRecord will beresponse.datatype.