Ensured that API endpoint was correctly parsed.