getFile method

Future<Response> getFile({
  1. required String fileId,
})

Get File

Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.

Implementation

Future<req.Response> getFile({required String fileId}) {
  final String path =
      '/storage/files/{fileId}'.replaceAll(RegExp('{fileId}'), fileId);

  final Map<String, dynamic> params = {};

  final Map<String, String> headers = {
    'content-type': 'application/json',
  };

  return client.call(HttpMethod.get,
      path: path, params: params, headers: headers);
}