def get_api_name(resp) -> str:
    """Get the server API name."""
    try:
        api_name = resp.context['api_name']
    except KeyError:
        api_name = resp.context['api_name'] = "api"
    return api_name