Make sure that API URLs end with rest/.