api endpoint now defined to be /generic/visit/:id