get¶
-
lsst.verify.squash.
get
(api_url, api_endpoint=None, api_user=None, api_password=None, timeout=None, version=None)[source]¶ GET request to the SQUASH API.
Parameters: api_url :
str
Root URL of the SQUASH API. For example,
'https://squash.lsst.codes/api'
.api_endpoint :
str
, optionalName of the API endpoint to post to. The
api_url
is requested if unset.api_user :
str
, optionalAPI username.
api_password :
str
, optionalAPI password.
timeout :
float
, optionalRequest timeout. The value of
get_default_timeout
is used by default.version :
str
, optionalAPI version. The value of
get_default_api_version
is used by default.Returns: response :
requests.Response
Response object. Obtain JSON content with
response.json()
.Raises: requests.exceptions.RequestException
Raised if the HTTP request fails.