version_query_url

dqsegdb2.api.version_query_url(host, ifo, name)

Returns the URL to use in querying for flag versions

Parameters:
host : str

the URL of the target DQSEGDB2 host

ifo : str

the interferometer prefix

name : str

the name of the flag

Returns:
url : str

the full REST URL to query for information

Examples

>>> from dqsegdb2.api import version_query_url
>>> print(version_query_url('https://segments.ligo.org', 'G1',
...                         'GEO-SCIENCE'))
'https://segments.ligo.org/dq/G1/GEO-SCIENCE'