endpoint for making generic http requests