def to_localstack_url(api_id: str, url: str):
    """
    Converts a API GW url to localstack
    """
    return url.replace("4566", f"4566/restapis/{api_id}").replace(
        "dev", "dev/_user_request_"
    )