get_api_url: Get API URL from environment variable
Description
This function retrieves the API URL from the environment variable named "CONSIBIO_API_HOST", if it is set.
If the environment variable is not set, it set and returns a default URL.
Optionally, it can append a path to the URL.