Changed rest api prefix form v1 to v2

fixes #171