post method
Implementation
Future<Map<String, dynamic>> post(String path,
{required Map<String, dynamic> data}) async {
final response = await client.post(
Uri.parse("https://$host:$port/$identity/api$path"),
headers: _headers,
body: jsonEncode(data),
);
if (response.statusCode >= 400) throw Exception(response.body);
return jsonDecode(response.body);
}