updated api endpoints, and added api versioning to the url