(bind-func fleet_get_api
(let ((url:i8* (zalloc 256)))
(lambda (host:i8* port:i32)
(sprintf url "http://%s:%d/%s/discovery.json" host port FLEET_API_VERSION)
(let ((response (ghttp_request_body_as_json (ghttp_perform_GET url))))
(if (fleet_response_error_p response #t)
null
response)))))