It is also possible to query the exoplanets by label, here is an example of querying for the exoplanet labeled as 11 Com

    http://star-api.herokuapp.com/api/v1/exo_planets/11 Com

def search_exoplanet(exoplanet):
    '''
    It is also possible to query the exoplanets by label, here is an example of querying for the exoplanet labeled as 11 Com

    http://star-api.herokuapp.com/api/v1/exo_planets/11 Com
    '''

    base_url = "http://star-api.herokuapp.com/api/v1/exo_planets/"

    if not isinstance(exoplanet, str):
        raise ValueError(
            "The exoplanet arg you provided is not the type of str")
    else:
        base_url += exoplanet

    return dispatch_http_get(base_url)