test rails API for swift app