get method

get meta information about a collection, namely the schema structure

Implementation

Future<BagelMetaResponse> get() async {
  Options options = Options(headers: {
    'authorization': 'Bearer ${instance.token}',
    "Accept-Version": "v1"
  });
  String url = '$baseEndpoint/collection/$collectionID/schema';
  Response response = await dio.get(url, options: options);
  BagelMetaResponse res = BagelMetaResponse(
    data: response.data,
    statusCode: response.statusCode,
  );
  return res;
}