src/napari_tissuemaps_interface/napari_tissuemaps_interface.py
def http_get(url, api_uri, token, **params):
    """
    Helper function to perform an http get, with optional parameters

    :param url: The url of the endpoint
    :param api_url: The URI of the specific api
    :param token: The access token
    :param params: kwargs for optional parameter to the http get
    :return: The full requests response
    """
    response = requests.get(
        url + '/' + api_uri, params=params,
        headers={'Authorization': 'JWT ' + token},
    )
    response.raise_for_status()
    return response

    Helper function to perform an http get, with optional parameters

    :param url: The url of the endpoint
    :param api_url: The URI of the specific api
    :param token: The access token
    :param params: kwargs for optional parameter to the http get
    :return: The full requests response
    
Helper function to perform an http get, with optional parameters
Helper function to perform an http get with optional parameters
def http_get(url, api_uri, token, **params):
    response = requests.get(
        url + '/' + api_uri, params=params,
        headers={'Authorization': 'JWT ' + token},
    )
    response.raise_for_status()
    return response
def http_get ( url , api_uri , token , ** params ) : response = requests . get ( url + '/' + api_uri , params = params , headers = { 'Authorization' : 'JWT ' + token } , ) response . raise_for_status ( ) return response
Helper function to perform an http get, with optional parameters
Helper function to perform an http get with optional parameters
"""
    Helper function to perform an http get, with optional parameters

    :param url: The url of the endpoint
    :param api_url: The URI of the specific api
    :param token: The access token
    :param params: kwargs for optional parameter to the http get
    :return: The full requests response
    """
The full requests response
The full requests response
url
The url of the endpoint
The url of the endpoint
api_uri
token
The access token
The access token
api_url
The URI of the specific api
The URI of the specific api
params
kwargs for optional parameter to the http get
kwargs for optional parameter to the http get