def METHOD_NAME(self, action="GET", url="/", data=None, query_params=None):
    """Perform network request to configured JSON endpoint."""
    if data is None:
        data = {}
    if query_params is None:
        query_params = {}
    default_headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
    }
    response = requests.request(
        action,
        self.api_endpoint + url,
        data=json.dumps(data),
        params=query_params,
        headers=default_headers,
    )
    response.raise_for_status()
    return response.json()