refactor positions api to use MethodView. Create FlaskTestCase as base case to setup and teadown application