osnapi/core.py
def build_query(target:str, **kwargs):
    """ Create an API query by combining all keyword arguments into one request URL.
        target is what comes after the api_endpoint but before the query arguments
        e.g. /units or /users/profile
    """
    query = f'{Settings.api_endpoint}{"" if target.startswith("/") else "/" }{target}?'
    for key, value in kwargs.items():
        if value and key != 'self': query += f'{key}={value}&'
    return query
 Create an API query by combining all keyword arguments into one request URL.
        target is what comes after the api_endpoint but before the query arguments
        e.g. /units or /users/profile
    
Create an API query by combining all keyword arguments into one request URL.
target is what comes after the api_endpoint but before the query arguments
e.g. /units or /users/profile
Create an API query by combining all keyword arguments into one request URL . target is what comes after the api_endpoint but before the query arguments e . g . / units or / users / profile
def build_query(target:str, **kwargs):
    query = f'{Settings.api_endpoint}{"" if target.startswith("/") else "/" }{target}?'
    for key, value in kwargs.items():
        if value and key != 'self': query += f'{key}={value}&'
    return query
def build_query ( target : str , ** kwargs ) : query = f'{Settings.api_endpoint}{"" if target.startswith("/") else "/" }{target}?' for key , value in kwargs . items ( ) : if value and key != 'self' : query += f'{key}={value}&' return query
Create an API query by combining all keyword arguments into one request URL.
Create an API query by combining all keyword arguments into one request URL .
""" Create an API query by combining all keyword arguments into one request URL.
        target is what comes after the api_endpoint but before the query arguments
        e.g. /units or /users/profile
    """
target
str