rename method

Future<Map<String, dynamic>> rename(
  1. String name
)

Implementation

Future<Map<String, dynamic>> rename(String name) async {
  final resp = await _connection.request(
      method: 'PUT',
      path: '/_api/collection/$name/rename',
      body: {'name': name});
  _name = name;
  _idPrefix = '${name}/';
  return resp.body;
}