Constructor
# new RestService(adapter, clazzopt)
Creates a new service instance with the specified adapter and optional model class. The constructor stores the adapter and model class for later use in CRUD operations.
Initializes a new RestService instance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
adapter |
A
|
The HTTP adapter instance to use for API requests |
|
clazz |
Constructor.<M>
|
<optional> |
Optional constructor for the model class |