publishAgent method
Implementation
Future<http.Response> publishAgent(String agentID) async {
final uri = Uri.parse(
'$baseUrl/publishAgent?agentId=$agentID');
try {
final response = await http.post(
uri,
headers: {
'Content-Type': 'application/json',
},
body: '{}',
);
return response;
} catch (e) {
rethrow;
}
}