createIpns method

Future<Ipns> createIpns(
  1. ICreateIpns body
)

Create a new IPNS record for this bucket @param {ICreateIpns} body @returns New IPNS instance

Implementation

Future<Ipns> createIpns(ICreateIpns body) async {
  final url = '/storage/buckets/$uuid/ipns';
  final ipns =
      await ApillonApi.post<Ipns>(url, body.toMap(), mapper: Ipns.fromMap);
  ipns.bucketUuid = uuid;
  return ipns;
}