You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This class assumes that the API endpoints and request/response formats follow a specific and consistent pattern across all models using this base.
10
10
///
11
11
/// For example, it expects the following endpoint structure for each model type:
12
-
/// - GET /<endpoint>
13
-
/// - POST /<endpoint>
14
-
/// - GET /<endpoint>/all
15
-
/// - POST /<endpoint>/update
16
-
/// - DELETE /<endpoint>/delete/<id>
12
+
/// - GET `/endpoint`
13
+
/// - POST `/endpoint`
14
+
/// - GET `/endpoint/all`
15
+
/// - POST `/endpoint/update`
16
+
/// - DELETE `/endpoint/delete/{id}`
17
17
///
18
18
/// Only use this base class when your API strictly adheres to this pattern for all CRUD operations. If your endpoints or data formats differ, consider implementing a custom service instead.
/// A generic JSON converter for any PaginatedResult<T>.
5
+
/// A generic JSON converter for any PaginatedResult`<T>`.
6
6
/// - T must extend DataModel. The converter does not require T to have fromJson or toJson methods; instead, these must be provided via function parameters.
7
7
/// It requires two functions to be passed to its constructor:
8
8
/// - [fromJsonT]: A function that can convert a JSON map into an object of type T.
0 commit comments