show method

Future<Map<String, dynamic>> show()

Output config file contents. /api/v0/config/show

Response:

{
  "<string>": "<object>",
  "StatusCode": "<statusCode>",
  "StatusMessage": "<statusMessage>"
}

See more: https://docs.ipfs.io/reference/http/api/#api-v0-config-show

Implementation

Future<Map<String, dynamic>> show() async {
  Response? res = await _post(Ipfs.dio, url: "${Ipfs.url}/config/show");
  return _interceptDioResponse(res, expectsResponseBody: true);
}