ProfilesApi class

A class for interacting with the Profiles API.

This class provides methods to communicate with the Profiles API endpoints. You can extend and modify this class to implement specific API functionalities.

Inheritance

Constructors

ProfilesApi(DioClient dioClient)
Constructs a new instance of the ProfilesApi.

Properties

dioClient DioClient
The Dio HTTP client used to make network requests.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
route String
The base route (endpoint) for the API service.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(int id) Future
Sends a DELETE request to delete a resource by its unique identifier.
inherited
get({Map<String, dynamic>? queryParameters, String? path}) Future
Sends a GET request to retrieve resources from the API.
inherited
getById(String? id, {Map<String, dynamic>? queryParameters}) Future
Sends a GET request to retrieve a resource by its unique identifier.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(Map<String, dynamic> payload, {String? path}) Future
Sends a POST request to create a new resource at the specified route.
inherited
put(int id, Map<String, dynamic> payload) Future
Sends a PUT request to update an existing resource by its unique identifier.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited