post method
Make a POST request and return response
Implementation
Future<Response> post(
String endpoint, {
dynamic data,
Map<String, dynamic>? queryParameters,
Options? options,
}) async {
try {
final fullEndpoint = _getEndpointWithAuth(endpoint);
return await dio.post(
fullEndpoint,
data: data,
queryParameters: queryParameters,
options: options,
);
} on DioException catch (e) {
logger.severe('HTTP request failed: ${e.message}');
rethrow;
}
}