get_endpoint_url¶
-
lsst.verify.squash.
get_endpoint_url
(api_url, api_endpoint, **kwargs)[source]¶ Lookup SQUASH endpoint URL.
Parameters: api_url :
str
Root URL of the SQUASH API. For example,
'https://squash.lsst.codes/dashboard/api/'
.api_endpoint :
str
Name of the SQUASH API endpoint. For example,
'job'
.**kwargs : optional
Additional keyword arguments passed to
get
.Returns: endpoint_url :
str
Full SQUASH endpoint URL.
Notes
Endpoints are discovered from the SQUASH API itself. The SQUASH API is queried on the first call to
get_endpoint_url
. Subsequent calls use cached results for all endpoints. This cache can be reset with thereset_endpoint_cache
function.