Added specs for /api/links