declare endpoint uri and version separately