(uid, token=None, fname="", url=None, action=PULL)
return response
Push or pull a given recipe from a remote host or database.
Push or pull a given recipe from a remote host or database.
Push or pull a given recipe from a remote host or database .
def recipes_api(uid, token=None, fname="", url=None, action=PULL):
    """
    Push or pull a given recipe from a remote host or database.
    """

    # Construct full API endpoint for recipe
    endpoint = reverse("recipe_api", kwargs=dict(uid=uid))

    url = urljoin(url, endpoint) if url else None

    # Push or pull the
    response = push_pull(klass=Analysis, uid=uid, fname=fname, url=url, action=action, token=token)

    return response
def recipes_api ( uid , token = None , fname = "" , url = None , action = PULL ) : # Construct full API endpoint for recipe endpoint = reverse ( "recipe_api" , kwargs = dict ( uid = uid ) ) url = urljoin ( url , endpoint ) if url else None # Push or pull the response = push_pull ( klass = Analysis , uid = uid , fname = fname , url = url , action = action , token = token ) return response