postEndpoint method
Utility method to make a custom http get call with the Api Key added to the headers
Implementation
Future<Response> postEndpoint(
HolodexEndpoint endpoint, {
Map<String, String>? headers,
Map<String, dynamic>? params,
Map<String, dynamic>? data,
}) async {
return post(
path: endpoint.path, headers: headers, params: params, data: data);
}