added capability to retrieve the api definition using a HTTP request